View Full Version : How to create the registry entry depending on the ALLUSERS property
SatheshKumar
12-02-2004, 06:47 AM
The HKEY_USER_SELECTABLE hive is available in the Registry pane of the Installshield IDE. I want to create registry entries using Installscript based on the ALLUSERS property value. Is there any way to use HKEY_USER_SELECTABLE in the Installscript directly? Or I have to check the ALLUSERS value in If condition and create the registry entry in HKEY_LOCAL_MACHINE/HKEY_CURRENT_USER.
Thanks in Advance
mr_anderson
12-07-2004, 09:27 AM
HKEY_USER_SELECTABLE hive is specific to MSI functionality and is not available in the RegDBxxx functions using InstallScript. It is recommended that you do not use the RegDB functions to manipulate with registry entries and instead use the MSI framework itself. This saves a lot of trouble of refcounting and maintaining during an upgrade. :)
Christopher Painter
12-09-2004, 12:00 AM
HKEY_USER_SELECTABLE is a "freebie" .. it's automatic. If the install is per user it will go to HKEY_CURRENT_USER if the install is per machine it will go to HKEY_LOCAL_MACHINE. No further work is required.
BTW- I do on occasion have reason to write something to the registry behind MSI's back so RegDB functions aren't always that bad.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.