Skip to content

Instantly share code, notes, and snippets.

@native-api
native-api / msi-registry-keys-utils.py
Created January 5, 2017 09:09
utility functions to work with Windows Installer registry database
# coding: utf-8
"""
Some utility functions to work with Windows Installer database in registry.
(Worked it out while rebuilding deleted %windir%\Installer)
Terminology used in fn names:
* patchid,productid - corresponding GUIDs as they are used in key names, e.g. CC458296FE7970347B78C876789B0194
* msx/fname - original package file name as it is in HKCR\Installer\SourceList:PackageName
* local - full path to cached file in %windir%\installer
"""