sky
Posts: 12
Joined: Fri Oct 25, 2013 7:52 am

how to run vbscript file in befor setup starts

how to run vbscript file in befor setup starts?

I have make a vbscript file to do check system tempfile folder whether contains UNICODE characters, So need run before setup.exe . something like MD5 check .
how set advanced installer to call vbscript file?

use professional version
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: how to run vbscript file in befor setup starts

Hello and welcome to Advanced Installer forums,

In order to achieve that you can go in the “Custom Actions” page and add the predefined Launch attached file custom action with sequence. This type of custom action can execute an application (EXE or DLL) or run a script (VBScript or Java script). Also, the source file will be embedded in the MSI file but will not be deployed at install time with the other application files.

Also you can use our predefined Execute inline script code custom action with sequence. Just edit the Script Text field from the custom action properties with the body of the script.

Also you should add your custom action before the “Search” stage in the Wizard Dialogs Stage.

Please let us know if that helped otherwise give us more details about your specific scenario(maybe exemplify).

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sky
Posts: 12
Joined: Fri Oct 25, 2013 7:52 am

Re: how to run vbscript file in befor setup starts

Hi Dan

Thank you reply, but i not found Wizard Dialogs Stage. Please give me detail information. Whether just enterprise version have the feature.
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: how to run vbscript file in befor setup starts

Hi,

Please note that when you added added the Execute inline script code predefined custom action with sequence, it is added in the Install Execution Stage after the Add resources stage. So, you need to add it in the Wizard Dialog Stage using a drag-and-drop operation as you can see below:
WizDiagStage.jpg
WizDiagStage.jpg (121.65 KiB) Viewed 9764 times
If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sky
Posts: 12
Joined: Fri Oct 25, 2013 7:52 am

Re: how to run vbscript file in befor setup starts

it works. Thank very much.

Regards
Sky
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: how to run vbscript file in befor setup starts

You're welcome Sky.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Feature Requests”