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

Check for other softwares


1 reply to this topic

Jaya

Jaya
  • Full Members
  • 7 posts

Posted 29 May 2006 - 13:57

Hi,


I am developing a setup for a product using InstallShield Professional v5.5.
From my setup, I want to check whether Microsoft Visio and Oracle Client exits on the target computer and write the same message into the log file.

1. How do i know the existence of these softwares through my script.

2.How to write the appropriate message into the log file.


Thanks
Jaya

shuttledude

shuttledude
  • Full Members
  • 26 posts

Posted 08 June 2006 - 20:34

To see if Visio is on the computer check for the existence of the following registry key:

HKEY_LOCAL_MACHINE / SOFTWARE / Microsoft / Visio

Under this key there is a string value named "CurrentlyRegisteredVersion", whose value is the version installed on the computer.

I suspect the registry key for Oracle might depend on the version installed, so I can't help you with that.

As far as writing to a log file, here is some sample code from the InstallShield help files:

OpenFileMode(FILE_MODE_APPEND);
OpenFile(nvFileHandle, "C:\\Example", "Myfile.txt");
WriteLine(nvFileHandle, "Line I am adding to my file.");

Note: if you have just created a file using the CreateFile function, do not open the file. It is already open in append mode.