Question

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

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

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

Any suggestions?

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top