Run a batch file after installation - Advanced Installer Community
Aravindadx
Posts: 8
Joined: Fri Apr 25, 2014 4:52 am

Run a batch file after installation

Hello !

I have to run a batch file after the successfully installtion of my files. I extract my files to windows tempory folder and there have another folder and relevant batch file. So I found some forum similar like my problem. Following one is that forum.

http://www.advancedinstaller.com/forums ... hp?t=21552

I tried it many times with various kind of options, but it doesn't successful. I try to deploy a framework by image deployment option with my batch file in windows 10 operating system. Also I use Advanced installer 10.8 version. I was create the custom action to run vbs file. But that forum said

"Please keep in mind that you need to add both files (MY_SCRIPT.vbs and BAT_FILE.bat) in "Files and Folders" view in the same folder. In order to launch the .vbs file go to "Custom Actions" page and add a "Launch file or open URL" custom action with sequence, after "Install Execution Stage" -> "Add Resources" action group, like this:

Command: "[#MY_SCRIPT.vbs]"

Also, the .vbs custom action should run as deferred with no impersonation."


I couldn't understand those lines and I was tried it many times with various options. Can anyone help me? I appriciate your support for me.

Thank You !!
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Run a batch file after installation

Hello,

To achieve what you want you should use a "Launch file" custom action having the "Hide program's window" flag set.

Also, you can go to "Files and Folders" page and double click on your temporary added BAT file. Then in its properties window you should check the "Do not remove the file when setup ends" option, otherwise the temporary files will be removed at the end of the installation.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”