We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Claude Pelletier
Posts: 5
Joined: Sun Feb 26, 2006 1:24 am
Location: Québec, Canada
Contact: Website

Hide custom actions (DOS windows)

Hello,

A DOS windows appears each time I run a custom command in my setup wizard. Is there a way to hide all of those windows ?


Thanks.
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi,

You can use a VBscript Custom Action such as the following:

Code: Select all

LaunchSomething("ConsoleApp.exe"),True

Function LaunchSomething(strPath, bWait)
   Set WshShell = CreateObject("WScript.Shell")
   strCmd = Chr(34) & strPath & Chr(34)
   ret = WshShell.Run(strCmd, 0, bWait)
End Function
Or, if you want to use an EXE or DLL Custom Action (which I would recommend), please see the following article:
http://www.codeproject.com/win32/runsilent.asp

Regards,
Denis
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”