Old 3rd June 2013, 18:24   #1
installer
Junior Member
 
Join Date: Jun 2013
Posts: 2
can't copy to windows system directory

Hi,

I am trying to create an installer that will copy a dll to the windows/system32 directory.

I can not get it to work.
I have tried the following options before including the dll in the code:
code:
SetOutPath "$SYSDIR" -> no error, no copy
SetOutPath "$WINDIR\system" -> no error, no copy
SetOutPath "$WINDIR\system32" -> copy to the windows/syswow64 directory


I did run the installer as administrator every time.

Clearly I must be doing something wrong. Could anyone be so kind to point me in the right direction?

Kind regards,

i.
installer is offline   Reply With Quote
Old 3rd June 2013, 18:36   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,097
Are you requesting administrator privileges?

Installing dlls in system32 is generally not a good idea, you are just creating dll hell.

You should also take a look at the library helper macros that ship with NSIS...

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 3rd June 2013, 19:29   #3
installer
Junior Member
 
Join Date: Jun 2013
Posts: 2
hi, thanks for your reply.
I am not asking for admin rights, but I am running as admin (right clock, run as administrator).
However, in the meantime I have found that nsis is a 32bit program that will always install in the syswow64 folder, since it can not access the system32 folder (which is available for 64bit software only). Can anyone confirm this?
installer is offline   Reply With Quote
Old 3rd June 2013, 23:05   #4
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,097
x64.nsh

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Tags
system, windows

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