我有一个包含以下两行的 .vbs 文件。如果我只是双击 .vbs 文件,它会执行 run.bat 文件,但是当我在 Visual Studio 安装程序中将此文件放入 CustomActions -> Commit 时,安装程序最终失败并出现以下错误。
Set objShell = CreateObject("WScript.Shell")
objShell.Run "run.bat"
这是错误。
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.
有什么解决办法吗?
谢谢。