diff options
Diffstat (limited to 'DevIL-utils/DevIL Install/DevIL + Uninstall + Modern UI.nsi')
-rwxr-xr-x | DevIL-utils/DevIL Install/DevIL + Uninstall + Modern UI.nsi | 186 |
1 files changed, 93 insertions, 93 deletions
diff --git a/DevIL-utils/DevIL Install/DevIL + Uninstall + Modern UI.nsi b/DevIL-utils/DevIL Install/DevIL + Uninstall + Modern UI.nsi index 1706dd38..8889e484 100755 --- a/DevIL-utils/DevIL Install/DevIL + Uninstall + Modern UI.nsi +++ b/DevIL-utils/DevIL Install/DevIL + Uninstall + Modern UI.nsi @@ -1,93 +1,93 @@ -; DevIL.nsi
-
-
-;--------------------------------
-;Include Modern UI
-
- !include "MUI2.nsh"
-
-;--------------------------------
-;General
-
-Name "Developer's Image Library 1.7.2 Run-time Files"
-
-; The file to write
-OutFile "DevIL-1.7.2.exe"
-
-; The default installation directory
-InstallDir "$PROGRAMFILES\Developer's Image Library"
-
-; Request application privileges for Windows Vista
-RequestExecutionLevel admin
-
-
-;--------------------------------
-;Interface Settings
-
- !define MUI_ABORTWARNING
-
-;--------------------------------
-;Pages
-
- !insertmacro MUI_PAGE_COMPONENTS
- !insertmacro MUI_PAGE_DIRECTORY
- !insertmacro MUI_PAGE_INSTFILES
-
- !insertmacro MUI_UNPAGE_CONFIRM
- !insertmacro MUI_UNPAGE_INSTFILES
-
-;--------------------------------
-;Languages
-
- !insertmacro MUI_LANGUAGE "English"
-
-
-
-; The stuff to install
-Section "Developer's Image Library (required)"
-
- ; Set output path to the installation directory.
- SetOutPath $SYSDIR
-
- ; Put files in the System folder
- File "..\devil\lib\DevIL.dll"
- File "..\devil\lib\ILU.dll"
- File "..\devil\lib\ILUT.dll"
-
-
- ; Set output path to the installation directory.
- SetOutPath $INSTDIR
-
- ; Write the installation path into the registry
- WriteRegStr HKLM SOFTWARE\DevIL "Install_Dir" "$INSTDIR"
-
- ; Write the uninstall keys for Windows
- WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\DevIL" "DisplayName" "Developer's Image Library"
- WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\DevIL" "UninstallString" '"$INSTDIR\uninstall.exe"'
- WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\DevIL" "NoModify" 1
- WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\DevIL" "NoRepair" 1
- WriteUninstaller "uninstall.exe"
-
-SectionEnd
-
-
-
-;--------------------------------
-; Uninstaller
-
-Section "Uninstall"
-
- ; Remove registry keys
- DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\DevIL"
- DeleteRegKey HKLM SOFTWARE\DevIL
-
- ; Remove files and uninstaller
- Delete $SYSDIR\DevIL.dll
- Delete $SYSDIR\ILU.dll
- Delete $SYSDIR\ILUT.dll
- Delete $INSTDIR\uninstall.exe
-
- ; Remove directories used
- RMDir "$INSTDIR"
-
-SectionEnd
+; DevIL.nsi + + +;-------------------------------- +;Include Modern UI + + !include "MUI2.nsh" + +;-------------------------------- +;General + +Name "Developer's Image Library 1.7.2 Run-time Files" + +; The file to write +OutFile "DevIL-1.7.2.exe" + +; The default installation directory +InstallDir "$PROGRAMFILES\Developer's Image Library" + +; Request application privileges for Windows Vista +RequestExecutionLevel admin + + +;-------------------------------- +;Interface Settings + + !define MUI_ABORTWARNING + +;-------------------------------- +;Pages + + !insertmacro MUI_PAGE_COMPONENTS + !insertmacro MUI_PAGE_DIRECTORY + !insertmacro MUI_PAGE_INSTFILES + + !insertmacro MUI_UNPAGE_CONFIRM + !insertmacro MUI_UNPAGE_INSTFILES + +;-------------------------------- +;Languages + + !insertmacro MUI_LANGUAGE "English" + + + +; The stuff to install +Section "Developer's Image Library (required)" + + ; Set output path to the installation directory. + SetOutPath $SYSDIR + + ; Put files in the System folder + File "..\devil\lib\DevIL.dll" + File "..\devil\lib\ILU.dll" + File "..\devil\lib\ILUT.dll" + + + ; Set output path to the installation directory. + SetOutPath $INSTDIR + + ; Write the installation path into the registry + WriteRegStr HKLM SOFTWARE\DevIL "Install_Dir" "$INSTDIR" + + ; Write the uninstall keys for Windows + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\DevIL" "DisplayName" "Developer's Image Library" + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\DevIL" "UninstallString" '"$INSTDIR\uninstall.exe"' + WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\DevIL" "NoModify" 1 + WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\DevIL" "NoRepair" 1 + WriteUninstaller "uninstall.exe" + +SectionEnd + + + +;-------------------------------- +; Uninstaller + +Section "Uninstall" + + ; Remove registry keys + DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\DevIL" + DeleteRegKey HKLM SOFTWARE\DevIL + + ; Remove files and uninstaller + Delete $SYSDIR\DevIL.dll + Delete $SYSDIR\ILU.dll + Delete $SYSDIR\ILUT.dll + Delete $INSTDIR\uninstall.exe + + ; Remove directories used + RMDir "$INSTDIR" + +SectionEnd |