lidsmatt Posted October 15, 2007 Share Posted October 15, 2007 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! Link to comment Share on other sites More sharing options...
MadBoy Posted October 15, 2007 Share Posted October 15, 2007 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)EndIfCan 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) 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