Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

inno-setup

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

like image 353
user947604 Avatar asked Dec 06 '25 12:12

user947604


1 Answers

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

like image 135
Michael Burr Avatar answered Dec 09 '25 22:12

Michael Burr



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!