.vbs doesn't run on setup commit
Hello,
I have a .vbs file that contains the following 2 lines. If I just double click on the .vbs file, it executes the run.bat file, but when I put this file in CustomActions -> Commit in Visual Studio setup, the setup fails at the end with the following error.
Code:
Set objShell = CreateObject("WScript.Shell")
objShell.Run "run.bat"
This is the error.
Quote:
There is a problem with this Windows Installer package. A script required for this install to complete could not be run. Contact your support personnel or package vendor.
Any ideas how to solve this?
Thanks.
Re: .vbs doesn't run on setup commit
Make sure that the run.bat file is being placed at the correct location for the .vbs file to use by the installer before executing the .vbs file.
Possibly useful links:
https://www.auslogics.com/en/article...aller-package/
https://answers.microsoft.com/en-us/...6-9e738551fc3c