vbs script as a launch condition - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

perrinwolf
Posts: 6
Joined: Wed Jun 30, 2010 8:23 pm

vbs script as a launch condition

I am needing to run a vbs or bat script as part of a launch condition. The example is I need to rename a file before the prerequisites or install run.

thanks
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: vbs script as a launch condition

Hi,

The earliest step in which you can run a custom action is the Begin standard action from the InstallUISequence. All you have to do is to
place under this standard action the custom action that you want to run.

Please note that the prerequisites must be feature based so they will run during the installation of the main package, if the prerequisite is set as global you cannot run anything before it.

Here it is explained how to show a standard action.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
perrinwolf
Posts: 6
Joined: Wed Jun 30, 2010 8:23 pm

Re: vbs script as a launch condition

I am able to got the batch file to run, but I can not get the VB script to run. What is the best way to call a VB script in Advanced Installer?

thanks
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: vbs script as a launch condition

Hi,

The best way is to add it as a "New Attached Custom Action".

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”