Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9165317
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T14:52:54+00:00 2026-06-17T14:52:54+00:00

System32 and syswow64 folders are exist under C:\Windows in 64-bit OS. I have a

  • 0

System32 and syswow64 folders are exist under C:\Windows in 64-bit OS.

I have a file called xyz.sys under System32\drivers folder. I tried to rename xyz.sys to xyz1.sys using below code:

if FileExists(ExpandConstant('{sys}\drivers\xyz.sys')) then
  RenameFile(ExpandConstant('{sys}\drivers\xyz.sys'), ExpandConstant('{sys}\drivers\xyz1.sys'));

But in 64-bit OS, innosetup is taking {sys}='Driveletter:\Windows\syswow64' as default one.

Even i tried below code to rename xyz.sys file under System32\drivers:

if FileExists(ExpandConstant('{win}\System32\drivers\xyz.sys')) then
  RenameFile(ExpandConstant('{win}\System32\drivers\xyz.sys'), ExpandConstant('{win}\System32\drivers\xyz1.sys'));

But above code also not working, can anyone suggest me how to rename system32 files in 64-bit OS.

Am using windows2008R2.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T14:52:55+00:00Added an answer on June 17, 2026 at 2:52 pm

    By default 32-bit applications (and installers for 32-bit apps) can only access the 32-bit system folder. You can use the 64bit flag on various entries to override this, if there is a specific 64-bit file you need to install for a 32-bit application, for example.

    You can do the same thing from [Code] by using the EnableFsRedirection support function. That help page shows an example of executing the 64-bit command prompt; you can similarly access the 64-bit {sys} from within that block. Don’t forget to restore the previous state afterwards, as shown.

    Bear in mind however that renaming an installed driver file is generally not a good idea — there will be catalog and INF files still pointing to its old name, and the system may get confused by this. It’s better to properly uninstall the driver and reinstall the new one.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have to start x64 bit application that is located under c:\windows\system32 (it is
In the file C:\WINDOWS\system32\drivers\etc\hosts I have only the following line 192.168.0.23 computername.domain.com computername When
I have a XML structure like the following: <Root> <Node Name=File System> <Node Name=C:\Windows\System32\drivers\etc\hosts>
I have to move a file in the system32 folder, I used this code:
My hosts file (C:\WINDOWS\system32\drivers\etc\hosts) has a bunch of IP Address to host name mappings:
My services file (C:\WINDOWS\system32\drivers\etc\services) has a bunch of Port to Service mappings: echo 7/tcp
I'm calling Powershell like so: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noprofile -noninteractive -nologo -file "C:\Users\dummy\Documents\dev\powershell\samples\test.ps1" I'm calling it
I have to copy a psTool utility to System32 folder when my application runs.
I have NFS installed for Windows 2008 but when I try to access C:/Windows/System32/mount.exe
I've been trying to get into the 'C:\Windows\System32\winevt\Logs' folder programmatically using C# so I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.