Jump to content
Sign in to follow this  
alan lim

I Am Loss Without Goto Command

Recommended Posts

alan lim

$ver= 123


I want the script to read the registry value and the result will be either 123, 456, (different computers has their own version)

or wrong version and no entry at all.

If the result either is 123 or 456, then will skip the installation. If the result is not the correct version or no entry, it will start the installation. After the installation it will go to next statement again. I have no problem using AutoIt v2 goto command to completed above matter. But the AutoIt v3 has removed the goto command. Could anyone give some advise. Thanks

Share this post

Link to post
Share on other sites

This might help get you started.

$var = RegRead ( "keyname", "valuename" )
If $var = "123" or $var = "456" Then
;code before script terminates goes here

Func doInstall()
  ;installation code goes here

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.