在InstallShield中以编程方式设置INSTALLDIR

时间:2022-03-31 01:44:48

I am trying to set the change the INSTALLDIR programatically in InstallShield v8.02 (cannot do anything about the version).

我试图在InstallShield v8.02中以编程方式设置更改INSTALLDIR(无法对该版本执行任何操作)。

My code crashes with an exception "Unknown error" on the third line of this code (C#)

我的代码在此代码的第三行(C#)上发生异常“未知错误”崩溃

String originalInstallDir = testProject.get_INSTALLDIR();
String installDir = originalInstallDir.Replace("Company", "Company Test");
testProject.set_INSTALLDIR(ref(installDir));

Any suggestions?

有什么建议么?

1 个解决方案

#1


0  

Better migrate to latest version of Installshield and with the help of Installscript you can achieve it by using INSTALLDIR property.

更好地迁移到最新版本的Installshield,在Installscript的帮助下,您可以使用INSTALLDIR属性来实现它。

#1


0  

Better migrate to latest version of Installshield and with the help of Installscript you can achieve it by using INSTALLDIR property.

更好地迁移到最新版本的Installshield,在Installscript的帮助下,您可以使用INSTALLDIR属性来实现它。

相关文章