A C# procedure because those who don't know MSI SDK alternatively C++. C++ programmers tin ascertain the API inside the msi.h file in Windows SDK. ,
birkenstocks online
class Program
{
static int Main(string[] args)
{
uint pathSize = 0;
try
{
foreach (string componentId in args)
{
MsiInstallState state = MsiLocateComponent(
componentId, null,
air max turbulence, ref pathSize);
if (state ,
nike mercurial!= MsiInstallState.Local)
return ERROR_UNKNOWN_COMPONENT;
}
}
grab (Exception ex)
Console.WriteLine(ex.Message);
Console.WriteLine(ex.StackTrace);
return ERROR_MOD_NOT_FOUND;
return 0;
}
[DllImport("msi.dll",
ed hardy shirt, CharSet = CharSet.Auto)]
extern static internal MsiInstallState MsiLocateComponent(string component,
tory burch sale shoes, string route,
hogan shoes online, ref uint pathSize);
/// <summary>Enumeration of MSI install states.</summary>
internal enum MsiInstallState : int
Local = 3
const int ERROR_MOD_NOT_FOUND = 126;
const int ERROR_UNKNOWN_COMPONENT = 1607;
}
相关的主题文章:
三生石
Derek Lam Marissa Chain Handle Purse_614