Jump to content
Sign in to follow this  
MattKopf

script of office 2k7 compatability

Recommended Posts

MattKopf

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

Share this post


Link to post
Share on other sites
lordicast

Check for a value in the registry.


[Cheeky]Comment[/Cheeky]

Share this post


Link to post
Share on other sites
MattKopf

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?

Share this post


Link to post
Share on other sites
MattKopf

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?

Share this post


Link to post
Share on other sites
lordicast

From Help

$var = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion", "ProgramFilesDir")
MsgBox(4096, "Program files are in:", $var)

[Cheeky]Comment[/Cheeky]

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  

×