Delete C:\Windows\Installer\Razer? Over 13GB! | Razer Insider
Skip to main content

My C:\Windows\Installer\Razer? is over 13GB. I’ve read from others that it can be unsafe to delete this. Is there a good way to reclaim this space? Is it actually safe to delete?

 

Really not understanding how it’s that difficult to include something similar to this PowerShell one-liner at the end of the install.  It only took about 45 seconds to write.  It’s quite apparent that this is not a priority and has been pushed into the depths of the backlog if a story has indeed ever been created for the development teams.  Please feel free to pass this fix along to the teams.  They may use it free of charge.

Get-ChildItem -Path "$($env:windir)\Installer\Razer\Installer" | Where-Object -FilterScript { $_.Name -notin @("App","RazerInstaller.exe") } | Remove-Item

Other users…..please note that it must be run from an administrative PowerShell session because it’s trying to manipulate files under the Windows directory.  You would normally get an elevation prompt if you attempted to remove the files manually.

This another example of extremely simple solution and Razer seem to complete ignore anything happening in this thread. Please, make this a priority as I had to AGAIN clean up 10 GB of your crappy leftover install files. This is not a MINOR ISSUE whatsoever > this is bad installer code in its finest and needed to be addressed when reported EIGHT MONTHS AGO. The fact that it still isn't shows that you are either completely incompetent or do not take this seriously.


Really not understanding how it’s that difficult to include something similar to this PowerShell one-liner at the end of the install.  It only took about 45 seconds to write.  It’s quite apparent that this is not a priority and has been pushed into the depths of the backlog if a story has indeed ever been created for the development teams.  Please feel free to pass this fix along to the teams.  They may use it free of charge.

Get-ChildItem -Path "$($env:windir)\Installer\Razer\Installer" | Where-Object -FilterScript { $_.Name -notin @("App","RazerInstaller.exe") } | Remove-Item

Other users…..please note that it must be run from an administrative PowerShell session because it’s trying to manipulate files under the Windows directory.  You would normally get an elevation prompt if you attempted to remove the files manually.

Thanks for the script, 6.79 GB saved.

@Michelle-RazerCortexPC please add this script as part of the “Razer Central” app or something lol

 

 


Really not understanding how it’s that difficult to include something similar to this PowerShell one-liner at the end of the install.  It only took about 45 seconds to write.  It’s quite apparent that this is not a priority and has been pushed into the depths of the backlog if a story has indeed ever been created for the development teams.  Please feel free to pass this fix along to the teams.  They may use it free of charge.

Get-ChildItem -Path "$($env:windir)\Installer\Razer\Installer" | Where-Object -FilterScript { $_.Name -notin @("App","RazerInstaller.exe") } | Remove-Item

Other users…..please note that it must be run from an administrative PowerShell session because it’s trying to manipulate files under the Windows directory.  You would normally get an elevation prompt if you attempted to remove the files manually.

Thanks for the script, 6.79 GB saved.

@Michelle-RazerCortexPC please add this script as part of the “Razer Central” app or something lol

 

 

Well noted. Will let our engineering team know.

 

Again apologize for the inconvenience.

 

Thank you!

 

Michelle


Really not understanding how it’s that difficult to include something similar to this PowerShell one-liner at the end of the install.  It only took about 45 seconds to write.  It’s quite apparent that this is not a priority and has been pushed into the depths of the backlog if a story has indeed ever been created for the development teams.  Please feel free to pass this fix along to the teams.  They may use it free of charge.

Get-ChildItem -Path "$($env:windir)\Installer\Razer\Installer" | Where-Object -FilterScript { $_.Name -notin @("App","RazerInstaller.exe") } | Remove-Item

Other users…..please note that it must be run from an administrative PowerShell session because it’s trying to manipulate files under the Windows directory.  You would normally get an elevation prompt if you attempted to remove the files manually.

Thanks for the script, 6.79 GB saved.

@Michelle-RazerCortexPC please add this script as part of the “Razer Central” app or something lol

 

 

Well noted. Will let our engineering team know.

 

Again apologize for the inconvenience.

 

Thank you!

 

Michelle

Hey there!

 

Well noted. We will send this to our engineering team. Thank you for being patient. 

 

Apologize for the inconvenience.

 

Michelle


Hey there!

 

Thank you for sharing your issue with us here. My name is Michelle from the Razer Cortex technical support team. I am deligted to be of your assistahnce.

 

We sincerely apologize for the inconvenience this issue has caused you. Please kepp the “App‘ folder and “RazerInstaller.exe”, delete all other files. Please check the screenshot below:

 

Please let us know whether it helps. Thank you for your patience. 

 

Michelle

i have the same issue. but i also had 2 razerinstall.exes. i will leave both installers untouched

 


Hey there!

 

Thank you for sharing your issue with us here. My name is Michelle from the Razer Cortex technical support team. I am deligted to be of your assistahnce.

 

We sincerely apologize for the inconvenience this issue has caused you. Please kepp the “App‘ folder and “RazerInstaller.exe”, delete all other files. Please check the screenshot below:

 

Please let us know whether it helps. Thank you for your patience. 

 

Michelle

i have the same issue. but i also had 2 razerinstall.exes. i will leave both installers untouched

 

We apologize for the confusion this issue caused. We had reported this to our engineering team months ago. It will be resolved in our next big version. 

 

Thank you for your understanding and patient. 

 

Michelle


For those struggling with this still. Here is a Windows Task you can schedule to run automatically that will delete everything in that folder that isn’t the App folder or RazerInstaller.exe. Instructions below on how to set up that script.

CAUTION: This script works to do exactly as advertised. If Razer ever changes this folder structure you will need to turn off the schedule or it can / will cause issues. 

 


 

  1. Create the Batch Script:

    Open a text editor like Notepad and paste the following code:

    @echo off
    set "targetDir=C:\Windows\Installer\Razer\Installer"

    if not exist "%targetDir%" (
    echo Target directory not found.
    exit /b 1
    )

    echo Deleting files in %targetDir%...
    for %%I in ("%targetDir%\*") do (
    if /i not "%%~nI"=="App" if /i not "%%~nxI"=="RazerInstaller.exe" (
    del "%%I" /q
    )
    )

    echo Cleanup complete.

    Save the file with a .bat extension, such as RazerCleanupScript.bat.

  2. Test the Batch Script:

    Before scheduling the task, test the batch script by double-clicking it to ensure it deletes the correct files.

  3. Schedule the Task:

    Now, let's schedule this batch script to run monthly using the Task Scheduler:

    • Open Task Scheduler (search for "Task Scheduler" in the Start menu).
    • In the right-hand Actions pane, click on "Create Basic Task..." to open the wizard.
    • Follow the wizard to set a name for the task (e.g., "Monthly Cleanup Task") and a description.
    • Choose "Monthly" as the trigger, set the desired monthly recurrence pattern, and proceed.
    • Select "Start a program" as the action, then browse and select your batch script (RazerCleanupScript.bat.).
    • Complete the wizard by reviewing your settings and clicking "Finish."
  4. Additional Considerations:

    • Permissions: Ensure that the account under which the task will run has sufficient permissions to delete files in the specified directory.
    • Logging: Consider adding logging to your batch script (>> logfile.txt) to capture any errors or status messages during execution.

still a problem after all this time 🙂 this company just doesn’t seem to care anymore, or if they do, hire new engineers because this is easily fixable in less than 20 minutes.


Just deleted every update file for the last 4+ years.

 

I like Razer products but damn the software leaves something to be desired.


I shouldn’t even remember it exists


1 year after the original post and it is still happening the same.

I had 13 GB on my C:\Windows\Razer\Installer folder

That is very sloppy programming. Could you fix that already? Please.


There are posts going back over 2 years about this and it is still not fixed, 11GB in my install folder, it’s just so so poor


My razer software just updated and I immediately went to the C:\Windows\Installer\Razer\Installer and DELETED all the new files. (Everything but App folder and RazerInstaller.exe file]


This still isn’t resolved, and if it was (doubt it), it didn’t clean out the old crap.


They just seem to be update-files that Razer's update-method seems to refuse to clean up after itself. - I've also had this issue, having built up tens of Gigs of Razer-files over the span of a few years on the same Windows-installation, and wondering where my drive-space went. - I had to find out with one of those drive-space-analyzers, because these are basically "hidden" files. Or at least they're not in a location you tend to go and see, and they're also not put there with the user's permission.

 

And, no, removing those files (with the longer names) generally shouldn't cause any issues, because they're basically just update-files that Razer's updater runs, but doesn't remove when there are new ones. - You could leave the newest ones to be safe, as perhaps they might be used or something. But the user shouldn't be expected to manage these files. Razer should program it to clean up after itself if those files are old and won't be used anymore.
This is really bad practice and shouldn't happen. I can't believe this still happens, as I complained about it at least half a year ago and I know it had been noticed back then.

Thank you for sharing your concerns with us. Our engineering team will resolve it in the future. Thank you for your feedback. 

 

Michelle

this is blatantly false, i just had to install and use WinDirStat to find out that razr was taking up 33GB of storage in the install folder cause your programmers are too lazy to write a script to clean up old updates, fix this.


Reply