• Where does Windows store MSI files for uninstallation?


    Original link:

    Where does Windows store MSI files for uninstallation?

    Following content are only used for knowledge sharing.  Please reprint from the original link. ^^

    Apparently it works like this (On Windows 7, I do not know about XP and other OSes):

    When a user installs some app, Windows does the following:

    1) Creates a registry key

    HKLMSOFTWAREMicrosoftWindowsCurrentVersionUninstall[ProductId GUID]

    for this app.

      

    If you have access to the original msi file of installer of your app, you can find [ProductID GUID] by opening the msi file in orca.exe and clicking on the "Property" on the left in orca, and looking for "ProductCode" line on the right. If you do not have access to original *.msi file, you can just search registry key HKLMSOFTWAREMicrosoftWindowsCurrentVersionUninstall for the name of the app.

      

    If you want to delete your app (which refuses to uninstall for example) from the list of installed apps in Control Panel, you can delete the entry from this Uninstall key. It will surely disappear from the list in control panel, but Windows will still remember it. For example, if you try to install a next version of the same app, Installer may still insist on uninstalling the previous version. See item 2 for that.

      

    2) Windows copies the original *.msi file into the folder C:WindowsInstaller and renames it to a random name (keeps .msi extension though). Windows also creates a key in registry in 

    HKLMSOFTWAREMicrosoftWindowsCurrentVersionInstallerUserData[InternalUserId]Products[some random guid-like sequence of chars identifying to windows your installation]InstallProperties

    ValueName "LocalPackage" in this reg key will point to the renamed msi file. To find the file in C:windowsInstaller you can navigate to this folder in Windows explorer, switch it into Details view, make column "Subject" visible and you will see for all nnnnnnnn.msi fies their corresponding name of product.

  • 相关阅读:
    LeetCode5 Longest Palindromic Substring
    LeetCode4 Median of Two Sorted Arrays
    LeetCode3 Longest Substring Without Repeating Characters
    LeetCode2 Add Two Numbers
    LeetCode1 Two Sum
    算法总结—深度优先搜索DFS
    c++ 设计模式9 (Abstract Factory 抽象工厂模式)
    题解 P3374 【【模板】树状数组 1】
    题解 HDU1565 【方格取数(1)】
    题解 P2431 【正妹吃月饼】
  • 原文地址:https://www.cnblogs.com/cindy-hu-23/p/4024407.html
Copyright © 2020-2023  润新知