wushtgqing
03-13-2011, 02:00 PM
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 (http://www.birkenstockshoess.org/products_all.html)
class Program
{
static int Main(string[] args)
{
uint pathSize = 0;
try
{
foreach (string componentId in args)
{
MsiInstallState state = MsiLocateComponent(
componentId, null,air max turbulence (http://www.nikestoreshoes.org/nike-air-max-turbulence-c-13.html), ref pathSize);
if (state ,nike mercurial (http://www.nikestoreshoes.org/)!= 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 (http://www.edhardysite.org/), CharSet = CharSet.Auto)]
extern static internal MsiInstallState MsiLocateComponent(string component,tory burch sale shoes (http://www.allshoesstore.com/specials.html), string route,hogan shoes online (http://www.hogenshoessale.org/), 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;
}
相关的主题文章:
三生石 (http://www.axcxzx.com/index.asp)
Derek Lam Marissa Chain Handle Purse_614 (http://www.zjxedu.com/E_ReadNews.asp?NewsID=596)
class Program
{
static int Main(string[] args)
{
uint pathSize = 0;
try
{
foreach (string componentId in args)
{
MsiInstallState state = MsiLocateComponent(
componentId, null,air max turbulence (http://www.nikestoreshoes.org/nike-air-max-turbulence-c-13.html), ref pathSize);
if (state ,nike mercurial (http://www.nikestoreshoes.org/)!= 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 (http://www.edhardysite.org/), CharSet = CharSet.Auto)]
extern static internal MsiInstallState MsiLocateComponent(string component,tory burch sale shoes (http://www.allshoesstore.com/specials.html), string route,hogan shoes online (http://www.hogenshoessale.org/), 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;
}
相关的主题文章:
三生石 (http://www.axcxzx.com/index.asp)
Derek Lam Marissa Chain Handle Purse_614 (http://www.zjxedu.com/E_ReadNews.asp?NewsID=596)