cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ganesh2you
Level 5

How to copy dll to system32 folder

Hi,

I am using install shield script project, I need to copy some dll file to system32 folder, By Default copying into "C:\Windows\SysWOW64", But I need to copy the files into "C:\Windows\System32", any one plz help me how to do this ?


this is the code which I used in the project,

#define SOURCE_DIR "C:\\Source"


XCopyFile( SOURCE_DIR ^ "*.*", WINDIR ^ "system32" ^ "drivers" ^ "*.*", COMP_NORMAL );
Labels (1)
0 Kudos
(4) Replies
Not applicable

XCopyFile( SOURCE_DIR ^ "*.*", WINSYSDIR64 ^ "drivers" ^ "*.*", COMP_NORMAL );
0 Kudos
ganesh2you
Level 5

Hi Kevin.Wan ,

XCopyFile( SOURCE_DIR ^ "*.*", WINSYSDIR ^ "drivers" ^ "*.*", COMP_NORMAL );


I need to copy those files to "system32" folder not "SysWOW64"
0 Kudos
Roman1
Level 9

The example code below shows how to disable/enable redirection before and after installing a file to the WINSYSDIR64:

Disable(WOW64FSREDIRECTION );

XCopyFile( SUPPORTDIR ^ "MyFile.dll", WINSYSDIR64, COMP_NORMAL );

Enable(WOW64FSREDIRECTION )
0 Kudos
Not applicable

Roman1 wrote:
The example code below shows how to disable/enable redirection before and after installing a file to the WINSYSDIR64:

Disable(WOW64FSREDIRECTION );

XCopyFile( SUPPORTDIR ^ "MyFile.dll", WINSYSDIR64, COMP_NORMAL );

Enable(WOW64FSREDIRECTION )


Thanks Roman!
0 Kudos