dhaval0129
Posts: 34
Joined: Mon Jul 22, 2013 7:19 pm

Execute batch script before dialog shows up

Hi

I want Advanced Installer to execute batch script before any dialog pops up for hitting next , How can I achieve this using advanced installer ?
Advanced Installer version I am using is 11.4.1

Regards
Dhaval Joshi
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Execute batch script before dialog shows up

Hi Dhaval,

In order to achieve this you can go in the Custom Actions page and add a "Launch attached file" custom action before the "Wizard Dialogs Stage -> User Selection" action group.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dhaval0129
Posts: 34
Joined: Mon Jul 22, 2013 7:19 pm

Re: Execute batch script before dialog shows up

Hi,

It still does not work, because batch file is not actually copied onto the disk by installer, all the files get copied when progress bar shows up after I hit next button
what do I need to do to get around this situation ?

Regards
Dhaval Joshi
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Execute batch script before dialog shows up

Hi Dhaval,

Indeed, I didn't notice that you try to use a batch script and that script does not work using the "Launch attached file" custom action. Sorry for my mistake!

In order to use the batch script before the dialogs are displayed, you can add that script in the "Files and Folders" page using the "Temporary Files" toolbar button, than add a "Launch file" custom action before the "Wizard Dialogs Stage -> User Selection" action group, right-click in the "File To Launch" field, select "File..." and choose your batch script to be executed by that custom action.

By the way, when the "Launch attached file" custom action is used, the file is embedded in the MSI package as a binary file and it is not necessary to add it in the "Files and Folder" page, too.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dhaval0129
Posts: 34
Joined: Mon Jul 22, 2013 7:19 pm

Re: Execute batch script before dialog shows up

Looks like its working !! Thanks
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Execute batch script before dialog shows up

You're welcome Dhaval. I'm glad it works.

Just let us know anytime you need help.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”