Installing INSTALLDIR programmatically in InstallShield

I am trying to install change INSTALLDIR programmatically in InstallShield v8.02 (can't do anything with the version).

My code crashes with an "Unknown error" exception 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?

0


source to share


1 answer


Better to upgrade to the latest Installshield and with Installscript you can achieve this using the INSTALLDIR property.



0


source







All Articles