PDA

View Full Version : action after reading registry


Jito463
01-23-2002, 03:59 PM
What you do is have a "Read Registry" variable created. Tell it to read for the registry key (you have to specify, you can't have it search the registry). This Registry Read will create a variable that we'll call %RegRead%. Then, on the installers (we'll call them program1 and program2), add the following Boolean conditions:

program1
Boolean
%RegRead% = True

program2
Boolean
%RegRead% = False

This way, if the registry key exists, it will run program1, but if it doesn't, it will run program2. Good luck.

doombo
01-23-2002, 10:25 PM
ok thanks, but i'm trying to check if a number of programs are allready installed on the end-user computer, these are flash 5.0, indeo v5.0, ie 5.5 and windows media 7.0, after i check the registry how can i call my application, and how do i pass the value to the variable, or what i need more then one variable, how can i do this, when i check for the version if not all of them are installed how can i hide the button of the ones installed, and how can i call one by one.

doombo
01-24-2002, 12:44 AM
how do call an action aftr¿er the registry is read, lat say i´m chacking for a version of a program then if it is installed i cal an exe of my program, but if it is not installed i call the installer of my program...


thanks

Mark
01-24-2002, 03:59 PM
Hi,

It really depends on how you are going to check to see if these programs exist.

There are two methods that I would suggest: reading from the Registry and searching for a specific file. Both of these methods can be accomplished using built-in actions, either the "Read From Registry" action or the "Search For File" action.

Both of these actions will set variables based on their results. You will then use the values of these variables in Boolean conditions in order to decide what to do.

You should read these two knowledge base articles:
http://www.indigorose.com/kb/AMS30Tutorial-GettingStarted.pdf
http://www.indigorose.com/kb/AMS30Tutorial-ShowingAndHiding.pdf

After reading the two articles you should be able to accomplish what you want.

mark.