Jump to content

Office 2007 install will not finish


Recommended Posts

I am very new to AutoIT and I am trying to automate the installation of Microsoft products such as Office 2007, Project 2007, and Visio 2007. My script works all the way to the end where it prompts you to go to Microsoft Office Updates or to Close. I cannot get it to do either. Any suggestions...

Here is my script:

Run('C:\Documents and Settings\ist\Desktop\Office 2007 Enterprise\setup.exe')

WinWait("Microsoft Office Enterprise 2007","NUIDocumentWindow")

If Not WinActive("Microsoft Office Enterprise 2007","NUIDocumentWindow") Then WinActivate("Microsoft Office Enterprise 2007","NUIDocumentWindow")

WinWaitActive("Microsoft Office Enterprise 2007","NUIDocumentWindow")

Send("wqjhb4txwqj2q27ftkp62hqq8")

send("{ENTER}")

WinWaitActive("Microsoft Office Enterprise 2007","NUIDocumentWindow")

send("{SPACE}")

send("{ENTER}")

WinWaitActive("Microsoft Office Enterprise 2007","NUIDocumentWindow")

send("{ENTER}")

WinWait("Microsoft Office Enterprise 2007","NUIDocumentWindow")

Send("{TAB}")

send("{ENTER}")

Thanks in advance!!!

Link to comment
Share on other sites

Can you describe the problem more clearly? Are the final three lines in your script

WinWait("Microsoft Office Enterprise 2007","NUIDocumentWindow")
Send("{TAB}")
send("{ENTER}")

meant to select "Close"? If so, is the problem a) close is not being activated, or B) close is being activated and it's still not closing, or c) something else?

Edited by alexf
Link to comment
Share on other sites

Have you tried creating a custom install using the tools from MS? If your goal is to script then never mind. However, if all you need is a working passive install for Office 2007, use the customization tool. Launch it by running the Office 2007 setup.exe with the /admin switch. You can add your product code, set up defaults for Word or Outlook, etc. Pretty easy to do. Once you are finished just copy the resulting MSP file to the Updates directory and you're good to go.

edit: spelling

Edited by ksmith247

Support bacteria; it's the only culture most people have.LxP's Learning to Script with AutoIt 3 - Excellent starting placeVolly's Links Page - Links to cool and useful scriptsAutoIt Wrappers - Valuater's AutoIt Wrappers post. Lots of good stuff.Support AutoIt - Make a donation here; I did.[size="2"]#include <Guinness.pint>[/size]

Link to comment
Share on other sites

Alex,

Yes the following code is meant to select "Close"

CODE
WinWait("Microsoft Office Enterprise 2007","NUIDocumentWindow")

Send("{TAB}")

send("{ENTER}")

I believe the window is not active, therefore not reading the script to "Close"

It won't work when I use

CODE
Send("!c")

either.

Link to comment
Share on other sites

Start the Office Customization Tool (OCT) by running Setup with the /admin command-line option.

so you will make msp file with that program.

so you will start to setup "setup.exe /adminfile filename.msp"

it is easy I think.

I have completaly code in my computer in work.

CODE
RunWait("setup.exe /adminfile filename.msp",@SystemDir,0)
Startup Agent It is my small Startup Agent. You can install programs on startup Domain pc without Admin rights.
Link to comment
Share on other sites

config.xml file...

<Configuration Product="Enterprise">

<Display Level="none" CompletionNotice="no" SuppressModal="yes" AcceptEula="yes" />

<PIDKEY Value="serial number" />

<USERNAME Value="Organization name" />

<COMPANYNAME Value="Organization name" />

</Configuration>

Startup Agent It is my small Startup Agent. You can install programs on startup Domain pc without Admin rights.
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...