Archive: Can I compile installer file to 64 bit ?


Can I compile installer file to 64 bit ?
I compile installer nsi file in 32 bit windows xp. then copy to 64 bit window vista, it run as 32 bit program, so window vista redirect to win6432node registry key when trying to write registry key.

is it possible to complie installer file to 64 bit, then copy it to 64 bit, it can run as 64 bit program....?


It's possible, but I'm not sure if it's supported yet. If you do a forum search, I remember their being a thread about that topic.


There is no 64 bit build at this point, there is some 64 bit stuff in x64.nsh but not for the regsitry, but it is possible to do with the system plugin, you have to pass a special flag (KEY_WOW64_64KEY) to RegCreateKeyEx