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!

jstuardo
Posts: 88
Joined: Mon Nov 09, 2015 10:44 pm

VBS script is run at an incorrect stage

Hello,

I have a VBS script that I need to be run after Add Resources stage and before Finish Execution stage.

That VBS script just modifies the database connection string in configuration files. That is why it is important to be run after all files were copied and before finishing.

The problem is that the VBS is run at the beginning at installation, when no resources are copied yet. I have added MsgBox inside the script in order to debug it.

Please see "Control Visitas 1.png" file. This image shows where the script execution is placed in the project. "Control Visitas 2.png" shows the MsgBox that is inside the script.

And finally, I am attaching the AIP file.

Any help will be greatly appreciated.

Thanks
Jaime
Attachments
Control de Visitas 3.aip
(92.96 KiB) Downloaded 314 times
Control Visitas 2.png
Control Visitas 2.png (76.87 KiB) Viewed 2940 times
Control Visitas 1.png
Control Visitas 1.png (13.6 KiB) Viewed 2940 times
jstuardo
Posts: 88
Joined: Mon Nov 09, 2015 10:44 pm

Re: VBS script is run at an incorrect stage

Sorry... I have not seen the other reply.
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: VBS script is run at an incorrect stage

Hello Jaime,

I have answered your other thread here:

viewtopic.php?f=5&t=39069&p=110210#p110210

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”