mirror of
https://github.com/Wisser/Jailer.git
synced 2026-02-21 01:13:34 -06:00
new
git-svn-id: https://svn.code.sf.net/p/jailer/code/trunk@1276 3dd849cd-670e-4645-a7cd-dd197c8d0e81
This commit is contained in:
92
admin/Jailer.nsi
Normal file
92
admin/Jailer.nsi
Normal file
@@ -0,0 +1,92 @@
|
||||
!define Version "7.0.1"
|
||||
|
||||
; The name of the installer
|
||||
Name "Jailer ${Version}"
|
||||
|
||||
; The file to write
|
||||
OutFile "Jailer-Install-${Version}.exe"
|
||||
|
||||
; The default installation directory
|
||||
InstallDir $PROGRAMFILES\Jailer
|
||||
|
||||
; Registry key to check for directory (so if you install again, it will
|
||||
; overwrite the old one automatically)
|
||||
InstallDirRegKey HKLM "Software\Jailer" "Install_Dir"
|
||||
|
||||
; Request application privileges for Windows Vista
|
||||
RequestExecutionLevel admin
|
||||
|
||||
;--------------------------------
|
||||
|
||||
; Pages
|
||||
|
||||
Page components
|
||||
Page directory
|
||||
Page instfiles
|
||||
|
||||
UninstPage uninstConfirm
|
||||
UninstPage instfiles
|
||||
|
||||
Icon "..\src\main\gui\net\sf\jailer\ui\resource\Jailer.ico"
|
||||
|
||||
;--------------------------------
|
||||
|
||||
; The stuff to install
|
||||
Section "Jailer"
|
||||
|
||||
SectionIn RO
|
||||
|
||||
; Set output path to the installation directory.
|
||||
SetOutPath $INSTDIR
|
||||
|
||||
; Put file there
|
||||
|
||||
File /r "C:\tmp\jailer\*.*"
|
||||
|
||||
; Write the installation path into the registry
|
||||
WriteRegStr HKLM SOFTWARE\Jailer "Install_Dir" "$INSTDIR"
|
||||
|
||||
; Write the uninstall keys for Windows
|
||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Jailer" "DisplayName" "Jailer"
|
||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Jailer" "UninstallString" '"$INSTDIR\uninstall.exe"'
|
||||
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Jailer" "NoModify" 1
|
||||
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Jailer" "NoRepair" 1
|
||||
WriteUninstaller "uninstall.exe"
|
||||
|
||||
SectionEnd
|
||||
|
||||
; Optional section (can be disabled by the user)
|
||||
Section "Start Menu Shortcuts"
|
||||
|
||||
CreateDirectory "$SMPROGRAMS\Jailer"
|
||||
Delete "$SMPROGRAMS\Jailer\*.*"
|
||||
CreateShortcut "$SMPROGRAMS\Jailer\Jailer ${Version} .lnk" "$INSTDIR\Jailer.exe"
|
||||
CreateShortcut "$SMPROGRAMS\Jailer\Jailer ${Version} Data Browser.lnk" "$INSTDIR\jailerDataBrowser.exe"
|
||||
CreateShortcut "$SMPROGRAMS\Jailer\Work Folder.lnk" "$INSTDIR\"
|
||||
CreateShortcut "$SMPROGRAMS\Jailer\Uninstall.lnk" "$INSTDIR\uninstall.exe"
|
||||
|
||||
SectionEnd
|
||||
|
||||
;--------------------------------
|
||||
|
||||
; Uninstaller
|
||||
|
||||
Section "Uninstall"
|
||||
|
||||
; Remove registry keys
|
||||
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Jailer"
|
||||
DeleteRegKey HKLM SOFTWARE\Jailer
|
||||
|
||||
; Remove files and uninstaller
|
||||
; Delete $INSTDIR\example2.nsi
|
||||
; Delete $INSTDIR\uninstall.exe
|
||||
|
||||
; Remove shortcuts, if any
|
||||
Delete "$SMPROGRAMS\Jailer\*.*"
|
||||
Delete "$INSTDIR\*.*"
|
||||
|
||||
; Remove directories used
|
||||
RMDir "$SMPROGRAMS\Jailer"
|
||||
RMDir "$INSTDIR"
|
||||
|
||||
SectionEnd
|
||||
Reference in New Issue
Block a user