Changeset 7545

Show
Ignore:
Timestamp:
2006-05-14 00:22:56 (3 years ago)
Author:
luks
Message:

Added install dir to the registry so the installer will remember it (closes #1426)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • picard/trunk/installer/picard-setup.nsi.in

    r7194 r7545  
    1010Name "${PRODUCT_NAME} ${PRODUCT_VERSION}" 
    1111OutFile "picard-setup-${PRODUCT_VERSION}.exe" 
    12 InstallDir "$PROGRAMFILES\${PRODUCT_NAME}" 
    1312ShowInstDetails show 
    1413ShowUnInstDetails show 
     14 
     15; The default installation directory 
     16InstallDir "$PROGRAMFILES\${PRODUCT_NAME}" 
     17 
     18; The default installation directory 
     19InstallDirRegKey HKLM "Software\MusicBrainz\${PRODUCT_NAME}" "InstallDir" 
    1520 
    1621!include "MUI.nsh" 
     
    7277  !insertmacro MUI_STARTMENU_WRITE_END 
    7378 
     79  ; Write the installation path into the registry 
     80  WriteRegStr HKLM "Software\MusicBrainz\${PRODUCT_NAME}" "InstallDir" "$INSTDIR" 
     81   
    7482  ; Create uninstaller 
    7583  WriteUninstaller "$INSTDIR\uninst.exe" 
     
    93101 
    94102  DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" 
     103  DeleteRegKey HKLM "Software\MusicBrainz\${PRODUCT_NAME}" 
    95104   
    96105SectionEnd