• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1864
  • Last Modified:

GB of .msi and .msp installer files

I am having real difficulty with HDD space, my C:\windows\installer dir is filling up with tons of .msp and .msi files and doing some research on here found out I needed to download the SDK dev kit and run msizap g command the thing is I cant even install this it says there is a internet connection problem when actually its working fine. Does anyone know of a tool or another way of finding and deleting these orphan files.

Thanks in advance
Tony
0
Tony_1977
Asked:
Tony_1977
  • 2
  • 2
2 Solutions
 
JimsZCommented:
find and download robocopy.exe

create new text file and add in below items


ROBOCOPY C:\ %temp% *.msi /S /mov /minage:2 /XX
ROBOCOPY C:\ %temp% *.msp /S /mov /minage:2 /XX
del %temp%\*.* /q 2>nul


Save this text document as "Delete.bat" in the root of the C:\ drive along with the robocopy.exe executable.  Run the file


Or you could just go into command prompt & type in

del C:\*.msi /f  /s /p
and then
del C:\*.msp /f /s /p

This /p flag will cause it to prompt you before each file to be deleted.  You can remove the /p but will remove all .msi & all .msp files if you do so, even files you didn't want removed!  You can go to the specific folder with command prompt (navigate to the directory in question,
then run    

del *.msi /f /s


which will delete all .msi files only in that directory & any subdirectories!
0
 
Tony_1977Author Commented:
Is this safe to do as I have heard that some of the .msi and .msp are needed for uninstalling and updates for various sofwtare/hardware and only the orphans with in C:\windows\installer are safe to delete?
0
 
Tony_1977Author Commented:
I went ahead and deleted them anyway but the same thing is happening which I did mention in my first post (which I should have I know) which is every time I shut the PC down it tells me theres an update to install, when I start it up again it's added an extra 2 or 3 .msi .msp files to the C:\Windows\Installer dir so as you can guess after 50 or 60 shut downs and restarts the above dir becomes full.  I am now just going to do a reinstall of the OS (XP) but could anyone shed any light on why this is happening, for my own curiosity and sanity :o)
0
 
JimsZCommented:
I believe you are having issues with automatic updates doing this.   There is no reason you can't set up the batch file mentioned above (and just put that directory in) and delete those files on a regular basis using the task scheduler.

You can go to control panel - scheduled tasks & schedule a task to run once per day, etc.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now