Solved

GB of .msi and .msp installer files

Posted on 2008-10-06
5
1,842 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
ID: 22649135
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
ID: 22649537
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
ID: 22653246
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
ID: 22654786
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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Recently Microsoft released a brand new function called CONCAT. It's supposed to replace its predecessor CONCATENATE. But how does it work? And what's new? In this article, we take a closer look at all of this - we even included an exercise file for…
NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

813 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

13 Experts available now in Live!

Get 1:1 Help Now