how to make a batch file hidden - Advanced Installer Community
er.anuj21
Posts: 27
Joined: Fri Aug 16, 2013 10:59 am

how to make a batch file hidden

Basically i have a file named demo.exe that is created using the advanced installer.When i double click the demo.exe file then it copies my jboss application server and postgres database to the desried location . But after then a batch file i.e test.bat is executed in which some scripts are written . But what my requirement is that i don't want to see that file means i want that batch file run as hidden.
Attachments
Batch file screen
Batch file screen
test222.png (172.22 KiB) Viewed 3883 times
Teodor
Posts: 73
Joined: Thu Jul 25, 2013 9:56 am

Re: how to make a batch file hidden

Hi
er.anuj21 wrote:Basically i have a file named demo.exe that is created using the advanced installer. When i double click the demo.exe file then it copies my jboss application server and postgres database to the desried location. But after then a batch file i.e test.bat is executed in which some scripts are written. But what my requirement is that i don't want to see that file means i want that batch file run as hidden.
You can hide the execution of a batch file in several ways. I see that you are using the Launch file custom action with the property Hide program's windows. This should be enough for your purpose.

However, I also see from your screenshot that you enabled property Run as Administrator and moved the custom action under Finish Dialogs Stage group. This means that you'll get a Windows User Account Control prompt for the execution of the batch script. You can easily avoid this prompt by moving the custom action under Install Execution Stage group.

If you have other questions, please let us know.

Best regards
Teodor Micu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
er.anuj21
Posts: 27
Joined: Fri Aug 16, 2013 10:59 am

Re: how to make a batch file hidden

thanx Teodor MICU :)

Return to “Common Problems”