/build/static/layout/Breadcrumb_cap_w.png

Active Setup InstallLocation Property.

So I have created this .msi to serve only one purpose, run Active Setup.  INSTALLDIR is setup to user profile.  This runs and works fine, but I see that in registry under HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{GUID} the Install Location always shows my profile location instead of current user’s profile location.  Any thoughts on how can I change it to current user’s profile.


Thanks,

AK


0 Comments   [ + ] Show comments

Answers (2)

Posted by: anonymous_9363 8 years ago
Red Belt
0
Since your MSI isn't actually installing anything, you can set INSTALLDIR to be a system folder or something, if it bothers you that much. Personally, I wouldn't bother but then I wouldn't go to the trouble of creating an MSI just to populate a few registry entries, either.

Comments:
  • I forgot to mention that the reason INSTALLDIR is set that way is because there are some files that needs to be placed under user profile. - 786_ak 8 years ago
Posted by: anonymous_9363 8 years ago
Red Belt
0

>user profile
Then your Active Setup configuration needs to do that using self-healing.

Create a parent feature whose components are targeted at the user profile folder, using whatever folder structure you need. Remember you need to set a key path using a registry value not a file. I typically use a dummy one, like this:

[HKEY_CURRENT_USER\Software\In-house\Dummy key-paths\[ProductName]\[ProductCode]]
"Installed"="[ComponentID]"

The feature you have now which contains the Active Setup value needs to then be made a child of the above feature. Its stub path needs to be set to:

MSIEXEC /fup [ProductCode]

Forget about the value of INSTALLDIR, it's irrelevant in this scenario.

First thing, though: do some reading on self-healing and Active Setup. You've posted before about problems with AS so I suspect you're still feeling your way.

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ