Can I delete C:\Windows\Installer?

By Habylab
Jul 23, 2008
Topic Status:
Not open for further replies.
  1. I only ask because it takes up 6.8 gb! I could do with more space...
    Can i delete C:\Windows\Installer?
  2. Habylab

    Habylab Newcomer, in training Topic Starter Posts: 307

    Well, Can I?
  3. kimsland

    kimsland Ex-TechSpotter Posts: 18,353

    Yes by using the Windows Installer CleanUp Utility

    Once installed go to Start --> Run --> C:\Program Files\Windows Installer Clean Up\msizap G! -->OK
    G! : For all users, removes any cached Windows Installer data files that have been orphaned.

    Info about Msizap.exe is Here
    But you don't need to download it seperately, to run the above

    Warning:

    Using this command can cause Windows to corrupt (requiring Re-install or Repair) See Here

    The files in C:\windows\Installer are maintained to allow proper Uninstall from Add/Remove Programs.
    Programs such as Symantec, may not be able to uninstalled effectively

    Removing them may (and can) cause corruptions in future Updating specific installed programs.

    You are highly advised to use Add/Remove programs before removing any part of the Windows Installer folder. Although this will not safe gaurd you from any Programs remaining installed.

    At your risk!
  4. Habylab

    Habylab Newcomer, in training Topic Starter Posts: 307

    When i type in that Run prompt you gave me, it doesn't work...
    It says "C:\Program" is not recognized as an internal or external comand...
  5. kimsland

    kimsland Ex-TechSpotter Posts: 18,353

    Start --> Run --> "C:\Program Files\Windows Installer Clean Up\msizap.exe" G! -->OK

    Please try with the quotes in. Then a space. Then G!
    Also stay with me on this, I have not done it before, but because you are determined, I'll probably learn something new here.

    Also, you only need to reply here for me to know
  6. Habylab

    Habylab Newcomer, in training Topic Starter Posts: 307

    Thank you SO MUCH!
    Before hand : 17.1gb free
    After :23.4gb THANKS A LOT!
  7. kimsland

    kimsland Ex-TechSpotter Posts: 18,353

    That's ok, that's how we learn.

    If you do not want to continue to learn then stop. I will work this out on my own.
    There are many switches to msizap.exe The switch I gave you, should have removed all the cached stuff (the doubled up stuff)

    Have you tried a restart, and test the size again?

    Edit: a lot is two words!
  8. kimsland

    kimsland Ex-TechSpotter Posts: 18,353

    Msizap Syntax
    Msizap uses the following syntax combinations:

    To remove remnants of an active (incomplete) installation

    msizap[P]

    To remove data for a specified installation

    msizap[T][P][W][G] PackageName | {ProductCode}

    To remove all installation data

    msizap*[W][!]ALLPRODUCTS

    To give Administrators Full Control permission to installation data

    msizapA[*][T][W][P] [PackageName | {ProductCode} | ALLPRODUCTS]

    To display help

    msizap/?

    Notes

    • When deleting objects that are unique in the system (such as the InProgress registry subkey or rollback data) or to change permissions, you do not need to specify an installation package.

    • The package name, product code, or ALLPRODUCTS, if included, must be the last parameter in the command. Other parameters may be listed in any order.

    • When using T, you must specify an installation by package name or product code. When using *, you must specify ALLPRODUCTS.


    Parameters
    *
    Deletes all Windows Installer configuration data on the computer. ALLPRODUCTS is required when using *.This parameter deletes the folders, files, registry subkeys, and registry entries in which Windows Installer stores configuration data, including rollback data and the InProgress registry subkeys for each installation. It also stops the Windows Installer service, deletes published icons (icons that offer to install a program), and adjusts shared DLL counts.
    !
    Suppresses all confirmation messages.
    A
    Gives administrators Full Control permission to the folders, files, and registry subkeys specified by other parameters in the command. When combined with A, other parameters specify which object DACLs are changed; they do not direct Msizap to delete installation configuration data.
    P
    Deletes the InProgress registry subkey.This parameter deletes the subkey that indicates to Windows Installer that an installation is in progress:HKLM\Software\Microsoft\Windows\CurrentVersion\Installer\InProgressWhile this subkey remains in the registry, Windows Installer will not install another program. Because Windows Installer deletes the InProgress subkey when an installation completes, this subkey is present only for an active installation.
    S
    Deletes rollback data.This parameter deletes the Rollback registry subkey (below), rollback scripts, and backup copies that enable Windows Installer to restore the computer to its original state when an installation stops before it is complete.HKLM\Software\Microsoft\Windows\CurrentVersion\Installer\RollbackBecause Windows Installer automatically deletes rollback data when an installation completes, rollback data is present only for an active installation.
    T
    Deletes Windows Installer configuration data for a specified installation.This parameter deletes the folders, files, registry subkeys, and registry entries in which Windows Installer stores configuration data for the installation (except for rollback data and the InProgress registry subkey, which are specified separately). It also stops the Windows Installer service, deletes published icons (icons that offer to install a program), and adjusts shared DLL counts.
    W
    Extends the command to all user profiles. By default, Msizap deletes and changes user-specific data only for the current user.
    G
    Removes orphaned cached Windows Installer data files for all users.
    ?
    Displays help.
    PackageName | {ProductCode}
    Specifies an installation as the target of the msizap command. Type the product code or the path and file name of the Windows Installer package file, such as: c:\ptree.msiIf you do not specify an installation, then msizap commands apply to all Windows Installer installations on the computer.
    ALLPRODUCTS
    Indicates all Windows Installer installations on the computer. ALLPRODUCTS is required when using *.

    Sample Usage

    msizap *! ALLPRODUCTS
    msizap PS
    msizap AT ptree.msi
    msizap WTP MyPackage.msi
    msizap TW {00000001-0001-0000-0000-624474736554}
  9. Habylab

    Habylab Newcomer, in training Topic Starter Posts: 307

    I'll have to study what you have written... Just got back from Dark Knight, so I am confuzled...
    So what other data can i safely remove then?
  10. Habylab

    Habylab Newcomer, in training Topic Starter Posts: 307

    OMG!!!! With my dad's computer (Which i have posted about before) I have freed up 34gb!!!! Amazing, as long as you can assure me this is a.o.k, I will be cool with it.
  11. kimsland

    kimsland Ex-TechSpotter Posts: 18,353

    Oh alright then. If I need to repeat

    It's Not a.o.k. ! Definately 100% Not a.o.k to remove anything in the Installer folder.
    There you go, you are now fully assured of this.

    Now to continue.
    Try: msizap *! ALLPRODUCTS, i.e.:

    "C:\Program Files\Windows Installer Clean Up\msizap.exe" *! ALLPRODUCTS

    By the way, to do all/any of this, you must be running it from an Administrator privlidged account. Check Control Panel Users, to confirm that you have Administrator rights.
  12. Habylab

    Habylab Newcomer, in training Topic Starter Posts: 307

    So... What are the consequences of doing this, in the sense of the first prompt you gave me? I thought it was safe. What has it changed?
  13. Habylab

    Habylab Newcomer, in training Topic Starter Posts: 307

    Considering that Kimsland is willing to help, I will continue to experiment with him in this thread. Only safe ideas/instructions though.
    I will post anything i have found out here in a separate post from now on.
     
  14. Habylab

    Habylab Newcomer, in training Topic Starter Posts: 307

    My computer before hand was fine, and all I am looking for is a little extra space, safely.
  15. kimsland

    kimsland Ex-TechSpotter Posts: 18,353

    The safest removal method is CCleaner
    But this does not remove anything in the Installer folder
  16. Habylab

    Habylab Newcomer, in training Topic Starter Posts: 307

    I use that anyway. I used to have it on start-up, but now i just run it now and then. My computer is fine. My dad's has gone a bit funny. When it starts, it says it needs "ati2mtag.sys" and it has that, browse thingy. I don't know what has happened. But it is ok. I recommend the G! prompt. That worked fine.

    He he, I like your New Speak learning.
  17. kimsland

    kimsland Ex-TechSpotter Posts: 18,353

    I just want to reconfirm what you said.
    The G! parameter now works ?
    But didn't you say that it increased the size of the installer folder :confused:
    Can you help me by explaining this more clearly?

    Also that "ati2mtag.sys" startup issue, is just part of the computer's video driver: ATI RAGE 6 Miniport Driver (ati2mtag.Miniport])

    Just do the following:

    1. Uninstall the ATI drivers from Add/Remove programs in Control Panel (If you still can!)
    2. Restart the computer.
    3. Run Driver Sweeper*, select the drivers that you have uninstalled and click Clean button.
    4. Install the new drivers.

    * For Windows Vista users, please run Driver Sweeper in administrator mode.
    Right mouse click Driver Sweeper shortcut and click Run as administrator.

    To download and install Driver Sweeper, please click HERE. (direct link)
    Save DriverSweeper_1.5.5-setup-[Guru3D.com].exe file on the hard disk.
    Run DriverSweeper_1.5.5-setup-[Guru3D.com].exe.

    The go to to ATI Drivers page and download the newest drivers for your Video card

    You know talking about how to re-install your video card drivers is very annoying!
    Seeming we are doing something on a much higher level
  18. Habylab

    Habylab Newcomer, in training Topic Starter Posts: 307

    No, i didn't say it increased it decreased o my dads computer by 34gb!
    About the Driver thing, I wasn't trying to install a new one or anything...
  19. kimsland

    kimsland Ex-TechSpotter Posts: 18,353

    I said run: "C:\Program Files\Windows Installer Clean Up\msizap.exe" G!
    You said:
    There's a step in the middle here missing :confused:


    What actually happened in the middle bit?
    Which part removed all the files? (restarting?)
  20. Habylab

    Habylab Newcomer, in training Topic Starter Posts: 307

    I meant i had 17.1gb free, then 23.4gb free, the G! did all that. and on my dad's computer the same.
  21. kimsland

    kimsland Ex-TechSpotter Posts: 18,353

    Oh of course
    You know I read it 3 times, but didn't get it till right now

    You were probably wondering why I posted all that other stuff
    I thought you were yelling at me (that I made more files for you)
    So I posted all this other stuff (that was my little angry bit)

    Very sorry about that
    But at least I continued on. :)
  22. Habylab

    Habylab Newcomer, in training Topic Starter Posts: 307

    That's OK *Wipes tear from eye...
  23. Habylab

    Habylab Newcomer, in training Topic Starter Posts: 307

    That G! command is 100% safe. I recommend using it!
  24. Habylab

    Habylab Newcomer, in training Topic Starter Posts: 307

    Thank you for this again, it really worked!
  25. kimsland

    kimsland Ex-TechSpotter Posts: 18,353

    Thanks Habylab, I ended up doing it too, because of our discussion

    I hate all useless system files. Not that I normally recommend others to do this though.

    Thanks for the update :grinthumb
Topic Status:
Not open for further replies.


Add New Comment

TechSpot Members
Login or sign up for free,
it takes about 30 seconds.
You may also...


Get complete access to the TechSpot community. Join thousands of technology enthusiasts that contribute and share knowledge in our forum. Get a private inbox, upload your own photo gallery and more.