Jump to content
Sign in to follow this  
Freekstile

Env. Variables and Me :(

Recommended Posts

Freekstile

Hey Guys,

First post here so I hope I give enough information. It seems to be pretty easy what I am trying to do, just make an automated installation file for the company I work for. The issue I am having is I am trying to pull some pre-set environmental variables to AutoIt variables to use in the script.

Example ( What I have )

global $loginpass = EnvGet('loginpass');Login password for account (i.e admin $loginpass = pass)

global $computername = EnvGet('computername');Name of computer

global $database = EnvGet('database');Database name used during installation (This is setup prior to running the program)

**Note the variables I am trying to pull would be %loginpass%, %computername% and %database% which are already set under system variables.

Then later when I am using Send to get the variable into the corresponding field

Send($loginpass)

Send($computername)

Send($database)

Cheers,

Freekstile

Share this post


Link to post
Share on other sites
i542

Hey Guys,

First post here so I hope I give enough information. It seems to be pretty easy what I am trying to do, just make an automated installation file for the company I work for. The issue I am having is I am trying to pull some pre-set environmental variables to AutoIt variables to use in the script.

Example ( What I have )

global $loginpass = EnvGet('loginpass');Login password for account (i.e admin $loginpass = pass)

global $computername = EnvGet('computername');Name of computer

global $database = EnvGet('database');Database name used during installation (This is setup prior to running the program)

**Note the variables I am trying to pull would be %loginpass%, %computername% and %database% which are already set under system variables.

Then later when I am using Send to get the variable into the corresponding field

Send($loginpass)

Send($computername)

Send($database)

Cheers,

Freekstile

And... what's the problem?

I can do signature me.

Share this post


Link to post
Share on other sites
Freekstile

I am an idiot and the problem wasn't with autoit, it was with my script creating the reg keys. Oh well thanks for your quick response!

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  

×