$result = FileExists ( "\\Share location\SW_DVD5_Office_Professional_Plus_2013_W32_English_MLF_X18-55138.iso" ) If $result Then Msgbox ( 0, "", "File exists, Click OK to install" ) Mounts the ISO by using cmd RunWait ( & ' /C ' & "Explorer.exe \\Share location\SW_DVD5_Office_Professional_Plus_2013_W32_English_MLF_X18-55138.iso", , ) Sleep ( 1000 ) Runs the setup from the mounted drive Run ( & ' /C ' & "E:\setup.exe" ) WinWaitActive ( "Microsoft Office 2013" ) Close cmd WinClose ( "C:\Windows\system32\cmd.exe" ) Sleep ( 5000 ) close File Explorer WinClose ( "" ) Sleep ( 4000 ) WinActivate ( "Microsoft Office Professional Plus 2013" ) Sleep ( 2000 ) Send ( "!a" ) Sleep ( 1000 ) Send ( "!c" ) Else MsgBox ( 0, "", "File doesn't exist" ) EndIf Edited Apby Tanooki I have most of it set up the way I do for testing. I'm trying to install Office 2013 Pro Plus from an iso on a network share. It gave the same result of not working once it got to the EULA. In the past I've always used AutoHotKey, so I modified it to work with that. Is the Install splash screen protected from scripts, like the UAC? I keep finding scripts that work on 2010 and below, but I haven't seen any for installing 2013. I've searched and searched for any info on this. However, once I get to the EULA, I'm unable to send keystrokes, ControlClick, or MouseClick. ![]() ![]() ![]() I've been working on setting up a script to auto install Office 2013, something that should be rather simple.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |