![]() |
#1 |
Junior Member
Join Date: Sep 2011
Posts: 12
|
![]()
I am creating my first installer with NSIS, and learning a lot.
It is for a desktop Java application, and is 64bit only. The installer actually exits at onInit if it detects its 32bit. I have the below code that detects if some application (that's a 32bit native app) is already on the machine. This code works fine, but I understand that using the Wow6432Node is not good practise, and that I should make use of SetRegView. Existing Code: PHP Code:
PHP Code:
Can someone point out where I am going wrong? |
![]() |
![]() |
![]() |
#2 |
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
If you are looking for a key or value in Wow6432Node then SetRegView should be 32, not 64. When it is 32, Windows transparently redirects NSIS to Wow6432Node (because the installer is 32-bit). You disable this behaviour by setting SetRegView 64 (which is not what you want).
Stu |
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: Sep 2011
Posts: 12
|
Perfect thanks!
PHP Code:
|
![]() |
![]() |
![]() |
|
Tags |
registry |
Thread Tools | Search this Thread |
Display Modes | |
|
|