I found that Windows Installer's ProductState(ProductCode) method doesn't work with product that was installed by InstallShield. I created a installer using InstallShield Script project with the release configuration set as Single EXE. After installation on the target machine, I run another piece of InstallShield script in which I created an Windows Installer object and call the object's ProductState() method with the correct product code as the parameter. What surprised me is that the return code of the call is always -1, product not installed. This function always works with products installed by MSI packages. Does this mean that I have to do go to InstallShield's own location that caches all the installed packages and scan all the folders there to find the right answer? Does anyone know anything about it?
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Returned ProductState is wrong
Started by
dxue
, Nov 29 2004 20:21
2 replies to this topic
Posted 29 November 2004 - 21:54
InstallScript and Windows Installer are two seperate worlds. See also my reply here:
http://forum.install...showtopic=11404
http://forum.install...showtopic=11404
Stefan Krüger
InstallSite.org twitter facebook