I am launching an install with setup.exe and need the script to wait
until the install (msiexec) has completed before moving on, I have
tried several command and none of them seem to work...

In a vbs I am trying to uninstall any old version of NAV they have and
then install the new version of NAV with the settings we want. All
done with no user interaction.

I am launching the uninstall with "start /w msiexec /x {GUID HERE} /qn
REBOOT=REALLYSUPPRESS"

And then the install with "start /W setup.exe /v""/qb+
ADDLOCAL=SAVMain,SAVUI,SAVHelp,EMailTools,OutlookSnapin,Pop3Smtp,QClient
ENABLEAUTOPROTECT=1 RUNLIVEUPDATE=1 NETWORKTYPE=1 SERVERNAME=MANAGED
REBOOT=REALLYSUPPRESS /l*v c:\SAV9Inst.Log"" ",1,True"

I am using objshell.run "......" for both the install and uninstall.

The wait command does not seem to work, it launches msiexec so when
setup.exe exits it thinks it is done. How can I do this? Should I be
uinsing the Windows Installer method instead? I cannot find a lot
details on the use of this method.

TIA.

Regards.

Re: Wait for the install to finsh! Please! by Torgeir

Torgeir
Fri Feb 18 10:08:27 CST 2005

SE wrote:

> I am launching an install with setup.exe and need the script to wait
> until the install (msiexec) has completed before moving on, I have
> tried several command and none of them seem to work...
>
> In a vbs I am trying to uninstall any old version of NAV they have and
> then install the new version of NAV with the settings we want. All
> done with no user interaction.
>
> I am launching the uninstall with "start /w msiexec /x {GUID HERE} /qn
> REBOOT=REALLYSUPPRESS"
>
> And then the install with "start /W setup.exe /v""/qb+
> ADDLOCAL=SAVMain,SAVUI,SAVHelp,EMailTools,OutlookSnapin,Pop3Smtp,QClient
> ENABLEAUTOPROTECT=1 RUNLIVEUPDATE=1 NETWORKTYPE=1 SERVERNAME=MANAGED
> REBOOT=REALLYSUPPRESS /l*v c:\SAV9Inst.Log"" ",1,True"
>
> I am using objshell.run "......" for both the install and uninstall.
>
> The wait command does not seem to work, it launches msiexec so when
> setup.exe exits it thinks it is done. How can I do this? Should I be
> uinsing the Windows Installer method instead? I cannot find a lot
> details on the use of this method.
Hi

Drop the use of setup.exe and use msiexec to call the msi file directly.

And when using msiexec.exe, you doesn't need to use cmd.exe (%comspec%)
and start /w.

Using only this as command line in your objshell.run should work (and
",1 , True" of course):

msiexec.exe /i somepath\SAVClient.msi /qb+ ADDLOCAL=SAVMain,SAVUI,
SAVHelp,EMailTools,OutlookSnapin,Pop3Smtp,QClient ENABLEAUTOPROTECT=1
RUNLIVEUPDATE=1 NETWORKTYPE=1 SERVERNAME=MANAGED
REBOOT=REALLYSUPPRESS /l*v c:\SAV9Inst.Log


--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx

Re: Wait for the install to finsh! Please! by Roland

Roland
Fri Feb 18 16:13:04 CST 2005

"Torgeir Bakken (MVP)" wrote in message
news:uH%23FbQdFFHA.2564@tk2msftngp13.phx.gbl...
> I am launching an install with setup.exe and need the script to wait
: > until the install (msiexec) has completed before moving on, I have
: > tried several command and none of them seem to work...
: >
: > In a vbs I am trying to uninstall any old version of NAV they have and
: > then install the new version of NAV with the settings we want. All
: > done with no user interaction.
: >
: > I am launching the uninstall with "start /w msiexec /x {GUID HERE} /qn
: > REBOOT=REALLYSUPPRESS"
: >
: > And then the install with "start /W setup.exe /v""/qb+
: > ADDLOCAL=SAVMain,SAVUI,SAVHelp,EMailTools,OutlookSnapin,Pop3Smtp,QClient
: > ENABLEAUTOPROTECT=1 RUNLIVEUPDATE=1 NETWORKTYPE=1 SERVERNAME=MANAGED
: > REBOOT=REALLYSUPPRESS /l*v c:\SAV9Inst.Log"" ",1,True"
: >
: > I am using objshell.run "......" for both the install and uninstall.
: >
: > The wait command does not seem to work, it launches msiexec so when
: > setup.exe exits it thinks it is done. How can I do this? Should I be
: > uinsing the Windows Installer method instead? I cannot find a lot
: > details on the use of this method.
: Hi
:
: Drop the use of setup.exe and use msiexec to call the msi file directly.
:
: And when using msiexec.exe, you doesn't need to use cmd.exe (%comspec%)
: and start /w.
:
: Using only this as command line in your objshell.run should work (and
: ",1 , True" of course):
:
: msiexec.exe /i somepath\SAVClient.msi /qb+ ADDLOCAL=SAVMain,SAVUI,
: SAVHelp,EMailTools,OutlookSnapin,Pop3Smtp,QClient ENABLEAUTOPROTECT=1
: RUNLIVEUPDATE=1 NETWORKTYPE=1 SERVERNAME=MANAGED
: REBOOT=REALLYSUPPRESS /l*v c:\SAV9Inst.Log

If you're using the Corporate or Enterprise version of NAV, all you need
this for it to remove the old version. Use NAV to push the new client out,
as long as your clients are NT and above.

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp