Pindrul

Office 2010 silent installation gets mshta.exe hung

34 posts in this topic

Hello everybody,

I, m using wpi 8.7.1 for making an unattended installation of several apps.The silent intaller for Office 2010 runs ok but i doesn´t finish so the next app for install won´t start. The process mshta.exe gets hung an i have to kill it. I´m using WIndows 7 64-bit as host for installation. Here is my config.js:

<code>

prog[pn]=['WinRAR x64'];
uid[pn]=['WINRAR64'];
dflt[pn]=['yes'];
forc[pn]=['no'];
cat[pn]=['64 Bit'];
pfro[pn]=['no'];
cmds[pn]=['"%wpipath%\\Install\\WinRARx64.exe" "/s"'];
desc[pn]=['WinRAR x64'];
pn++;
prog[pn]=['Office 2010 x64'];
uid[pn]=['OFFICEX64'];
dflt[pn]=['yes'];
forc[pn]=['no'];
cat[pn]=['64 Bit'];
pfro[pn]=['no'];
cmds[pn]=['"%wpipath%\\Install\\OFFICEX64\\setup.exe" "/config" "%wpipath%\\Install\\OFFICEX64\\ProPlus.WW\\config.xml"'];
desc[pn]=['Office 2010 x64'];
pn++;
prog[pn]=['Avast Antivirus'];
uid[pn]=['AVAST64'];
dflt[pn]=['yes'];
forc[pn]=['no'];
cat[pn]=['64 Bit'];
pfro[pn]=['no'];
cmds[pn]=['"%wpipath%\\Install\\avast.exe" "/silent"'];
desc[pn]=['Avast Antivirus'];
pn++;

</code>

and my config.xml for Office 2010 is:

<code>

<Configuration Product="ProPlus">
<Display Level="none" CompletionNotice="no" SuppressModal="yes" AcceptEula="yes" />
<!-- <Logging Type="standard" Path="%temp%" Template="Microsoft Office Professional Plus Setup(*).txt" /> -->
<!-- <USERNAME Value="Customer" /> -->
<!-- <COMPANYNAME Value="MyCompany" /> -->
<!-- <INSTALLLOCATION Value="%programfiles%\Microsoft Office" /> -->
<!-- <LIS CACHEACTION="CacheOnly" /> -->
<!-- <LIS SOURCELIST="\\server1\share\Office;\\server2\share\Office" /> -->
<!-- <DistributionPoint Location="\\server\share\Office" /> -->
<!-- <OptionState Id="OptionID" State="absent" Children="force" /> -->
<!-- <Setting Id="SETUP_REBOOT" Value="IfNeeded" /> -->
<!-- <Command Path="%windir%\system32\msiexec.exe" Args="/i \\server\share\my.msi" QuietArg="/q" ChainPosition="after" Execute="install" /> -->
</Configuration>

</code>

0

Share this post


Link to post
Share on other sites

<!-- <Command Path="%windir%\system32\msiexec.exe" Args="/i \\server\share\my.msi" QuietArg="/q" ChainPosition="after" Execute="install" /> -->

I think it's this command that's not sending the finished signal.

There is a wait for process to finish feature that might work.

I have never installed any of the offices via XML files, I always use admin installs you'll have to wait until one of the guys come by that does use XML style

0

Share this post


Link to post
Share on other sites

Thanks for the quick response.

I´m going to test the installation with the admin install. In anyway note that the line you refer is a comment so it doesn´t affect to the xml because it´s between <!-- and -->. Keep working that way WPI is an excellent tool!

0

Share this post


Link to post
Share on other sites

Hi there,

Finally i have found a solution:

prog[pn]=['Office 2010 x64'];
uid[pn]=['OFFICEX64'];
dflt[pn]=['yes'];
forc[pn]=['no'];
cat[pn]=['64 Bit'];
pfro[pn]=['no'];
cmds[pn]=['"%wpipath%\\Install\\OFFICEX64\\setup.exe" "/adminfile" "%wpipath%\\Install\\OFFICEX64\\custom.MSP" "/config" "%wpipath%\\Install\\OFFICEX64\\ProPlus.WW\\config.xml"'];
desc[pn]=['Office 2010 x64'];
pn++;
This is a combination of /adminfile switch for automation and a default xml file (with al the line commented) for product chooser (In this case Office Pro Plus version). I hope this cdan help others...
Thanks for your replies!.
0

Share this post


Link to post
Share on other sites

Hi,

I´m sorry to inform you that i´m still having troubles with unattended installation of microsoft office 2010. While this command works very well from a console:

setup.exe /adminfile custom.MSP /config ProPlus.WW\config.xml

It doesn´t finish properly when i call it from WPI. The mshta.exe gets hung with CPU Utilization of 50% or higher.

Can anybody help?

0

Share this post


Link to post
Share on other sites

Hi, bphlp

No, i didn't test that suggestion because the installation fails in non silent mode too. I tested an old version of WPI with Office 32 bit installation and runs OK both silent and normal installation . I'm testing now WPI 8.7.1 with Office 32Bit Install. I Will keep you informed about the results.

0

Share this post


Link to post
Share on other sites

Hi Everybody,

OK I have found that version 8.6.3 of WPI works flawessly with both installations of OFFICE (x64 and x86). The use of CPU with mshta.exe is far lower and the installation of programs is quicker. I Hope someone check this because it´s annoying not being capable of using latest version.

P.D I had to download this version on another page because the official link for old versions in wpiw.net does not work. :huh:

0

Share this post


Link to post
Share on other sites

OK here goes:

1= Links fixed (Thanks)

2= Try the attached timers.js with wpi 8.7.1 please and I think the issue is fixed...

timers.js

0

Share this post


Link to post
Share on other sites

About Office 2010:

Install first Net Framework 4:

http://www.wincert.net/forum/topic/9154-slim-net-framework-4-full-x86x64-1-05-2014/

And Visual Studio:

http://www.wincert.net/forum/topic/9790-aio-microsoft-visual-bcfj-redistributable-x86x64/

And after Office 2010!

My config.js (example):

pn=1;prog[pn]=['NET Framework 4'];uid[pn]=['NETFRAMEWORK4'];ordr[pn]=[1];dflt[pn]=['yes'];forc[pn]=['no'];cat[pn]=['Applications'];pfro[pn]=['no'];cmds[pn]=['"%wpipath%\\Install\\dotNET4\\dotNetFx40_Full_x86_x64_Slim.exe" /aif'];desc[pn]=['NET Framework 4'];picf[pn]=['"%wpipath%\\Graphics\\Logos\\DotNet.png"'];picw[pn]=['128'];pich[pn]=['128'];textl[pn]=['Right'];pn++;prog[pn]=['ATI Radeon X300 Series 9-11'];shortdesc[pn]=['Pilotes Carte Graphique'];uid[pn]=['ATIRADEONX300SERIES911'];ordr[pn]=[2];dflt[pn]=['yes'];forc[pn]=['no'];cat[pn]=['Applications'];pfro[pn]=['no'];cmds[pn]=['"%wpipath%\\Install\\ATIDriver\\ATI-9-11.exe"'];desc[pn]=['ATI Radeon X300 Series 9-11'];picf[pn]=['"%wpipath%\\Graphics\\Logos\\ATI.png"'];picw[pn]=['128'];pich[pn]=['128'];textl[pn]=['Right'];pn++;prog[pn]=['Realtek WDM R239'];shortdesc[pn]=['Pilotes son'];uid[pn]=['REALTEKWDMR239'];ordr[pn]=[3];dflt[pn]=['yes'];forc[pn]=['no'];cat[pn]=['Applications'];pfro[pn]=['no'];cmds[pn]=['"%wpipath%\\Install\\Realtek\\Realtek.exe"'];desc[pn]=['Realtek WDM R239'];picf[pn]=['"%wpipath%\\Graphics\\Logos\\Realtek.png"'];picw[pn]=['128'];pich[pn]=['128'];textl[pn]=['Right'];pn++;prog[pn]=['Visual Studio AIO'];uid[pn]=['VISUALSTUDIOAIO'];ordr[pn]=[4];dflt[pn]=['yes'];forc[pn]=['no'];cat[pn]=['Applications'];pfro[pn]=['no'];cmds[pn]=['"%wpipath%\\Install\\VBCRedist\\VBCRedist_AIO_x86_x64.exe" /y'];desc[pn]=['Visual Studio AIO'];picf[pn]=['"%wpipath%\\Graphics\\Logos\\VS2010Logo.png"'];picw[pn]=['128'];pich[pn]=['128'];textl[pn]=['Right'];pn++;prog[pn]=['Office 2007 Pro SP3'];uid[pn]=['OFFICE2007PROSP3'];ordr[pn]=[5];dflt[pn]=['yes'];forc[pn]=['no'];cat[pn]=['Applications'];pfro[pn]=['no'];cmds[pn]=['"%wpipath%\\Install\\OfficePro\\Office2007Pro.exe"'];desc[pn]=['Office 2007 Pro SP3'];picf[pn]=['"%wpipath%\\Graphics\\Logos\\Office.png"'];picw[pn]=['128'];pich[pn]=['128'];textl[pn]=['Right'];pn++;
Edited by myselfidem
0

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

  • Recently Browsing   0 members

    No registered users viewing this page.