Could someone please verify the results I’m getting and/or let me know if there is a solution to this problem?
I’ve been trying for some time now to use MSIQueryProductState when triggered to run under x64 Domino and always get an error. The same code works fine if triggered under the 32-bit Notes client running on the same x64 machine, but always fails when run by the x64 Server.
I get the error:
“External function not found”
when using the declaration:
Declare Function MsiQueryProductState Lib “Msi.dll” Alias “MsiQueryProductStateA” (Byval lpBuffer As String) As Long
I get a different error if I try to force the script to use the x64 dll:
“Error in loading DLL”
using the declaration:
Declare Function MsiQueryProductState Lib “c:\windows\sysWOW64\Msi.dll” Alias “MsiQueryProductStateA” (Byval lpBuffer As String) As Long
Here’s some sample calling script:
If ( MsiQueryProductState (“{7299052b-02a4-4627-81f2-1818da5d550d}”) <> 5) Then
szRegCheck = "" 'not found
Else
szRegCheck = "DETECTED AS INSTALLED"
End If
Any help would be appreciated!!!