custom action: run .vbs before installation - 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!

duggit
Posts: 5
Joined: Thu Aug 07, 2008 9:13 pm

custom action: run .vbs before installation

I'm trying to run a simple .vbs script before installation. I'd like to place it in the InstallExecuteSequence before everything else.
The script works when I double click it through explorer.

I've tried multiple ways of adding it with a custom action and I have not been able to get it to run. When I try to configure 'New Attached Custom Action' it prompts me to find the .vbs file on my computer, and there is no way to reference a file that added inside project. I've also tried changing the path to a network location and I'm not having any luck.

Whats the proper method to use to make this happen :?:

Thanks
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: custom action: run .vbs before installation

Hi,
I'm trying to run a simple .vbs script before installation.
This can be done by adding the VBS file as a "New Attached Custom Action". This custom action can be scheduled under the "InstallExecuteSequence" -> "Begin" standard action. Note that the "Function" field in the Custom Action Properties page should be set to the main function of your VBS file. If your code doesn't contain any functions, you can leave the "Function" field empty.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”