all groups > visual studio .net setup > may 2004 >
You're in the

visual studio .net setup

group:

Custom Actions


Custom Actions ashok820 NO[at]SPAM hotmail.com
5/25/2004 12:56:19 PM
visual studio .net setup:
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
Re: Custom Actions Phil Wilson
5/25/2004 5:32:24 PM
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]

Re: Custom Actions ashok820 NO[at]SPAM hotmail.com
5/26/2004 2:54:38 PM
Thanks, that works great for me. VBScript is a little limiting for me,
so this is great.

[quoted text, click to view]
AddThis Social Bookmark Button