MattKopf Posted June 29, 2009 Posted June 29, 2009 I have done the script it install the office 2k7 compatibility program. It works, but before I send it out to our workstations I had a thought. I am planning to use our basic login script to do this, and my script uses the runas command to start the install. My problem is that I realized that it would install again and again, each time a user logged into our systems. What is the best way to make sure this does not happen. I had 2 thoughts. One to check for the existence of a specific file that should only be there after the install, but if there is a upgrade to the office 2k7 comp. program then it might be harder to tell what version was installed. The other thought was to add a file to the directory that the script creates. It could read the file and then decide if it needs to install. For example if the file had a 1 it would be version 1 and might need an upgrade. I hope this is clear enough. I'm no programmer but I really like Autoit. So what is the best way to make this happen? Matt Kopf
lordicast Posted June 29, 2009 Posted June 29, 2009 Check for a value in the registry. [Cheeky]Comment[/Cheeky]
MattKopf Posted June 29, 2009 Author Posted June 29, 2009 Check for a value in the registry.I am new to this, but how? And any idea where I should look in the registry for a value?
MattKopf Posted June 29, 2009 Author Posted June 29, 2009 ok I think I found it.I found 2 keys. One contains the product name and one contains the version. Now I just have to figure out how to read these keys in the script.I am new to this, but how? And any idea where I should look in the registry for a value?
lordicast Posted June 29, 2009 Posted June 29, 2009 From Help $var = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion", "ProgramFilesDir") MsgBox(4096, "Program files are in:", $var) [Cheeky]Comment[/Cheeky]
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