Solved

GB of .msi and .msp installer files

Posted on 2008-10-06
5
1,841 Views
Last Modified: 2012-05-07
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
Comment
Question by:Tony_1977
  • 2
  • 2
5 Comments
 
LVL 6

Accepted Solution

by:
JimsZ earned 250 total points
Comment Utility
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
 

Author Comment

by:Tony_1977
Comment Utility
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
 

Author Comment

by:Tony_1977
Comment Utility
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
 
LVL 6

Assisted Solution

by:JimsZ
JimsZ earned 250 total points
Comment Utility
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

When you upgrade from Windows 8 to 8.1 or to Windows 10 or if you are like me you are on the Insider Program you may find yourself with many 450MB recovery partitions.  With a traditional disk that may not be a problem but with relatively smaller SS…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now