Upgraded to V2.0

SVN revision: 644
This commit is contained in:
Stefan Ritt 2004-01-05 15:13:22 +00:00
parent 66c9574ee5
commit dc87a1e6e6

View File

@ -23,6 +23,15 @@ ComponentText "This will install the ELOG electronic logbook server on your comp
; The text to prompt the user to enter a directory ; The text to prompt the user to enter a directory
DirText "Choose a directory to install in to:" DirText "Choose a directory to install in to:"
; Pages
Page components
Page directory
Page instfiles
UninstPage uninstConfirm
UninstPage instfiles
;----------------------------------------------
; Main system ; Main system
Section "ELOG system (required)" Section "ELOG system (required)"
@ -80,6 +89,9 @@ Section "ELOG system (required)"
; Write the uninstall keys for Windows ; Write the uninstall keys for Windows
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ELOG" "DisplayName" "ELOG electronic logbook (remove only)" WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ELOG" "DisplayName" "ELOG electronic logbook (remove only)"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ELOG" "UninstallString" '"$INSTDIR\uninst_elog.exe"' WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ELOG" "UninstallString" '"$INSTDIR\uninst_elog.exe"'
WriteUninstaller "uninst_elog.exe"
SectionEnd SectionEnd
; optional section ; optional section
@ -119,10 +131,10 @@ FunctionEnd
; uninstall stuff ; uninstall stuff
UninstallText "This will uninstall ELOG." UninstallText "This will uninstall ELOG."
UninstallExeName "uninst_elog.exe"
; special uninstall section. ; special uninstall section.
Section "Uninstall" Section "Uninstall"
; remove registry keys ; remove registry keys
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ELOG" DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ELOG"
DeleteRegKey HKLM SOFTWARE\ELOG DeleteRegKey HKLM SOFTWARE\ELOG