Jump to content

New problem with Microsoft apps


Recommended Posts

Hi Mark, Kel ... :-)

Just came across another deadly error with WPI (7.0) while installing Microsoft applications on Vista(32bit) . (I should stop doing that but the fact is, I (we) simply need them installed).

Now, I have taken out all Updates from the Updates folder of Office 2007 and install them later on (after a reboot) with a script. This actually worked. Office 2007 installs fine now with WPI.

Now, if I install any other Microsoft application afterwards (for instance Livemeeting, which is just a simply small msi package !!), WPI dies again but this time, the error message is different, some talk about an illegal character in line 1. (see picture)

The script for the Livemeeting installation itself cannot be the reason for this as it will install fine on it´s own (if Office 2007 was not installed before). The problem only appears if Office was installed sometime before. Since I cannot do a reboot between every Microsoft installation (and we have a few, I am stuck again.

Btw. I am starting a cmd script in config.js to install both applications so WPI is actually watching the cmd´s and not the msi/exe´s itself. I also tried adding wait commands etc. but nothing helps.

The WPI log does not say much although it reports code 259 for the Livemeeting installation.

Here´s the content of the config.js for the two apps:

pn=1;

prog[pn]=['Office Enterprise 2007 (Updateinstallation nach Reboot)'];
ordr[pn]=[2];
uid[pn]=['OFFICEENT'];
dflt[pn]=['yes'];
cat[pn]=['Office'];
forc[pn]=['no'];
cmd1[pn]=['"%root%\\Microsoft\\Office2007\\silent_install.cmd"'];
pn++;

prog[pn]=['Office Live Meeting 2007'];
ordr[pn]=[90];
uid[pn]=['LIVEMEETING'];
dflt[pn]=['no'];
cat[pn]=['Office'];
forc[pn]=['no'];
cmd1[pn]=['"%root%\\Microsoft\\LiveMeeting\\silent_install.cmd"'];
pn++;

And here are the 2 cmd´s installing Office and LiveMeeting (I have reduced them to the bare minimum (no cmdow, echo commands etc.)

REM Office:

cd /D %~dp0
start /wait .\setup.exe /adminfile settings.MSP


REM LiveMeeting:

cd /D %~dp0
start /wait .\LMConsole.msi /passive /norestart
ping -n 30 127.0.0.1>nul
taskkill.exe /F /IM outlook.exe
start /wait .\LMAddinPack.msi /passive /norestart
ping -n 30 127.0.0.1>nul

exit

Any idea what "illegal character" the error message could be about and what to do ?

Btw. WPI dies right before that command in the second script is finished:

start /wait .\LMConsole.msi /passive /norestart

That means it dies while that msi is still running but almost finished. So the sleep command that I have included afterwards does not really help and comes too late anyway ( by that time, WPI has already come up with the error, see picture).

Bye,

Alex

Link to comment
Share on other sites


OK now the error with the msi's dying is actually known to me. NOT WPI but me, it is from the office msi\msp files not being fully cleaned up (Or finishing properly) and after that all msi's die... :( OK now for the better news:

I have done lots of office 07\sp1 installs it isn't the sp1 procedure... It HAS to be one of the hotfixes. I am BETTING the outlook express ones because one of them is abnormally killing the .mshta process during the install and that fubars it all. SO in eccense you need to do oh, say a dozen installs to test and find the offending procces and run that as WPI's last execute after.

or try this:

* Added JSCRIPT=TimedWaitForFile(file,secs) to truly wait for an installer to
finish. This can be used to check for the existance of the program's icon or
exe before doing a reg tweak. (deadbug had original idea/code)
JSCRIPT=TimedWaitForFile("C:\Program Files\WinRAR\WinRAR.exe",10)

(From the current changelog and have it watch for the office installation proccess.

I don't have the time for a dozen or so full tests of windows and office but I may try to make some time this week...

Link to comment
Share on other sites

Hi Kel,

thanks for your reply.

Can you elaborate a bit ?

1. As for the hotfixes ... You mean the Office 2007 hotfixes or Windows Vista hotfixes ? I don´t really think that you are right with that assumption though because as I have written, I have taken out all the Office 2007 updates (even SP1) and WPI still dies if Livemeeting is being installed.

2. Can you tell me how to use the jscript code in this case ? What exe or process should it be watching ? The Livemeeting msi files in this case ? Or the Visio setup.exe ?

I am not sure I understand the problem though. I am starting a cmd with WPI. This cmd is still running when WPI dies so where would it help if WPI waits for another process to finish ? It is waiting for the cmd anyway. No ?

OK now the error with the msi's dying is actually known to me. NOT WPI but me, it is from the office msi\msp files not being fully cleaned up (Or finishing properly) and after that all msi's die...

But why does it only happen if Office 2007 was installed before ? If I only install Livemeeting, the same code, the same installation works fine.

Thanks for your help !

Alex

Edited by midiboy
Link to comment
Share on other sites

Hi again,

maybe I am doing this wrong, but I just tried the new jscript code:

prog[pn]=['Office Live Meeting 2007'];
ordr[pn]=[90];
uid[pn]=['LIVEMEETING'];
dflt[pn]=['yes'];
cat[pn]=['Office'];
forc[pn]=['no'];
cmd1[pn]=['JSCRIPT=TimedWaitForFile("%root%\\Microsoft\\LiveMeeting\\silent_install.cmd",40)'];
cmd2[pn]=['"%root%\\Microsoft\\LiveMeeting\\silent_install.cmd"'];
pn++;

Is this how it should be working ? Is cmd2 still necessary if I want WPI to wait until the silent_install.cmd is finished ?

It did not make any difference with the dying WPI though ...

Bye,

Alex

Link to comment
Share on other sites

Man thats tough. I don't have live meeting but I googled abit and found out it's a part of the microsoft office line. Can you try this for me?

#1 run cmd #1 manually for office.

#2 run cmd manually for live meeting.

#3 see if it stuffs up other installs.

Basically I am trying to see if there is a conflict between your chosen settings for office (or office 2007) and livemeeting.

Have you tried the reverse? Livemeeting first and then office?

Edited by Kelsenellenelvian
Link to comment
Share on other sites

Hi Kel!

Man thats tough. I don't have live meeting but I googled abit and found out it's a part of the microsoft office line. Can you try this for me?

#1 run cmd #1 manually for office.

#2 run cmd manually for live meeting.

#3 see if it stuffs up other installs.

Basically I am trying to see if there is a conflict between your chosen settings for office (or office 2007) and livemeeting.

Have you tried the reverse? Livemeeting first and then office?

With run manually you mean not using WPI ? Just doubleclick on the cmd´s manually ?

Running it reverse would not make much sense since Livemeeting has a plugin for Outlook (which does not get installed if Outlook is not installed) but I will try.

As for my second post: I just would like to know if I did this right (first, a cmd for the jscript code watching the cmd script and then a second cmd in config.js for actually running the script)

Bye,

Alex

Link to comment
Share on other sites

OK yeah your right I have spent the last hour or so going through the proccess to get the trial of livemeeting. *sigh* :D

I am testing it now. Will get back in a couple of minutes.

I do believe your code is backwards though. (i.e. flip command 1&2) Mritter did all this code so alot of it is still new to me too :o:P

Link to comment
Share on other sites

OK here are my results (Note they may not be exactly the same files you are using)

my config:

pn=1;
prog[pn]=['Live Meeting'];
uid[pn]=['LIVEMEETING'];
dflt[pn]=['yes'];
cat[pn]=['Applications'];
forc[pn]=['no'];
cmd1[pn]=['"%wpipath%\\Install\\lmconsole.msi" /passive /norestart'];
cmd2[pn]=['tskill outlook'];
cmd3[pn]=['"%wpipath%\\Install\\livemeeting.msi" /passive /norestart'];
pn++;

Office 07 w\Word and Outlook installed

results:

Link to comment
Share on other sites

Hi Kel,

I don´t use the livemeeting.msi you use but the lmconsole.msi seems to be the same (Livemeeting 2007).

As for the process ...

It may be ok if Office 2007 is already installed but have you tried installing Office 2007 and then Livemeeting with WPI right after one another without rebooting in between ?

That will cause the error right at the end of the lmconsole.msi.

By the way, thanks for your time in testing this !

Alex

Link to comment
Share on other sites

Actually I had to Run the office installer config to add outlook as I dont actually use outlook so I think that would be nearly the same as installing it witout a rebbot. I will prep a VM though for future testing if your willing to take this further. (Bring it! :P )

OK which version of Vista are you usin?

Edited by Kelsenellenelvian
Link to comment
Share on other sites

Hi Kel,

Thanks for your help.

I am using Vista Ultimate SP1 (integrated) but the problem also happens with the Enterprise Version so I doubt it matters.

After Vista is installed, I am starting WPI from a FirstLogonCommand in the autounattend.xml. Actually, to be precise, I am starting a cmd there, that installs a few prerequisites like Net Framework updates etc., then reboots the PC and then starts WPI using runonceex.

I have tried installing Office and Livemeeting manually (without WPI), of course everything is fine :-)

Next, I will try to start WPI manually after Windows has fully loaded (not during runonceex) and install Office and LM from there to see if it matters. (doubt it but who knows).

What I really don´t understand with this whole matter is, why the hell WPI cannot protect itself from these things. If an msi is dying as you said in the first post, why does WPI have to die with it ? ;-) Also, why does the msi die only if it is started from within WPI, not when it is started manually or from within a cmd ?

And if some update tries to kill mshta.exe why can´t WPI lock it while it is running so that the update is not able to exchange it directly but during the next reboot ?

Those may be naive questions but I am wondering why WPI has so many problems with Microsoft applications even standard msi packages.

Bye,

Alex

Link to comment
Share on other sites

Hi again,

back with some results from the testing department ;-)

1. Runonceex has nothing to do with it, the problem is the same if WPI is manuelly started after a fresh Vista installation.

2. The more interesting point is this:

I have two ways of installing with WPI:

A script checks if a certain server is available. If it is, a network drive is created and WPI plus all applications install over that network.

This is what I did all the day now and this is where the script error mentioned above appears during the Livemeeting installation.

Now, out of curiosity, I disabled the network connection on the virtual machine and installed again, this time, the server was not found and instead WPI started from DVD and installed Office and Livemeeting from DVD.

Interestingly enough, the error message changed now. WPI still died during the Livemeeting installation (at the same time as before) but the message was different. Now, the old "reboot config" message appeared (see picture).

This in fact means, that this is still the same problem but depending on installation medium used, the message is different.

Does this help in any way ?

Link to comment
Share on other sites

OK here is my last test result:

Test setup = VMware Vista Ultimate and Office 2007 with everything selected.

WPI-Log:

2 Items, 4 Commands

-----

Tuesday, August 05, 2008 1:40:05 AM
Program: Office 2007
Unique ID: OFFICE2007
Order: 000001
Category: Applications
Tuesday, August 05, 2008 2:05:54 AM - cmd1 Success (returned code 0): "C:\Users\Troy\Desktop\WPI\Office07\Office_Installer.exe"
Tuesday, August 05, 2008 2:05:55 AM - Finished installation.

-----

Tuesday, August 05, 2008 2:05:55 AM
Program: Live Meeting 07
Unique ID: LIVEMEETING07
Order: 000002
Category: Applications
Tuesday, August 05, 2008 2:06:32 AM - cmd1 Success (returned code 0): "C:\Users\Troy\Desktop\WPI\Install\LMConsole.msi" /passive /norestart
Tuesday, August 05, 2008 2:06:33 AM - cmd2 Success (returned code 1): tskill outlook
Tuesday, August 05, 2008 2:07:27 AM - cmd3 Success (returned code 0): "C:\Users\Troy\Desktop\WPI\Install\LMAddinPack.msi" /passive /norestart
Tuesday, August 05, 2008 2:07:27 AM - Finished installation.

-----

Number of failed installations: 0

Config file:

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
  • Recently Browsing   0 members

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