Archive: can't copy to windows system directory

can't copy to windows system directory

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:

  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,


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...

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?