Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

GB of .msi and .msp installer files

Posted on 2008-10-06
5
Medium Priority
?
1,860 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 750 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 750 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

Sometimes clients can lose connectivity with the Lotus Notes Domino Server, but there's not always an obvious answer as to why it happens.   Read this article to follow one of the first experiences I had with Lotus Notes on a client's machine, my…
By default Outlook 2016 displays only one time zone in the Calendar. The following article explains how to display two time zones in one calendar view.
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
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…

636 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