Old 3rd June 2008, 12:32   #1
Brummelchen
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
Brummelchen is offline   Reply With Quote
Old 7th June 2008, 09:12   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
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
kichik is offline   Reply With Quote
Old 7th June 2008, 20:25   #3
Brummelchen
Major Dude
 
Join Date: May 2003
Posts: 681
i assume that i have to point to syswow64 (redirection off).
thx

Greets, Brummelchen
Brummelchen is offline   Reply With Quote
Old 8th June 2008, 01:07   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
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
kichik is offline   Reply With Quote
Old 7th August 2008, 21:55   #5
Spilly
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.
Spilly is offline   Reply With Quote
Old 10th February 2010, 19:34   #6
Animaether
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.
Animaether is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump