This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Setting or Updating INSTALLDIR value from Installscript in Basic MSI
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
Oct 24, 2024
05:01 PM
Setting or Updating INSTALLDIR value from Installscript in Basic MSI
Hi all,
I have IS 2023 Basic MSI project. I want to set/update INSTALLDIR value from the installscript. I tried below but does not work.
sNewInstallPath = "c:\\xyz";
INSTALLDIR = sNewInstallPath;
// or below
MsiSetProperty(hMSI, "INSTALLDIR", sNewInstallPath);
MessageBox("New INSTALLDIR location: " + INSTALLDIR, INFORMATION);
I looked at https://docs.revenera.com/installshield21helplib/helplibrary/AccessingProps-DeferredCAs.htm
It shows how to get INSTALLDIR value. Is there an example of how I can set INSTALLDIR ?
thanks.
(0) Replies