Hi there,
I have set my MSI to have an Installation Type of "Per machine if the user is administrator or Per user otherwise".
I have 2 things I want the MSI to do (over and above the usual install of files).
(1) Take a supplied property and put it in HKLM if the install is administrator or HKCU if the user is just a user
(2) If the install is runing as per user then put in an additional value (from another supplied property) into the HKCU.
I am able to do (1) easily by putting my property into the "Current user/Local machine" Registry location. That works fine.
The problem I have is with (2). I was hoping to basically use a custom action and just read a value from the MSI which would tell me if the MSI was running as administrator or user and then I could put in the registry value based on the results of that.
I have did some searching etc and thought InstallType might be the property - but that isn't it. I also tried MSIINSTALLPERUSER but that didn't seem like it either.
Would you you know what property I could read to see what AE has decided to run the MSI as?
thanks
Jeff
FOLLOW US
Get the latest news in Application Packaging