Solved

GB of .msi and .msp installer files

Posted on 2008-10-06
5
1,846 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

Question has a verified solution.

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

How to record audio from input sources to your PC – connected devices, connected preamp to record vinyl discs, streaming media, that play through your audio card: Vista, Windows 7, Windows 8, Windows 8.1 and Windows 10 – both 32 bit & 64.
This article is a collection of issues that people face from time to time and possible solutions to those issues. I hope you enjoy reading it.
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…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

738 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