cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
agshah
Level 7

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);
 
It shows how to get INSTALLDIR value. Is there an example of how I can set INSTALLDIR ?
 
thanks.
 
 
Labels (1)
0 Kudos
(0) Replies