user947604
user947604

Reputation: 91

getting native system32 on 64 bit os with inno setup running in 32-bit setup mode

i have a DLL which should be installed as 32 bit AND 64 bit when setup running on 64 bit OS. I like to have Is64BitInstallMode no defined, so setup running in 32 bit mode. My problem: {sys} returns same as {syswow64}. So my setup does not copy the 64 bit version of the dll into native system32 folder on 64 bit os.

How can i achieve that - even running in 32 bit install mode - on a 64 bit os a 32 bit binary is copied to {syswow64} and its 64 bit pendant copied to real-{sys} (so native 64 bit system32 folder). Thank you

Upvotes: 3

Views: 2773

Answers (1)

Michael Burr
Michael Burr

Reputation: 340168

I don't know anything about Inno Setup, but maybe this can help: 32-bit processes on Win64 systems can access the true System32 directory by using the "sysnative" alias. So if you can convince InnoSetup to write the 64-bit DLL to "C:\Windows\sysnative", it should end up in the real "C:\Windows\System32". (Of course, you'll need to handle the situations where the system is installed somewhere other than "C:\Windows").

Documented here: http://msdn.microsoft.com/en-us/library/aa384187.aspx

Upvotes: 2

Related Questions