Page MenuHome

64-bit Windows installer installs keys to 32-bit registry
Closed, ResolvedPublic

Description

As in title, the 64-bit installer writes its keys in the 32-bit registry (under Wow6432Node).

Event Timeline

I don't know what the correct code then needs to be. This AFAIK goes automatically by OS. The code we use in the installer is:

WriteRegStr HKLM "SOFTWARE\BlenderFoundation" "Install_Dir" "$INSTDIR"
WriteRegStr HKLM "SOFTWARE\BlenderFoundation" "ConfigData_Dir" "$BLENDERHOME"
WriteRegStr HKLM "SOFTWARE\BlenderFoundation" "ShortVersion" "[SHORTVERSION]"
; Write the uninstall keys for Windows
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Blender" "DisplayName" "Blender (remove only)"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Blender" "UninstallString" '"$INSTDIR\uninstall.exe"'

So unless someone can give a good patch soon, it'll become a todo item for our wiki.

I believe it's because the installer is a 32-bit process. I haven't used NSIS in a while, but it looks like it's something like:

!include "x64.nsh"

...

${If} ${RunningX64}
SetRegView 64
${EndIf}

Thanks for the pointer! r32725

Nathan Letwory (jesterking) changed the task status from Unknown Status to Resolved.Oct 27 2010, 1:52 AM

Hello again,

In the latest Blender installer for 64-bit windows, it doesn't write any registry entries at all. I'm not sure if this is a side-effect of this change...

No, is side-effect of not running with admin permissions. See http://code.blender.org/index.php/2011/01/on-the-blender-installer-for-windows/ for a call for help (essentially).