Search code examples
installationwindows-installerregistryinstallshield

Where to save configuration parameters in the Registry for future reference in updates


I'm developing a software installer and I need to know in which key of the registry I have to save the parameters of properties used for configuring the software.

I know thanks to InstallShield reference that I need to store these values in the registry, but if anyone have a better and cleaner solution please describe that.


Solution

  • I assume you need to preserve certain values inside the Windows registry to be used by the software your installer installs. Usually software keep values in the registry under HKEY_CURRENT_USER or HKEY_LOCAL_MACHINE roots, depend on installation type ("For everyone" or "For current user only"). The path may looks like ...

    HKEY_CURRENT_USER\Software\{Vendor Name}\{Product Name}
    

    You may open regedit.exe and have a look how other companies store applications values inside Windows registry.