Freekstile Posted October 23, 2008 Share Posted October 23, 2008 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 Link to comment Share on other sites More sharing options...
i542 Posted October 23, 2008 Share Posted October 23, 2008 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 fieldSend($loginpass)Send($computername)Send($database)Cheers,FreekstileAnd... what's the problem? I can do signature me. Link to comment Share on other sites More sharing options...
Freekstile Posted October 23, 2008 Author Share Posted October 23, 2008 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! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now