- update for the win installer scripts ( added new scripts, etc ).

This commit is contained in:
Simon Clitherow 2004-07-28 16:19:50 +00:00
parent 846da79887
commit fe5e1301f6
4 changed files with 21 additions and 28 deletions

@ -176,6 +176,9 @@ Var is2KXP
Function DataLocation Function DataLocation
!insertmacro MUI_HEADER_TEXT "$(TEXT_IO_TITLE)" "" !insertmacro MUI_HEADER_TEXT "$(TEXT_IO_TITLE)" ""
; Set default choice
!insertmacro MUI_INSTALLOPTIONS_WRITE "data.ini" "Field 3" "State" 1
StrCpy $R1 $winversion 2 StrCpy $R1 $winversion 2
StrCmp $R1 "NT" do_win2kxp StrCmp $R1 "NT" do_win2kxp
StrCmp $winversion "2000" do_win2kxp StrCmp $winversion "2000" do_win2kxp
@ -184,15 +187,12 @@ Function DataLocation
;else... ;else...
Strcpy $is2KXP "false" Strcpy $is2KXP "false"
!insertmacro MUI_INSTALLOPTIONS_WRITE "data.ini" "Field 3" "State" 1
Goto continue Goto continue
do_win2kXP: do_win2kXP:
Strcpy $is2KXP "true" Strcpy $is2KXP "true"
!insertmacro MUI_INSTALLOPTIONS_WRITE "data.ini" "Field 2" "State" 1
continue: continue:
!insertmacro MUI_INSTALLOPTIONS_INITDIALOG "data.ini" !insertmacro MUI_INSTALLOPTIONS_INITDIALOG "data.ini"
@ -224,15 +224,6 @@ Function DataLocation
ReadEnvStr $BLENDERHOME "HOME" ReadEnvStr $BLENDERHOME "HOME"
Goto end Goto end
do_inst_path: do_inst_path:
Strcmp $is2KXP "true" warning
Call SetWin9xPath
Goto end
warning:
IfFileExists "$PROFILE\Application Data\Blender Foundation\Blender\.blender\.bfont.ttf" disp_warning
Call SetWin9xPath
Goto end
disp_warning:
MessageBox MB_OK "Please note that user data files have been found in $PROFILE\Application Data\Blender Foundation\Blender. Blender will automatically use these instead of the files in $INSTDIR. Please remove the .blender folder from Application Data if you wish to use this option."
Call SetWin9xPath Call SetWin9xPath
end: end:
@ -263,18 +254,27 @@ Section "Blender-VERSION (required)" SecCopyUI
SetOutPath $BLENDERHOME\.blender\scripts SetOutPath $BLENDERHOME\.blender\scripts
File DISTDIR\.blender\scripts\ac3d_export.py File DISTDIR\.blender\scripts\ac3d_export.py
File DISTDIR\.blender\scripts\ac3d_import.py File DISTDIR\.blender\scripts\ac3d_import.py
File DISTDIR\.blender\scripts\Apply_def.py
File DISTDIR\.blender\scripts\batch_name_edit.py
File DISTDIR\.blender\scripts\bevel_center.py
File DISTDIR\.blender\scripts\blender2cal3d.py File DISTDIR\.blender\scripts\blender2cal3d.py
File DISTDIR\.blender\scripts\bvh_export.py File DISTDIR\.blender\scripts\bvh_export.py
File DISTDIR\.blender\scripts\bvh_import.py File DISTDIR\.blender\scripts\bvh_import.py
File DISTDIR\.blender\scripts\DirectX8Exporter.py
File DISTDIR\.blender\scripts\DirectXExporter.py File DISTDIR\.blender\scripts\DirectXExporter.py
File DISTDIR\.blender\scripts\disp_paint233f.py File DISTDIR\.blender\scripts\disp_paint.py
File DISTDIR\.blender\scripts\doc_browser.py
File DISTDIR\.blender\scripts\fixfromarmature.py File DISTDIR\.blender\scripts\fixfromarmature.py
File DISTDIR\.blender\scripts\hotkeys.py
File DISTDIR\.blender\scripts\kloputils.py
File DISTDIR\.blender\scripts\knife.py
File DISTDIR\.blender\scripts\lightwave_export.py File DISTDIR\.blender\scripts\lightwave_export.py
File DISTDIR\.blender\scripts\lightwave_import.py File DISTDIR\.blender\scripts\lightwave_import.py
File DISTDIR\.blender\scripts\mod_blender.py File DISTDIR\.blender\scripts\mod_blender.py
File DISTDIR\.blender\scripts\mod_meshtools.py File DISTDIR\.blender\scripts\mod_meshtools.py
File DISTDIR\.blender\scripts\nendo_export.py File DISTDIR\.blender\scripts\nendo_export.py
File DISTDIR\.blender\scripts\nendo_import.py File DISTDIR\.blender\scripts\nendo_import.py
File DISTDIR\.blender\scripts\obdatacopier.py
File DISTDIR\.blender\scripts\obj_export.py File DISTDIR\.blender\scripts\obj_export.py
File DISTDIR\.blender\scripts\obj_import.py File DISTDIR\.blender\scripts\obj_import.py
File DISTDIR\.blender\scripts\off_export.py File DISTDIR\.blender\scripts\off_export.py
@ -283,7 +283,9 @@ Section "Blender-VERSION (required)" SecCopyUI
File DISTDIR\.blender\scripts\radiosity_import.py File DISTDIR\.blender\scripts\radiosity_import.py
File DISTDIR\.blender\scripts\raw_export.py File DISTDIR\.blender\scripts\raw_export.py
File DISTDIR\.blender\scripts\raw_import.py File DISTDIR\.blender\scripts\raw_import.py
File DISTDIR\.blender\scripts\renameobjectbyblock.py
File DISTDIR\.blender\scripts\rvk1_torvk2.py File DISTDIR\.blender\scripts\rvk1_torvk2.py
File DISTDIR\.blender\scripts\sel_same.py
File DISTDIR\.blender\scripts\slp_import.py File DISTDIR\.blender\scripts\slp_import.py
File DISTDIR\.blender\scripts\sysinfo.py File DISTDIR\.blender\scripts\sysinfo.py
File DISTDIR\.blender\scripts\truespace_export.py File DISTDIR\.blender\scripts\truespace_export.py
@ -297,6 +299,7 @@ Section "Blender-VERSION (required)" SecCopyUI
File DISTDIR\.blender\scripts\wrl2export.py File DISTDIR\.blender\scripts\wrl2export.py
SetOutPath $BLENDERHOME\.blender\bpydata SetOutPath $BLENDERHOME\.blender\bpydata
File DISTDIR\.blender\bpydata\readme.txt File DISTDIR\.blender\bpydata\readme.txt
File DISTDIR\.blender\bpydata\KUlang.txt
; Additional Languages files ; Additional Languages files
SetOutPath $BLENDERHOME\.blender SetOutPath $BLENDERHOME\.blender

@ -176,6 +176,9 @@ Var is2KXP
Function DataLocation Function DataLocation
!insertmacro MUI_HEADER_TEXT "$(TEXT_IO_TITLE)" "" !insertmacro MUI_HEADER_TEXT "$(TEXT_IO_TITLE)" ""
; Set default choice
!insertmacro MUI_INSTALLOPTIONS_WRITE "data.ini" "Field 3" "State" 1
StrCpy $R1 $winversion 2 StrCpy $R1 $winversion 2
StrCmp $R1 "NT" do_win2kxp StrCmp $R1 "NT" do_win2kxp
StrCmp $winversion "2000" do_win2kxp StrCmp $winversion "2000" do_win2kxp
@ -184,15 +187,12 @@ Function DataLocation
;else... ;else...
Strcpy $is2KXP "false" Strcpy $is2KXP "false"
!insertmacro MUI_INSTALLOPTIONS_WRITE "data.ini" "Field 3" "State" 1
Goto continue Goto continue
do_win2kXP: do_win2kXP:
Strcpy $is2KXP "true" Strcpy $is2KXP "true"
!insertmacro MUI_INSTALLOPTIONS_WRITE "data.ini" "Field 2" "State" 1
continue: continue:
!insertmacro MUI_INSTALLOPTIONS_INITDIALOG "data.ini" !insertmacro MUI_INSTALLOPTIONS_INITDIALOG "data.ini"
@ -224,15 +224,6 @@ Function DataLocation
ReadEnvStr $BLENDERHOME "HOME" ReadEnvStr $BLENDERHOME "HOME"
Goto end Goto end
do_inst_path: do_inst_path:
Strcmp $is2KXP "true" warning
Call SetWin9xPath
Goto end
warning:
IfFileExists "$PROFILE\Application Data\Blender Foundation\Blender\.blender\.bfont.ttf" disp_warning
Call SetWin9xPath
Goto end
disp_warning:
MessageBox MB_OK "Please note that user data files have been found in $PROFILE\Application Data\Blender Foundation\Blender. Blender will automatically use these instead of the files in $INSTDIR. Please remove the .blender folder from Application Data if you wish to use this option."
Call SetWin9xPath Call SetWin9xPath
end: end:
@ -256,8 +247,7 @@ Section "Blender-VERSION (required)" SecCopyUI
SetOutPath $BLENDERHOME\.blender\bpydata SetOutPath $BLENDERHOME\.blender\bpydata
File DISTDIR\.blender\bpydata\readme.txt File DISTDIR\.blender\bpydata\readme.txt
SetOutPath $BLENDERHOME\.blender\locale\ca\LC_MESSAGES ; Language files
;File DISTDIR\.blender\locale\ca\LC_MESSAGES\blender.mo
[LANGUAGECONTS] [LANGUAGECONTS]
SetOutPath $INSTDIR SetOutPath $INSTDIR

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

@ -11,7 +11,7 @@ Bottom=10
[Field 2] [Field 2]
Type=RadioButton Type=RadioButton
Text=Use Application Data Directory (Recommended on Win2k/XP) Text=Use Application Data Directory (Win2k/XP only)
Left=0 Left=0
Right=-1 Right=-1
Top=20 Top=20