如果目标驱动器不存在
我有一个已在installshield组合在一起的MSI,这两个属性的默认值是rootdrive = d:| dirProperty1 = d:\
我要实现的目标是在安装中,如果找不到重定向/还原为c:& C:\
我尝试使用自定义操作,但我不擅长应用它。
I have an MSI I've put together in InstallShield, the default values for the two properties are ROOTDRIVE = D: | DIRPROPERTY1 = D:\
What I'm trying to achieve is on install if the drive isn't found redirect/revert to C: & C:\
I tried using a custom action but I wasnt to good at applying it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在VBScript中,尝试使用以下方法将目录设置为未找到自己的驱动器逻辑:
session.targetPath(“ installDir”)=自定义值
,请确保在Costfinalize标准操作后安排此自定义操作。
In VBScript, try using following method to set directory with your own logic of drive not found:
Session.TargetPath("INSTALLDIR") = custom value
Also, make sure to schedule this custom action after CostFinalize standard action.