Announcement

Collapse
No announcement yet.

can't copy to windows system directory

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

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

  • #2
    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

    Comment


    • #3
      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?

      Comment


      • #4
        x64.nsh
        IntOp $PostCount $PostCount + 1

        Comment

        Working...
        X