无法使用 NSIS 检查注册表以进行 python 安装
Unable check registry with NSIS for python installation
我需要检查注册表以确保没有与我要安装的应用程序相同的应用程序,
对于我的问题,我想检查 python windows 注册表安装,例如
我需要检查的注册表如下
HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore.7
我已经使用了 ReadRegStr 但无法检测
还有 ${registry::KeyExists}
结果是一样的
当注册表更改为“HKEY_LOCAL_MACHINE\SOFTWARE\Python”
时,这两个函数仅获得存在值
${registry::KeyExists} "HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore.7" [=11=]
StrCmp [=11=] "0" haveinstallx
goto notinstall
MessageBox MB_OK "not found"
quit
notinstall:
MessageBox MB_OK "Not installed"
Quit
haveinstallx:
MessageBox MB_OK "Apps have installed"
Quit
上面的脚本结果总是说“未安装”
欢迎提供帮助和建议!
没有更多信息,我唯一的猜测是 32/64 位不匹配。当 运行 64 位 Windows 上的 32 位安装程序时使用 SetRegView
或 ReadRegStr $x HKLM64 Software\...
。
我需要检查注册表以确保没有与我要安装的应用程序相同的应用程序, 对于我的问题,我想检查 python windows 注册表安装,例如
我需要检查的注册表如下 HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore.7
我已经使用了 ReadRegStr 但无法检测 还有 ${registry::KeyExists} 结果是一样的 当注册表更改为“HKEY_LOCAL_MACHINE\SOFTWARE\Python”
时,这两个函数仅获得存在值${registry::KeyExists} "HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore.7" [=11=]
StrCmp [=11=] "0" haveinstallx
goto notinstall
MessageBox MB_OK "not found"
quit
notinstall:
MessageBox MB_OK "Not installed"
Quit
haveinstallx:
MessageBox MB_OK "Apps have installed"
Quit
上面的脚本结果总是说“未安装”
欢迎提供帮助和建议!
没有更多信息,我唯一的猜测是 32/64 位不匹配。当 运行 64 位 Windows 上的 32 位安装程序时使用 SetRegView
或 ReadRegStr $x HKLM64 Software\...
。