Archive: InstallDirRegKey doesn't write to registry


InstallDirRegKey doesn't write to registry
  I'm using Win98SE and NSIS2.0b1 (CVS from Jan-13-2003)
When my installer completes then no key is created in
the registry even though I use InstallDirRegKey HKLM ...


Any help is greatly appreciated.

Please see the attached script.


Re: InstallDirRegKey doesn't write to registry
 

Originally posted by Kypec
I'm using Win98SE and NSIS2.0b1 (CVS from Jan-13-2003)
When my installer completes then no key is created in
the registry even though I use InstallDirRegKey HKLM ...

Any help is greatly appreciated.
InstallDirRegKey does not write the installation dir into the registry, but only reads it. This is usefull, for example, when installing a plugin for Winamp. Winamp has written it's install directory into the registry, so you can get it and install something to it.
If you want to create this key after the installation completes, add this code to one of the sections, but don't remove the key when uninstalling:

WriteRegStr HKLM "Software\${MUI_PRODUCT}" "Install_Dir" $INSTDIR 

>

Thanks a lot :)