Jump to content


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.
Photo

WindowsInstaller 2.0 is installed checking


5 replies to this topic

Yehuda

Yehuda
  • Full Members
  • 52 posts

Posted 11 September 2002 - 15:30

How can I to check, if Windows Installer 2.0 is installed..
Yehuda

Xitch13

Xitch13
  • Members
  • 134 posts

Posted 11 September 2002 - 17:23

Look for the registry key.  I'm not sure what it is, but if you have a system with it on there check the registry under
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft
There is great chaos under heaven, and the situation is excellent. (Mao Tse Tung)

Taco Bell

Taco Bell

    IS6 Expert

  • Moderators
  • 1,281 posts

Posted 11 September 2002 - 17:33

Not sure why you need to since any 3rd party MSI installs should be doing that for you.

However, you'd be better off trying to get an answer from the IS 7 Developer forum, so I'm suggesting that Stefan move your post there.


user posted image

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 11 September 2002 - 19:01

Do you need to detect the installed MSI version from a InstallShield Professional 6 project, or from a Windows Installer based tool like InstallShield Developer?

The official way for non-MSI tools would be to examine the version of msi.dll in the WINSYSDIR

Yehuda

Yehuda
  • Full Members
  • 52 posts

Posted 12 September 2002 - 09:05

Thanks to all.

I need it from IS6 project for msxml4.msi installation.
The way I tried and that works:


// ----- DLL function prototypes -----                
prototype  msi.MsiGetFileVersionA( BYREF STRING, BYREF STRING, BYREF INT, BYREF STRING, BYREF INT );

.......

MsiGetFileVersionA( svFilePath, lpVersionBuf, pcchVersionBuf, pLangBuf, pcchLangBuf );

P.S. The function GetDllVersion doesn't work on the old ( 95, ... ) Windows OS.
Yehuda

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 13 September 2002 - 14:57

Note that this will obviously fail if there's not msi installed at all. So you shuld check your UdeDLL call and act properly.