|
|
|
|
#1 |
|
Major Dude
Join Date: May 2003
Posts: 681
|
32 vs 64 bit SYSDIR - need some help/explanation
myself actually works on 32bit - so all tools are working with $sysdir.
But i am not sure about 64bit. is it "\system64" instead "\system32" or "\sysWOW64" found here? http://forums.winamp.com/showthread....hreadid=269506 i write on a portable defragger which is available as x86 and x64. contains $sysdir the correct path for both? how to determine 32 or 64 bit? WOW64??? http://forums.winamp.com/showthread....hreadid=237297 Application is for WinXP and Vista. thx PS registry in the work too, is this needed? http://forums.winamp.com/showthread....hreadid=271710 Greets, Brummelchen |
|
|
|
|
|
#2 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
system32 is for 64-bit files and syswow64 is for 32-bit files. $SYSDIR points to them both and where it actually writes is affected by file-system redirection. x64.nsh contains macros to handle the redirection.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#3 |
|
Major Dude
Join Date: May 2003
Posts: 681
|
i assume that i have to point to syswow64 (redirection off).
thx Greets, Brummelchen |
|
|
|
|
|
#4 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
That'd be $SYSDIR with redirection on. With redirection turned on (the default), files written to system32 are actually written to syswow64.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Aug 2007
Posts: 46
|
This presents a problem when using $SYSDIR for file paths, like in shortcut creation.
Changing the redirection has no effect on the SYSDIR var, it's always "$WINDIR\system32", but if you install a 32-bit file in SysWOW64: EnableX64FSRedirection SetoutPath $SYSDIR File 32bit.dll CreateShortcut "$SMPROGRAMS\32bit.lnk" "$SYSDIR\32bit.dll" the shortcut will be broken. Since you can't modify the $SYSDIR variable, it has become unusable for all binaries stored in SysWOW64. |
|
|
|
|
|
#6 |
|
Major Dude
Join Date: Jun 2001
Posts: 1,173
|
Linking this thread to:
http://forums.winamp.com/showthread.php?postid=2607742 Forums > Developer Center > NSIS Discussion > Copying 64-bit DLL to SYSDIR on W7-64 Edit: not related to your shortcut issue, I'm afraid - just noting that thread as this is one of the first ones to pop up in google, and that thread has some updated information on disabling filesystem redirection currently not yet implemented in the x64.nsh header file. |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|