No, you can't. You can do it with Installer classes, but they are called
using a wrapper DLL to call them. You might be able to do your custom action
with VBScript though.
Keep in mind that you're seeing the command prompt because it's a console
application. Why not just go to your project properties Output Type and
change it from Console Application to Windows Application?
--
Phil Wilson [MVP Windows Installer]
----
[quoted text, click to view] "Ashok Subramanian" <ashok820@hotmail.com> wrote in message
news:461ee23b.0405251156.3e161dc4@posting.google.com...
> Hello,
>
> is it possible to have a custom action in a windows installer as a
> .NET class library? I have already written a custom action as a
> console application and it works fine but my problem is the console
> application throws up the console window and I don't need it. Even
> when I get the window and hide it using
> ShowWindow(), I still see the window for a second. I could write the
> custom action as a windows installer library but I have a limitation
> in my environment that prevents it.
>
> Thanks for the help
> Ashok