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

DemoShield - Creating Global Variables


1 reply to this topic

Superfreak3

Superfreak3
  • Full Members
  • 437 posts

Posted 10 January 2006 - 23:04

I'm trying to create a Global Variable to use to determine the version of a certain file.

I'm looking in the Help at the Netscape example, but I'm wondering what I need to set up if I want to find the version of, let's say, My.exe.

What I want to do is enable a button if My.exe is less than a certain version of the file found in \Program Files\MyApp.

Once the Global Variable is set up, I think I'll be able to build a condition to enable the button, but I don't know how to set it up to look to a certain file in a certain location.

Any help would be greatly appreciated.

Thanks!

Superfreak3

Superfreak3
  • Full Members
  • 437 posts

Posted 25 January 2006 - 17:07

I searched the registry for a certain value such as:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DataAccess\FullInstallVer;string.

Then the custom condition is set on the Event as Global Variable = constant string value.

Hope this helps someone in need.