Why is vbs able to find the INSTALLLOCATION when C# using both DTF and MSI API cannot?
问题 VBS works as I desired, but both COM API and DTF using C# is not locating the InstallLocation. Followings are what I have done so far. Thanks to this post, I was able to find a InstallLocation that is not available on registry using vbs. I understand that vbs is calling for COM API available on %WINDIR%\system32\msi.dll . C# COM API So I thought I would use C# to call this method up. But it failed. Even though I can confirm the existence and installation, it cannot open one of the product