This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Hide cmd window
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 28, 2008
04:27 AM
Hide cmd window
Hi,
I am using InstallScriptMSI project.
In the installation package, I have the requirement to add some applications to windows firewall. For that I use the following script
strCommandLine = " firewall add allowedprogram program = " + INSTALLDIR +"MyApp.exe name=MyApp mode=enable" ;
LaunchAppAndWait( "netsh.exe" , strCommandLine , LAAW_OPTION_WAIT||LAAW_OPTION_HIDDEN );
But during setup, I find a blank command window during the execution of the above script. What should I do to hide this command window?
Thanks in advance....
I am using InstallScriptMSI project.
In the installation package, I have the requirement to add some applications to windows firewall. For that I use the following script
strCommandLine = " firewall add allowedprogram program = " + INSTALLDIR +"MyApp.exe name=MyApp mode=enable" ;
LaunchAppAndWait( "netsh.exe" , strCommandLine , LAAW_OPTION_WAIT||LAAW_OPTION_HIDDEN );
But during setup, I find a blank command window during the execution of the above script. What should I do to hide this command window?
Thanks in advance....
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 28, 2008
04:31 AM
This occurs not only during execution of netsh.exe, but also for the following scripts...
//Installing Loopback adapter
LaunchAppAndWait( "cscript.exe","//B LoopbackInstall.vbs", LAAW_OPTION_WAIT||LAAW_OPTION_HIDDEN);
//Configure installation package
LaunchAppAndWait( "cscript.exe" ,"//B Configure.js",LAAW_OPTION_WAIT||LAAW_OPTION_HIDDEN);
//Installing Loopback adapter
LaunchAppAndWait( "cscript.exe","//B LoopbackInstall.vbs", LAAW_OPTION_WAIT||LAAW_OPTION_HIDDEN);
//Configure installation package
LaunchAppAndWait( "cscript.exe" ,"//B Configure.js",LAAW_OPTION_WAIT||LAAW_OPTION_HIDDEN);
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 28, 2008
08:06 AM
You may want to try LaunchApplication instead of LaunchAppAndWait, and use SW_HIDE for the nShowWindow parameter.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 28, 2008
08:48 AM
Try launching CMD.EXE with the /C switch instead of CSCRIPT which runs in a CMD window. I think this will fix your issue.