|
|
#1 |
|
Junior Member
Join Date: Feb 2007
Posts: 3
|
Hello,
I'am trying to create an installer with NSIS (2.23) that will install a software on Windows XP, Windows XP 64-bit, Vista and Vista 64-bit. I have problems with x64.nsh, here is my tests: code: After compiling and running the resulting test_nsis.exe, I obtain this result on 64-bit plateforms : code: I would have expected code: As test_nsis.exe is a 32-bit executable running on a 64-bit OS. Am I wrong ? If I am wrong what is the solution to get PROGRAMFILES with the right path if I need to install 32-bit executables, and the 64-bit executables ?? Thank you very much for any answer. |
|
|
|
|
|
#2 |
|
Junior Member
Join Date: Feb 2007
Posts: 3
|
After finding
http://nsis.cvs.sourceforge.net/nsis...?r1=1.4&r2=1.5 I changed my test script to : code: but all the files are created in the same directories... |
|
|
|
|
|
#3 |
|
Major Dude
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,220
|
$PROGRAMFILES is constant, not variable, and the question is when it is initialized. AFAIK good place to disable redirection and get correct constant value is .onInit. May be you can use %ProgramFiles% later instead of $PROGRAMFILES (not tested).
|
|
|
|
|
|
#4 | |
|
Junior Member
Join Date: Feb 2007
Posts: 3
|
Quote:
Now I have a new problem, accessing the right registry hive! While reading this forum, I saw a thread about writing system calls to read registry hive in 64-bit and another one about a patch : http://sourceforge.net/tracker/index...49&atid=373087 Do I have to rewrite all my scripts to use macro for 64-bit registry reading/writing, or can I wait for the inclusion of the pacth ? |
|
|
|
|
|
|
#5 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,337
|
For now, you'd have to use the macro. You could make a macro of your own that'd wrap that macro, so once the patch is applied, you only have to change one line of code.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|