[DllImport("msi.dll", CharSet = CharSet.Unicode)]
public static extern UInt32 MsiGetComponentPath(string szProduct, string szComponent, [Out] StringBuilder lpPathBuf, ref UInt32 pcchBuf);
Declare Function MsiGetComponentPath Lib "msi.dll" (TODO) As TODO
None.
Do you know one? Please contribute it!
None.
Please add some!
StringBuilder sbPc = new StringBuilder(50);
StringBuilder sbFeat = new StringBuilder(100);
StringBuilder sbComp = new StringBuilder(50);
UInt32 i = MsiClass.MsiGetShortcutTargetW("C:\\temp\\word.lnk", sbPc, sbFeat, sbComp);
StringBuilder sbPth = new StringBuilder(500);
char[] pth = new char[500];
UInt32 chs = 500;
i = MsiClass.MsiGetComponentPath(sbPc.ToString(), sbComp.ToString(), sbPth, ref chs);