Jump to content

Recommended Posts

Posted

Hi,

I am using AutoIt 3 to install Office 2003 on about 80 machines and I want it to reboot after the install and then automatically install Office 2003 Service pack 2. Here is the code I have at the bottom of my script:

if $reboot = True Then

RegWrite ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce", "OfficeSP2", "REG_SZ", @ScriptDir&"\Utilities\Office2003SP2-KB887616-FullFile-ENU.exe")

Shutdown (6)

EndIf

Can anyone tell me why this won't launch? Thanks!

Posted

Hi,

I am using AutoIt 3 to install Office 2003 on about 80 machines and I want it to reboot after the install and then automatically install Office 2003 Service pack 2. Here is the code I have at the bottom of my script:

if $reboot = True Then

RegWrite ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce", "OfficeSP2", "REG_SZ", @ScriptDir&"\Utilities\Office2003SP2-KB887616-FullFile-ENU.exe")

Shutdown (6)

EndIf

Can anyone tell me why this won't launch? Thanks!

When you check in registry the entry is there? (after you run the script?) Is the path to .exe correct in registry?

My little company: Evotec (PL version: Evotec)

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
×
×
  • Create New...