.vbs 不会在设置提交时运行

问题描述 投票:0回答:0

我有一个包含以下两行的 .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.

有什么解决办法吗?

谢谢。

visual-studio installation vbscript setup-deployment
© www.soinside.com 2019 - 2024. All rights reserved.