How to hide cmd window when building from "AdvancedInstaller.com"? - Advanced Installer Community
Codename K
Posts: 479
Joined: Fri Jan 29, 2010 3:04 pm

How to hide cmd window when building from "AdvancedInstaller.com"?

Hello,

I have set up "AdvancedInstaller.com" file to run at pre-build event. This builds another installer before building the current installer. But "AdvancedInstaller.com" shows the command-prompt. Is there a way to hide this window?

:?:
K
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: How to hide cmd window when building from "AdvancedInstaller.com"?

Hello,

This can be achieved, for instance, through another VBScript which will launch the .BAT file without a console. Let's say that the file you want to open is called build.bat and it is located on the desktop. Here is a script which will launch the .BAT file:

Code: Select all

Set oShell = CreateObject ("Wscript.Shell") 
Dim strArgs
strArgs = "cmd /c C:\Users\Catalin\Desktop\build.bat"
oShell.Run strArgs, 0, false
Save this little script as (for example) "run.vbs".

Other than this, I am afraid I am not aware of any other method that does not include third-party software programs.

Hope this helps.

All the best,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Codename K
Posts: 479
Joined: Fri Jan 29, 2010 3:04 pm

Re: How to hide cmd window when building from "AdvancedInstaller.com"?

Thanks for the information.

:)
K
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: How to hide cmd window when building from "AdvancedInstaller.com"?

You are always welcome.

Glad to help.

All the best,
Catalin
:)
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”