2003-02-09 21:59:35 +00:00
;
2003-02-10 11:07:14 +00:00
; $Id$
2003-02-09 21:59:35 +00:00
;
; Blender Self-Installer for Windows (NSIS - http://nsis.sourceforge.net)
;
2004-01-27 22:13:41 +00:00
!include "MUI.nsh"
2004-04-20 19:12:48 +00:00
Name "Blender VERSION"
2004-01-27 22:13:41 +00:00
2004-04-20 19:12:48 +00:00
!define MUI_ABORTWARNING
2004-06-23 18:43:25 +00:00
!define MUI_WELCOMEPAGE_TEXT "This wizard will guide you through the installation of Blender.\r\n\r\nIt is recommended that you close all other applications before starting Setup.\r\n\r\nNote to Win2k/XP users: You may require administrator privileges to install Blender successfully."
2004-04-20 19:12:48 +00:00
!define MUI_WELCOMEFINISHPAGE_BITMAP "01.installer.bmp"
!define MUI_HEADERIMAGE
!define MUI_HEADERIMAGE_BITMAP "00.header.bmp"
!define MUI_COMPONENTSPAGE_SMALLDESC
!define MUI_FINISHPAGE_RUN "$INSTDIR\blender.exe"
!define MUI_CHECKBITMAP "00.checked.bmp"
2004-01-27 22:13:41 +00:00
2004-04-20 19:12:48 +00:00
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_LICENSE "DISTDIR\Copyright.txt"
!insertmacro MUI_PAGE_COMPONENTS
2004-01-27 22:13:41 +00:00
2004-04-20 19:12:48 +00:00
!insertmacro MUI_PAGE_DIRECTORY
2004-06-23 18:43:25 +00:00
Page custom DataLocation
2004-04-20 19:12:48 +00:00
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_UNPAGE_WELCOME
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
!insertmacro MUI_UNPAGE_FINISH
2003-02-09 21:59:35 +00:00
2004-04-20 19:12:48 +00:00
Icon "00.installer.ico"
UninstallIcon "00.installer.ico"
2003-02-09 21:59:35 +00:00
2004-01-27 22:13:41 +00:00
;--------------------------------
;Languages
!insertmacro MUI_LANGUAGE "English"
;--------------------------------
;Language Strings
2003-02-09 21:59:35 +00:00
2004-01-27 22:13:41 +00:00
;Description
LangString DESC_SecCopyUI ${LANG_ENGLISH} "Copy all required files to the application folder."
LangString DESC_Section2 ${LANG_ENGLISH} "Add shortcut items to the Start Menu. (Recommended)"
LangString DESC_Section3 ${LANG_ENGLISH} "Add a shortcut to Blender on your desktop."
2004-02-01 15:42:14 +00:00
LangString DESC_Section4 ${LANG_ENGLISH} "Blender can register itself with .blend files to allow double-clicking from Windows Explorer, etc."
2004-06-23 18:43:25 +00:00
LangString TEXT_IO_TITLE ${LANG_ENGLISH} "Specify User Data Location"
2004-01-27 22:13:41 +00:00
;--------------------------------
;Data
Caption "Blender VERSION Installer"
OutFile "DISTDIR\..\VERSION\blender-VERSION-windows.exe"
InstallDir "$PROGRAMFILES\Blender Foundation\Blender"
2003-02-09 21:59:35 +00:00
BrandingText "http://www.blender.org/bf"
2003-02-10 11:07:14 +00:00
ComponentText "This will install Blender VERSION on your computer."
2003-02-09 21:59:35 +00:00
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."
2004-04-20 19:12:48 +00:00
; GetWindowsVersion
;
; Based on Yazno's function, http://yazno.tripod.com/powerpimpit/
; Updated by Joost Verburg
;
; Returns on top of stack
;
; Windows Version (95, 98, ME, NT x.x, 2000, XP, 2003)
; or
; '' (Unknown Windows Version)
;
; Usage:
; Call GetWindowsVersion
; Pop $R0
; ; at this point $R0 is "NT 4.0" or whatnot
Function GetWindowsVersion
Push $R0
Push $R1
ReadRegStr $R0 HKLM \
"SOFTWARE\Microsoft\Windows NT\CurrentVersion" CurrentVersion
IfErrors 0 lbl_winnt
; we are not NT
ReadRegStr $R0 HKLM \
"SOFTWARE\Microsoft\Windows\CurrentVersion" VersionNumber
StrCpy $R1 $R0 1
StrCmp $R1 '4' 0 lbl_error
StrCpy $R1 $R0 3
StrCmp $R1 '4.0' lbl_win32_95
StrCmp $R1 '4.9' lbl_win32_ME lbl_win32_98
lbl_win32_95:
StrCpy $R0 '95'
Goto lbl_done
lbl_win32_98:
StrCpy $R0 '98'
Goto lbl_done
lbl_win32_ME:
StrCpy $R0 'ME'
Goto lbl_done
lbl_winnt:
StrCpy $R1 $R0 1
StrCmp $R1 '3' lbl_winnt_x
StrCmp $R1 '4' lbl_winnt_x
StrCpy $R1 $R0 3
StrCmp $R1 '5.0' lbl_winnt_2000
StrCmp $R1 '5.1' lbl_winnt_XP
StrCmp $R1 '5.2' lbl_winnt_2003 lbl_error
lbl_winnt_x:
StrCpy $R0 "NT $R0" 6
Goto lbl_done
lbl_winnt_2000:
Strcpy $R0 '2000'
Goto lbl_done
lbl_winnt_XP:
Strcpy $R0 'XP'
Goto lbl_done
lbl_winnt_2003:
Strcpy $R0 '2003'
Goto lbl_done
lbl_error:
Strcpy $R0 ''
lbl_done:
Pop $R1
Exch $R0
FunctionEnd
Var BLENDERHOME
2004-06-23 18:43:25 +00:00
Var winversion
2004-04-20 19:12:48 +00:00
Function SetWinXPPath
2004-06-23 18:43:25 +00:00
StrCpy $BLENDERHOME "$PROFILE\Application Data\Blender Foundation\Blender"
2004-04-20 19:12:48 +00:00
FunctionEnd
Function SetWin9xPath
StrCpy $BLENDERHOME $INSTDIR
FunctionEnd
2004-06-23 18:43:25 +00:00
Function .onInit
2004-04-20 19:12:48 +00:00
Call GetWindowsVersion
Pop $R0
2004-06-23 18:43:25 +00:00
Strcpy $winversion $R0
!insertmacro MUI_INSTALLOPTIONS_EXTRACT "data.ini"
FunctionEnd
Var HWND
Var DLGITEM
Var is2KXP
Function DataLocation
!insertmacro MUI_HEADER_TEXT "$(TEXT_IO_TITLE)" ""
2004-04-20 19:12:48 +00:00
2004-07-28 16:19:50 +00:00
; Set default choice
!insertmacro MUI_INSTALLOPTIONS_WRITE "data.ini" "Field 3" "State" 1
2004-06-23 18:43:25 +00:00
StrCpy $R1 $winversion 2
2004-04-20 19:12:48 +00:00
StrCmp $R1 "NT" do_win2kxp
2004-06-23 18:43:25 +00:00
StrCmp $winversion "2000" do_win2kxp
StrCmp $winversion "XP" do_win2kxp
StrCmp $winversion "2003" do_win2kxp
2004-04-20 19:12:48 +00:00
;else...
2004-06-23 18:43:25 +00:00
Strcpy $is2KXP "false"
Goto continue
2004-04-20 19:12:48 +00:00
do_win2kXP:
2004-06-23 18:43:25 +00:00
Strcpy $is2KXP "true"
2004-04-20 19:12:48 +00:00
2004-06-23 18:43:25 +00:00
continue:
!insertmacro MUI_INSTALLOPTIONS_INITDIALOG "data.ini"
Pop $HWND
Strcmp $is2KXP "true" do_dlg
; Disable App Data option on Win9x
GetDlgItem $DLGITEM $HWND 1201
EnableWindow $DLGITEM 0
do_dlg:
!insertmacro MUI_INSTALLOPTIONS_SHOW
!insertmacro MUI_INSTALLOPTIONS_READ $R0 "data.ini" "Field 2" "State" ; App Dir
Strcmp $R0 1 do_app_data
!insertmacro MUI_INSTALLOPTIONS_READ $R0 "data.ini" "Field 3" "State" ; Inst Dir
Strcmp $R0 1 do_inst_path
!insertmacro MUI_INSTALLOPTIONS_READ $R0 "data.ini" "Field 4" "State" ; Home Dir
Strcmp $R0 1 do_home_path
Goto end
do_app_data:
Call SetWinXPPath
Goto end
do_home_path:
ReadEnvStr $BLENDERHOME "HOME"
Goto end
do_inst_path:
Call SetWin9xPath
end:
2004-04-20 19:12:48 +00:00
FunctionEnd
2004-01-27 22:13:41 +00:00
Section "Blender-VERSION (required)" SecCopyUI
SectionIn RO
2004-06-23 18:43:25 +00:00
; Sets $BLENDERHOME to suit Windows version...
2003-02-09 21:59:35 +00:00
; Set output path to the installation directory.
SetOutPath $INSTDIR
; Put file there
2003-02-10 11:07:14 +00:00
File DISTDIR\blender.exe
2004-07-28 18:28:17 +00:00
File DISTDIR\blenderplayer.exe
2004-06-23 18:43:25 +00:00
File DISTDIR\python23.dll
2004-07-28 18:28:17 +00:00
File DISTDIR\python23.zip
2003-07-23 17:59:27 +00:00
File DISTDIR\sdl.dll
2003-05-14 18:36:48 +00:00
File DISTDIR\gnu_gettext.dll
2003-02-10 11:07:14 +00:00
File DISTDIR\Copyright.txt
2004-06-23 18:43:25 +00:00
File DISTDIR\Blender.html
File DISTDIR\python-license.txt
2003-05-14 18:36:48 +00:00
File DISTDIR\Release_SHORTVERS.txt
2003-02-10 17:43:41 +00:00
File DISTDIR\GPL-license.txt
2003-02-10 11:07:14 +00:00
File DISTDIR\Help.url
2004-07-28 18:28:17 +00:00
File DISTDIR\zlib.pyd
2004-04-20 19:12:48 +00:00
SetOutPath $BLENDERHOME\.blender
2003-05-14 18:36:48 +00:00
File DISTDIR\.blender\.bfont.ttf
2004-04-20 19:12:48 +00:00
SetOutPath $BLENDERHOME\.blender\scripts
2004-01-27 22:13:41 +00:00
File DISTDIR\.blender\scripts\ac3d_export.py
File DISTDIR\.blender\scripts\ac3d_import.py
2004-07-28 16:19:50 +00:00
File DISTDIR\.blender\scripts\Apply_def.py
2004-08-04 06:16:46 +00:00
File DISTDIR\.blender\scripts\Axiscopy.py
2004-07-28 16:19:50 +00:00
File DISTDIR\.blender\scripts\batch_name_edit.py
File DISTDIR\.blender\scripts\bevel_center.py
2004-01-27 22:13:41 +00:00
File DISTDIR\.blender\scripts\blender2cal3d.py
2004-06-23 18:43:25 +00:00
File DISTDIR\.blender\scripts\bvh_export.py
File DISTDIR\.blender\scripts\bvh_import.py
2004-08-04 06:16:46 +00:00
File DISTDIR\.blender\scripts\clean_mesh.py
Updating build systems: folder release/bpydata/ moved to release/scripts/bpydata/
It seemed trivial enough, so I updated all systems (makefiles, xcode, scons, scons win installer), please complain if something went wrong. Mostly it was just removing release/bpydata references, since the release/scripts dir is already worked on recursevely, handling dirs inside it.
For the scons nsi file writer script I had to write code for each new dir, but it can be recoded recursively, too (in fact joining all release stuff in a single dir tree with nothing else would be a good idea, making installation code simpler). Since it's just python and I have a little more time now, I can help scons managers if they still need.
Thanks Campbell Barton for reporting.
2005-04-16 18:25:42 +00:00
File DISTDIR\.blender\scripts\config.py
2004-07-28 16:19:50 +00:00
File DISTDIR\.blender\scripts\DirectX8Exporter.py
2004-06-23 18:43:25 +00:00
File DISTDIR\.blender\scripts\DirectXExporter.py
2004-07-28 16:19:50 +00:00
File DISTDIR\.blender\scripts\disp_paint.py
File DISTDIR\.blender\scripts\doc_browser.py
2004-06-23 18:43:25 +00:00
File DISTDIR\.blender\scripts\fixfromarmature.py
Updating build systems: folder release/bpydata/ moved to release/scripts/bpydata/
It seemed trivial enough, so I updated all systems (makefiles, xcode, scons, scons win installer), please complain if something went wrong. Mostly it was just removing release/bpydata references, since the release/scripts dir is already worked on recursevely, handling dirs inside it.
For the scons nsi file writer script I had to write code for each new dir, but it can be recoded recursively, too (in fact joining all release stuff in a single dir tree with nothing else would be a good idea, making installation code simpler). Since it's just python and I have a little more time now, I can help scons managers if they still need.
Thanks Campbell Barton for reporting.
2005-04-16 18:25:42 +00:00
File DISTDIR\.blender\scripts\help_browser.py
2004-08-01 21:13:41 +00:00
File DISTDIR\.blender\scripts\help_getting_started.py
File DISTDIR\.blender\scripts\help_manual.py
File DISTDIR\.blender\scripts\help_py_reference.py
File DISTDIR\.blender\scripts\help_release_notes.py
File DISTDIR\.blender\scripts\help_tutorials.py
File DISTDIR\.blender\scripts\help_web_blender.py
File DISTDIR\.blender\scripts\help_web_devcomm.py
File DISTDIR\.blender\scripts\help_web_eshop.py
File DISTDIR\.blender\scripts\help_web_usercomm.py
2004-07-28 16:19:50 +00:00
File DISTDIR\.blender\scripts\hotkeys.py
File DISTDIR\.blender\scripts\kloputils.py
File DISTDIR\.blender\scripts\knife.py
2004-06-23 18:43:25 +00:00
File DISTDIR\.blender\scripts\lightwave_export.py
File DISTDIR\.blender\scripts\lightwave_import.py
File DISTDIR\.blender\scripts\nendo_export.py
File DISTDIR\.blender\scripts\nendo_import.py
2004-07-28 16:19:50 +00:00
File DISTDIR\.blender\scripts\obdatacopier.py
2004-06-23 18:43:25 +00:00
File DISTDIR\.blender\scripts\obj_export.py
File DISTDIR\.blender\scripts\obj_import.py
2004-02-01 15:42:14 +00:00
File DISTDIR\.blender\scripts\off_export.py
File DISTDIR\.blender\scripts\off_import.py
2004-08-04 06:16:46 +00:00
File DISTDIR\.blender\scripts\paths_import.py
2004-02-01 15:42:14 +00:00
File DISTDIR\.blender\scripts\radiosity_export.py
File DISTDIR\.blender\scripts\radiosity_import.py
File DISTDIR\.blender\scripts\raw_export.py
File DISTDIR\.blender\scripts\raw_import.py
2004-07-28 16:19:50 +00:00
File DISTDIR\.blender\scripts\renameobjectbyblock.py
2004-06-23 18:43:25 +00:00
File DISTDIR\.blender\scripts\rvk1_torvk2.py
Updating build systems: folder release/bpydata/ moved to release/scripts/bpydata/
It seemed trivial enough, so I updated all systems (makefiles, xcode, scons, scons win installer), please complain if something went wrong. Mostly it was just removing release/bpydata references, since the release/scripts dir is already worked on recursevely, handling dirs inside it.
For the scons nsi file writer script I had to write code for each new dir, but it can be recoded recursively, too (in fact joining all release stuff in a single dir tree with nothing else would be a good idea, making installation code simpler). Since it's just python and I have a little more time now, I can help scons managers if they still need.
Thanks Campbell Barton for reporting.
2005-04-16 18:25:42 +00:00
File DISTDIR\.blender\scripts\save_theme.py
2004-07-28 16:19:50 +00:00
File DISTDIR\.blender\scripts\sel_same.py
2004-08-04 06:16:46 +00:00
File DISTDIR\.blender\scripts\skin.py
2004-06-23 18:43:25 +00:00
File DISTDIR\.blender\scripts\slp_import.py
File DISTDIR\.blender\scripts\sysinfo.py
2004-08-04 06:24:21 +00:00
File DISTDIR\.blender\scripts\tex2uvbaker.py
2004-06-23 18:43:25 +00:00
File DISTDIR\.blender\scripts\truespace_export.py
File DISTDIR\.blender\scripts\truespace_import.py
Updating build systems: folder release/bpydata/ moved to release/scripts/bpydata/
It seemed trivial enough, so I updated all systems (makefiles, xcode, scons, scons win installer), please complain if something went wrong. Mostly it was just removing release/bpydata references, since the release/scripts dir is already worked on recursevely, handling dirs inside it.
For the scons nsi file writer script I had to write code for each new dir, but it can be recoded recursively, too (in fact joining all release stuff in a single dir tree with nothing else would be a good idea, making installation code simpler). Since it's just python and I have a little more time now, I can help scons managers if they still need.
Thanks Campbell Barton for reporting.
2005-04-16 18:25:42 +00:00
File DISTDIR\.blender\scripts\unweld.py
2004-02-01 15:42:14 +00:00
File DISTDIR\.blender\scripts\uv_export.py
2004-06-23 18:43:25 +00:00
File DISTDIR\.blender\scripts\UVpaint05.py
2004-02-01 15:42:14 +00:00
File DISTDIR\.blender\scripts\videoscape_export.py
Updating build systems: folder release/bpydata/ moved to release/scripts/bpydata/
It seemed trivial enough, so I updated all systems (makefiles, xcode, scons, scons win installer), please complain if something went wrong. Mostly it was just removing release/bpydata references, since the release/scripts dir is already worked on recursevely, handling dirs inside it.
For the scons nsi file writer script I had to write code for each new dir, but it can be recoded recursively, too (in fact joining all release stuff in a single dir tree with nothing else would be a good idea, making installation code simpler). Since it's just python and I have a little more time now, I can help scons managers if they still need.
Thanks Campbell Barton for reporting.
2005-04-16 18:25:42 +00:00
File DISTDIR\.blender\scripts\vrml97_export.py
2004-06-23 18:43:25 +00:00
File DISTDIR\.blender\scripts\wings_export.py
File DISTDIR\.blender\scripts\wings_import.py
2004-02-01 15:42:14 +00:00
File DISTDIR\.blender\scripts\wrl2export.py
Updating build systems: folder release/bpydata/ moved to release/scripts/bpydata/
It seemed trivial enough, so I updated all systems (makefiles, xcode, scons, scons win installer), please complain if something went wrong. Mostly it was just removing release/bpydata references, since the release/scripts dir is already worked on recursevely, handling dirs inside it.
For the scons nsi file writer script I had to write code for each new dir, but it can be recoded recursively, too (in fact joining all release stuff in a single dir tree with nothing else would be a good idea, making installation code simpler). Since it's just python and I have a little more time now, I can help scons managers if they still need.
Thanks Campbell Barton for reporting.
2005-04-16 18:25:42 +00:00
SetOutPath $BLENDERHOME\.blender\scripts\bpymodules
File DISTDIR\.blender\scripts\bpymodules\ai2obj.py
File DISTDIR\.blender\scripts\bpymodules\BPyBlender.py
File DISTDIR\.blender\scripts\bpymodules\BPyRegistry.py
File DISTDIR\.blender\scripts\bpymodules\eps2obj.py
File DISTDIR\.blender\scripts\bpymodules\gimp2obj.py
File DISTDIR\.blender\scripts\bpymodules\meshtools.py
File DISTDIR\.blender\scripts\bpymodules\svg2obj.py
SetOutPath $BLENDERHOME\.blender\scripts\bpydata
File DISTDIR\.blender\scripts\bpydata\readme.txt
File DISTDIR\.blender\scripts\bpydata\KUlang.txt
SetOutPath $BLENDERHOME\.blender\scripts\bpydata\config
File DISTDIR\.blender\scripts\bpydata\config\readme.txt
2003-05-14 18:36:48 +00:00
; Additional Languages files
2004-04-20 19:12:48 +00:00
SetOutPath $BLENDERHOME\.blender
2003-05-14 18:36:48 +00:00
File DISTDIR\.blender\.Blanguages
2004-04-20 19:12:48 +00:00
SetOutPath $BLENDERHOME\.blender\locale\ca\LC_MESSAGES
2003-05-14 18:36:48 +00:00
File DISTDIR\.blender\locale\ca\LC_MESSAGES\blender.mo
2004-04-20 19:12:48 +00:00
SetOutPath $BLENDERHOME\.blender\locale\cs\LC_MESSAGES
2004-01-27 22:13:41 +00:00
File DISTDIR\.blender\locale\cs\LC_MESSAGES\blender.mo
2004-04-20 19:12:48 +00:00
SetOutPath $BLENDERHOME\.blender\locale\de\LC_MESSAGES
2003-05-14 18:36:48 +00:00
File DISTDIR\.blender\locale\de\LC_MESSAGES\blender.mo
2004-04-20 19:12:48 +00:00
SetOutPath $BLENDERHOME\.blender\locale\fi\LC_MESSAGES
2003-05-14 18:36:48 +00:00
File DISTDIR\.blender\locale\fi\LC_MESSAGES\blender.mo
2004-04-20 19:12:48 +00:00
SetOutPath $BLENDERHOME\.blender\locale\es\LC_MESSAGES
2003-05-14 18:36:48 +00:00
File DISTDIR\.blender\locale\es\LC_MESSAGES\blender.mo
2004-04-20 19:12:48 +00:00
SetOutPath $BLENDERHOME\.blender\locale\fr\LC_MESSAGES
2003-05-14 18:36:48 +00:00
File DISTDIR\.blender\locale\fr\LC_MESSAGES\blender.mo
2004-04-20 19:12:48 +00:00
SetOutPath $BLENDERHOME\.blender\locale\it\LC_MESSAGES
2003-05-14 18:36:48 +00:00
File DISTDIR\.blender\locale\it\LC_MESSAGES\blender.mo
2004-04-20 19:12:48 +00:00
SetOutPath $BLENDERHOME\.blender\locale\ja\LC_MESSAGES
2003-05-14 18:36:48 +00:00
File DISTDIR\.blender\locale\ja\LC_MESSAGES\blender.mo
2004-04-20 19:12:48 +00:00
SetOutPath $BLENDERHOME\.blender\locale\nl\LC_MESSAGES
2004-01-27 22:13:41 +00:00
File DISTDIR\.blender\locale\nl\LC_MESSAGES\blender.mo
2004-04-20 19:12:48 +00:00
SetOutPath $BLENDERHOME\.blender\locale\sv\LC_MESSAGES
2003-05-14 18:36:48 +00:00
File DISTDIR\.blender\locale\sv\LC_MESSAGES\blender.mo
2004-04-20 19:12:48 +00:00
SetOutPath $BLENDERHOME\.blender\locale\zh_cn\LC_MESSAGES
2004-02-01 15:42:14 +00:00
File DISTDIR\.blender\locale\zh_cn\LC_MESSAGES\blender.mo
2004-04-20 19:12:48 +00:00
SetOutPath $BLENDERHOME\.blender\locale\pt_br\LC_MESSAGES
2004-02-01 15:42:14 +00:00
File DISTDIR\.blender\locale\pt_br\LC_MESSAGES\blender.mo
2004-06-23 18:43:25 +00:00
SetOutPath $BLENDERHOME\.blender\locale\hr_HR\LC_MESSAGES
File DISTDIR\.blender\locale\hr_HR\LC_MESSAGES\blender.mo
SetOutPath $BLENDERHOME\.blender\locale\ru\LC_MESSAGES
File DISTDIR\.blender\locale\ru\LC_MESSAGES\blender.mo
SetOutPath $BLENDERHOME\.blender\locale\pl\LC_MESSAGES
File DISTDIR\.blender\locale\pl\LC_MESSAGES\blender.mo
2003-05-14 18:36:48 +00:00
SetOutPath $INSTDIR
2003-02-09 21:59:35 +00:00
; Write the installation path into the registry
WriteRegStr HKLM SOFTWARE\BlenderFoundation "Install_Dir" "$INSTDIR"
; Write the uninstall keys for Windows
2004-01-27 22:13:41 +00:00
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Blender" "DisplayName" "Blender (remove only)"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Blender" "UninstallString" '"$INSTDIR\uninstall.exe"'
2003-02-09 21:59:35 +00:00
WriteUninstaller "uninstall.exe"
SectionEnd
2004-01-27 22:13:41 +00:00
Section "Add Start Menu shortcuts" Section2
2003-05-14 18:36:48 +00:00
SetOutPath $INSTDIR
2004-01-27 22:13:41 +00:00
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.lnk" "$INSTDIR\Blender.exe" "" "$INSTDIR\blender.exe" 0
2004-06-23 18:43:25 +00:00
CreateShortCut "$SMPROGRAMS\Blender Foundation\Blender\Readme.lnk" "$INSTDIR\Blender.html" "" "" 0
2004-01-27 22:13:41 +00:00
CreateShortCut "$SMPROGRAMS\Blender Foundation\Blender\Copyright.lnk" "$INSTDIR\Copyright.txt" "" "$INSTDIR\copyright.txt" 0
CreateShortCut "$SMPROGRAMS\Blender Foundation\Blender\GPL-license.lnk" "$INSTDIR\GPL-license.txt" "" "$INSTDIR\GPL-license.txt" 0
CreateShortCut "$SMPROGRAMS\Blender Foundation\Blender\Help.lnk" "$INSTDIR\Help.url"
2003-02-10 17:43:41 +00:00
SectionEnd
2004-01-27 22:13:41 +00:00
Section "Add Desktop Blender-VERSION shortcut" Section3
2003-05-14 18:36:48 +00:00
SetOutPath $INSTDIR
2004-01-27 22:13:41 +00:00
CreateShortCut "$DESKTOP\Blender.lnk" "$INSTDIR\blender.exe" "" "$INSTDIR\blender.exe" 0
2003-02-10 17:43:41 +00:00
SectionEnd
2004-01-27 22:13:41 +00:00
Section "Open .blend files with Blender-VERSION" Section4
SetOutPath $INSTDIR
;ExecShell "open" '"$INSTDIR\blender.exe"' "-R -b"
;do it the manual way! ;)
WriteRegStr HKCR ".blend" "" "blendfile"
WriteRegStr HKCR "blendfile" "" "Blender .blend File"
WriteRegStr HKCR "blendfile\shell" "" "open"
WriteRegStr HKCR "blendfile\DefaultIcon" "" $INSTDIR\blender.exe,1
WriteRegStr HKCR "blendfile\shell\open\command" "" \
2004-04-20 19:12:48 +00:00
'"$INSTDIR\blender.exe" "%1"'
2004-01-27 22:13:41 +00:00
2003-02-09 21:59:35 +00:00
SectionEnd
2003-02-10 11:07:14 +00:00
UninstallText "This will uninstall Blender VERSION. Hit next to continue."
2003-02-09 21:59:35 +00:00
Section "Uninstall"
; remove registry keys
2004-01-27 22:13:41 +00:00
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Blender"
2003-02-09 21:59:35 +00:00
DeleteRegKey HKLM SOFTWARE\BlenderFoundation
; remove files
2003-02-10 11:07:14 +00:00
Delete $INSTDIR\blender.exe
2004-07-28 18:28:17 +00:00
Delete $INSTDIR\blenderplayer.exe
2004-06-23 18:43:25 +00:00
Delete $INSTDIR\python23.dll
2004-07-28 18:28:17 +00:00
Delete $INSTDIR\python23.zip
2003-07-23 17:59:27 +00:00
Delete $INSTDIR\sdl.dll
2003-05-14 18:36:48 +00:00
Delete $INSTDIR\gnu_gettext.dll
2003-02-10 11:07:14 +00:00
Delete $INSTDIR\Copyright.txt
2004-06-23 18:43:25 +00:00
Delete $INSTDIR\Blender.html
2003-02-10 17:43:41 +00:00
Delete $INSTDIR\GPL-license.txt
2004-06-23 18:43:25 +00:00
Delete $INSTDIR\python-license.txt
2003-05-14 18:36:48 +00:00
Delete $INSTDIR\Release_SHORTVERS.txt
2003-02-10 11:07:14 +00:00
Delete $INSTDIR\Help.url
2003-02-09 21:59:35 +00:00
Delete $INSTDIR\uninstall.exe
2004-07-28 18:28:17 +00:00
Delete $INSTDIR\zlib.pyd
2004-06-23 18:43:25 +00:00
Delete $INSTDIR\.blender\.bfont.ttf
Delete $INSTDIR\.blender\.Blanguages
2003-02-09 21:59:35 +00:00
; remove shortcuts, if any.
2004-01-27 22:13:41 +00:00
Delete "$SMPROGRAMS\Blender Foundation\Blender\*.*"
Delete "$DESKTOP\Blender.lnk"
2003-02-09 21:59:35 +00:00
; remove directories used.
2004-06-23 18:43:25 +00:00
RMDir /r $INSTDIR\.blender\locale
RMDir /r $INSTDIR\.blender\scripts
Updating build systems: folder release/bpydata/ moved to release/scripts/bpydata/
It seemed trivial enough, so I updated all systems (makefiles, xcode, scons, scons win installer), please complain if something went wrong. Mostly it was just removing release/bpydata references, since the release/scripts dir is already worked on recursevely, handling dirs inside it.
For the scons nsi file writer script I had to write code for each new dir, but it can be recoded recursively, too (in fact joining all release stuff in a single dir tree with nothing else would be a good idea, making installation code simpler). Since it's just python and I have a little more time now, I can help scons managers if they still need.
Thanks Campbell Barton for reporting.
2005-04-16 18:25:42 +00:00
RMDir /r $INSTDIR\.blender\scripts\bpydata
RMDir /r $INSTDIR\.blender\scripts\bpydata\config
RMDir /r $INSTDIR\.blender\scripts\bpymodules
2004-06-23 18:43:25 +00:00
RMDir $INSTDIR\.blender
2004-01-27 22:13:41 +00:00
RMDir "$SMPROGRAMS\Blender Foundation\Blender"
2003-02-09 21:59:35 +00:00
RMDir "$SMPROGRAMS\Blender Foundation"
RMDir "$INSTDIR"
2003-02-10 11:50:07 +00:00
RMDir "$INSTDIR\.."
2003-02-10 11:07:14 +00:00
SectionEnd
2004-01-27 22:13:41 +00:00
2004-04-20 19:12:48 +00:00
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
2004-01-27 22:13:41 +00:00
!insertmacro MUI_DESCRIPTION_TEXT ${SecCopyUI} $(DESC_SecCopyUI)
!insertmacro MUI_DESCRIPTION_TEXT ${Section2} $(DESC_Section2)
!insertmacro MUI_DESCRIPTION_TEXT ${Section3} $(DESC_Section3)
!insertmacro MUI_DESCRIPTION_TEXT ${Section4} $(DESC_Section4)
2004-04-20 19:12:48 +00:00
!insertmacro MUI_FUNCTION_DESCRIPTION_END