Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Copying DLL to $SYSDIR (http://forums.winamp.com/showthread.php?t=362888)

adnanshaheen 3rd June 2013 20:07

Copying DLL to $SYSDIR
 
Hi All,

Here is a code in my nsis script.

SetOutPath $SYSDIR
MessageBox MB_OK $SYSDIR ;This shows C:\windows\System32
${If} ${RunningX64}
File ".\My64bitDLL.dll"
${Else}
File ".\My32bitDLL.dll"
${EndIf}

But the DLL is copied to C:\Windows\SysWow64. Why is that???
The DLL copied is 64bit.

Anders 3rd June 2013 23:06

x64.nsh

adnanshaheen 4th June 2013 07:17

x64.nsh is included. If you read below, I said the 64bit dll was copied.

Question here is "why the dll is copied to SysWOW64, rather then being copied to system32".
I do get the proper 64bit ach from script at runtime.

Afrow UK 4th June 2013 09:13

You need to disable the file system redirection. NSIS is 32-bit so will get redirected to SysWOW64. To stop this use ${DisableX64FSRedirection}. You can just use this once in a hidden Section and it will disable the redirection for all sections (the current thread).

Stu

jiake 26th July 2013 14:56

Quote:

Originally Posted by adnanshaheen (Post 2938064)
x64.nsh is included. If you read below, I said the 64bit dll was copied.

Question here is "why the dll is copied to SysWOW64, rather then being copied to system32".
I do get the proper 64bit ach from script at runtime.

If you read the comments above in x64.nsh... :p


All times are GMT. The time now is 17:20.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.