mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix [#24053] 64-bit Windows installer installs keys to 32-bit registry
Reported and patch-suggestion by George Pollard
This commit is contained in:
parent
f875777212
commit
16e478cdb7
1 changed files with 11 additions and 0 deletions
|
|
@ -11,6 +11,8 @@
|
|||
!include "FileFunc.nsh"
|
||||
!include "WordFunc.nsh"
|
||||
!include "nsDialogs.nsh"
|
||||
!include "x64.nsh"
|
||||
|
||||
|
||||
SetCompressor /SOLID lzma
|
||||
|
||||
|
|
@ -148,6 +150,9 @@ Section "Blender-[VERSION] (required)" SecCopyUI
|
|||
[DODATAFILES]
|
||||
|
||||
SetOutPath $INSTDIR
|
||||
${If} ${RunningX64}
|
||||
SetRegView 64
|
||||
${EndIf}
|
||||
; Write the installation path into the registry
|
||||
WriteRegStr HKLM "SOFTWARE\BlenderFoundation" "Install_Dir" "$INSTDIR"
|
||||
WriteRegStr HKLM "SOFTWARE\BlenderFoundation" "ConfigData_Dir" "$BLENDERHOME"
|
||||
|
|
@ -179,6 +184,9 @@ SectionEnd
|
|||
|
||||
Section "Open .blend files with Blender-[VERSION]" Section4
|
||||
|
||||
${If} ${RunningX64}
|
||||
SetRegView 64
|
||||
${EndIf}
|
||||
WriteRegStr HKCR ".blend" "" "blendfile"
|
||||
WriteRegStr HKCR "blendfile" "" "Blender .blend File"
|
||||
WriteRegStr HKCR "blendfile\shell" "" "open"
|
||||
|
|
@ -192,6 +200,9 @@ UninstallText "This will uninstall Blender [VERSION], and all installed files. B
|
|||
|
||||
Section "Uninstall"
|
||||
; remove registry keys
|
||||
${If} ${RunningX64}
|
||||
SetRegView 64
|
||||
${EndIf}
|
||||
ReadRegStr $BLENDERHOME HKLM "SOFTWARE\BlenderFoundation" "ConfigData_Dir"
|
||||
ReadRegStr $SHORTVERSION HKLM "SOFTWARE\BlenderFoundation" "ShortVersion"
|
||||
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Blender"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue