Tag: Application programming interface
-
Detect if a MSI component is installed
A C# program for those who don’t know MSI SDK or C++. C++ programmers can find the API inside the msi.h file in Windows SDK. class Program { static int Main(string[] args) { uint pathSize = 0; try { foreach (string componentId in args) { MsiInstallState state = MsiLocateComponent( componentId, null, ref pathSize); if (state…