From 46071c6a8ba0ce1e93e1d126f32327a9972ed7cd Mon Sep 17 00:00:00 2001 From: Simon Clitherow Date: Sun, 9 Feb 2003 21:59:35 +0000 Subject: [PATCH] Added files for using NSIS (http://nsis.sourceforge.net) as an alternative self-install/uninstall system for windows. --- release/windows/installer/00.blender.nsi | 83 +++++++++++++++++++++ release/windows/installer/00.checked.bmp | Bin 0 -> 358 bytes release/windows/installer/00.unchecked.bmp | Bin 0 -> 358 bytes 3 files changed, 83 insertions(+) create mode 100644 release/windows/installer/00.blender.nsi create mode 100644 release/windows/installer/00.checked.bmp create mode 100644 release/windows/installer/00.unchecked.bmp diff --git a/release/windows/installer/00.blender.nsi b/release/windows/installer/00.blender.nsi new file mode 100644 index 00000000000..3e61bc6d79f --- /dev/null +++ b/release/windows/installer/00.blender.nsi @@ -0,0 +1,83 @@ +; +; 00.blender.nsi +; +; Blender Self-Installer for Windows (NSIS - http://nsis.sourceforge.net) +; +; 09.02.2003 aphex (mediocre@mixmojo.com) +; + +Name "Blender" +Caption "Blender Installer" +OutFile "blender-installer-win32-2.26.exe" +Icon "00.installer.ico" + +EnabledBitmap "00.checked.bmp" +DisabledBitmap "00.unchecked.bmp" + +InstallDir "$PROGRAMFILES\Blender Foundation\Blender" + +LicenseText "Please read and agree to the license below:" +LicenseData "..\..\text\copyright.txt" + +Function .onInstSuccess + MessageBox MB_YESNO "Blender was successfully setup on your computer. Do you wish to start Blender now?" IDNO NoThanks + ExecShell "open" '"$INSTDIR\blender-2.26.exe"' + NoThanks: +FunctionEnd + +BrandingText "http://www.blender.org/bf" +ComponentText "This will install Blender 2.26 on your computer." + +DirText "Use the field below to specify the folder where you want Blender to be copied to. To specify a different folder, type a new name or use the Browse button to select an existing folder." + +Section "Blender-2.26 (required)" + ; Set output path to the installation directory. + SetOutPath $INSTDIR + ; Put file there + File ..\..\..\obj\windows\blender-2.26.exe + File ..\..\..\lib\windows\python\lib\python22.dll + File ..\..\text\copyright.txt + File ..\..\text\README + File ..\extra\help.url + ; Write the installation path into the registry + WriteRegStr HKLM SOFTWARE\BlenderFoundation "Install_Dir" "$INSTDIR" + ; Write the uninstall keys for Windows + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Blender226" "DisplayName" "Blender 2.26 (remove only)" + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Blender226" "UninstallString" '"$INSTDIR\uninstall.exe"' + WriteUninstaller "uninstall.exe" +SectionEnd + +SectionDivider + +Section "Start Menu Shortcuts" + CreateDirectory "$SMPROGRAMS\Blender Foundation\Blender\" + CreateShortCut "$SMPROGRAMS\Blender Foundation\Blender\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0 + CreateShortCut "$SMPROGRAMS\Blender Foundation\Blender\blender-2.26.lnk" "$INSTDIR\blender-2.26.exe" "" "$INSTDIR\blender-2.26.exe" 0 + CreateShortCut "$SMPROGRAMS\Blender Foundation\Blender\README.lnk" "$INSTDIR\README" "" "" 0 + CreateShortCut "$SMPROGRAMS\Blender Foundation\Blender\copyright.lnk" "$INSTDIR\copyright.txt" "" "$INSTDIR\copyright.txt" 0 + CreateShortCut "$SMPROGRAMS\Blender Foundation\Blender\help.lnk" "$INSTDIR\help.url" + MessageBox MB_YESNO "Do you wish to create a shortcut on your desktop?" IDNO NoDeskShortcut + CreateShortCut "$DESKTOP\Blender-2.26.lnk" "$INSTDIR\blender-2.26.exe" "" "$INSTDIR\blender-2.26.exe" 0 + NoDeskShortcut: +SectionEnd + +UninstallText "This will uninstall Blender 2.26. Hit next to continue." + +Section "Uninstall" + ; remove registry keys + DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Blender226" + DeleteRegKey HKLM SOFTWARE\BlenderFoundation + ; remove files + Delete $INSTDIR\blender-2.26.exe + Delete $INSTDIR\python22.dll + Delete $INSTDIR\copyright.txt + Delete $INSTDIR\README + Delete $INSTDIR\uninstall.exe + ; remove shortcuts, if any. + Delete "$SMPROGRAMS\Blender Foundation\Blender\*.*" + Delete "$DESKTOP\Blender-2.26.lnk" + ; remove directories used. + RMDir "$SMPROGRAMS\Blender Foundation\Blender" + RMDir "$SMPROGRAMS\Blender Foundation" + RMDir "$INSTDIR" +SectionEnd \ No newline at end of file diff --git a/release/windows/installer/00.checked.bmp b/release/windows/installer/00.checked.bmp new file mode 100644 index 0000000000000000000000000000000000000000..17222dc26e9b9a90bc6bcf7f178a761fca911e7e GIT binary patch literal 358 zcmZvX!4ZTY3`N6?C2SGa;oUYYVb`17EMKC6LA!bwqwF z0}ZO5THi_}!lW46f(oRZGgjGPoy07J#1KjP9@<+6{#l4`YjQD`*0}69uc>oM38v<$ hM}_G+>zQG?bjC(!PLAtw>+IQi?0)}dyrsqSUw>3R#&G}u literal 0 HcmV?d00001 diff --git a/release/windows/installer/00.unchecked.bmp b/release/windows/installer/00.unchecked.bmp new file mode 100644 index 0000000000000000000000000000000000000000..6d3ff5cc58cae80915bb610242fffa87b597f919 GIT binary patch literal 358 zcmZ?rO=DyLgEAng0mLFu%*en37XJVwmAD~T0LTX6|Ns9p95`?Q$f7b3gaVMUAd7$i P?7YFuMs_pA$rvO6PqYeW literal 0 HcmV?d00001