Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where the MSI file is copied after the installation?

I have to replace it because of a bug that blocks the software uninstallation, but Windows can't find the MSI file if I use the file search utility, but I think the MSI is stored somewhere where the Add or Remove Programs utility can use it.

like image 461
Jader Dias Avatar asked Jan 15 '10 13:01

Jader Dias


People also ask

Where are MSI files stored after install?

msi file is stored in the Windows Installer cache. Every update to the product such as a hotfix, a cumulative update, or a service pack setup, also stores the relevant . msp or . msi file in the Windows Installer cache.

Where do I find MSI files?

View MSI files by launching the app, or by right-clicking an MSI file in File Explorer and choosing "Open in MSI Viewer".

What is MSI installation file?

MSI is a file extension that applies to database files used by the Microsoft Windows Installer (MSI). They contain information about an application divided into features and components, and every component may contain files, registry data, shortcuts, and so on.

Can I delete .MSI files after installation?

msi files are only used during installation of a program or an update. In a perfect world the installer would have cleaned them out automatically. If you can delete them, then do.


2 Answers

Does it not go into %windir%\installer\

Though I think that the files may get renamed. Not sure where you get the name mapping from...

This directory gets very big so I move it to an external drive. This sometimes cause uninstalls or updates to fail with a missing msi error, but this can be fixed by putting the directory back

like image 86
Sam Holder Avatar answered Sep 19 '22 08:09

Sam Holder


Installshield creates a copy of *.msi files at %windir%\installer\ path where %windir% is an environment variable which usually points to C:\Windows\. Before creating a copy of *.msi files it renames it using some random nomenclature e.g. I can see a file named 65ec5c99.msi in my C:\Windows\Installer directory.

Now to figure out the actual product name for the renamed MSI file there are two ways:

  1. Check LocalPackage attribute inside registry at path - [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersio‌​n\Installer\UserData‌​\<InternalUserId>\Pr‌​oducts\<ProductGUID>‌​\InstallProperties]. InternalUserId is something of sort S-1-5-18. ProductGUID is a GUID like 00058CD18F0BF523DA1072073D56715D embedded as a public property inside the MSI file itself. You can check this public property by opening your MSI file using any tool e.g. orca

  2. Open C:\Windows\Installer folder in explorer. Change the view of the directory to Details view. Add Subject column to the view. Now the product name can be seen in Subject column as shown in the screenshot below:

enter image description here

Note: C:\Windows\installer\ directory is not visible in explorer until we check Show hidden files, folders, and drives and uncheck Hide protected operating system files(Recommended) advanced settings under view folder options as shown in the screenshot below:

enter image description here

like image 21
RBT Avatar answered Sep 17 '22 08:09

RBT