/build/static/layout/Breadcrumb_cap_w.png

Software Deployment Question


windows installer leaves cached msi files in c:\windows\installer directory as orphans msi

05/16/2017 3438 views
hi ,
     windows os based installer is created in basic msi type project using installshield, target OS is windows 7 embedded. On every uninstall or upgrade product is leaving cached msi file in c:\windows\installer directory and it causes space issue.

what is reason and why installer is leaving cached/orphan msi files in c:\windows\installer directory.

Thanks in advance
Phani



0 Comments   [ + ] Show comments

Comments


All Answers

1
Windows Installer uses that to cache installation files for anything installed on the machine using Windows Installer. At a minimum, you could lose the ability to add or remove programs, at the worst, you may lose the ability to run some programs
Answered 05/16/2017 by: HISDTechGuy
Senior Yellow Belt

1
Thanks HISDTechGuy, Even after uninstall the product why it leaves cached msi files and how to resolve it. Cached msi files consuming more space.

thanks in advance.
Answered 05/16/2017 by: phanikumar.gm
White Belt

0
To add to what HISDTechGuy has correctly said, the contents of the folder are completely controlled by Windows Installer. You should not delete the contents of this folder - please refer to these articles:

https://blogs.msdn.microsoft.com/sqlserverfaq/2013/04/30/do-not-delete-files-from-the-windows-installer-folder/
https://support.microsoft.com/en-us/help/2667628/missing-windows-installer-cache-files-will-require-a-computer-rebuild

After the uninstall, Windows Installer must take care of the clean up. If after the uninstall the cached msi files are still there, that may mean that your packages is highly unusual (e.g. it has some unique permissions). You may try to build your package from scratch (you may try to use our tool for the sake of an experiment). However, there is no automatic way to clean those files - you can't even write the script to delete them as you won't be able to guess their names (they are randomly generated for the cached msi files).
Answered 05/31/2017 by: pace-support
2nd Degree Black Belt

0
Actually, we have stumbled upon the tool that might help you clean up your cached files: https://msdn.microsoft.com/en-us/library/windows/desktop/aa370523(v=vs.85).aspx However, you should apply this tool with caution - we are not the developer (and we did not conduct the testing of the tool) so we do not guarantee results.
Answered 06/08/2017 by: pace-support
2nd Degree Black Belt