This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: How to copy dll to system32 folder
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 15, 2011
11:53 PM
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 );
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 );
(4) Replies
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 16, 2011
03:24 AM
XCopyFile( SOURCE_DIR ^ "*.*", WINSYSDIR64 ^ "drivers" ^ "*.*", COMP_NORMAL );
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 16, 2011
03:28 AM
Hi Kevin.Wan ,
XCopyFile( SOURCE_DIR ^ "*.*", WINSYSDIR ^ "drivers" ^ "*.*", COMP_NORMAL );
I need to copy those files to "system32" folder not "SysWOW64"
XCopyFile( SOURCE_DIR ^ "*.*", WINSYSDIR ^ "drivers" ^ "*.*", COMP_NORMAL );
I need to copy those files to "system32" folder not "SysWOW64"
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 16, 2011
08:19 AM
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 )
Disable(WOW64FSREDIRECTION );
XCopyFile( SUPPORTDIR ^ "MyFile.dll", WINSYSDIR64, COMP_NORMAL );
Enable(WOW64FSREDIRECTION )
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 16, 2011
07:47 PM
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!