This is working in testing so far.  Needs cleanup and I'm going to add
centralized reporting. But in a nutshell, it works.


@echo on

cmd.exe /c MsiExec.exe /qn /norestart /x
{AC76BA86-7AD7-1033-7B44-A95000000001}

@echo off
echo "errorlevel = %errorlevel%"
if not "%errorlevel%" == "0" goto err
if "%errorlevel%" == "0" goto Success

:err
echo "Error: Msiexec failed with errorlevel = %errorlevel%"
exit /b %errorlevel%

:Success
cmd.exe /c msiexec /qn /norestart /i "\\corp\org\Install Point\Adobe
Reader\AIP9\AdbeRead.msi" TRANSFORMS="\\corp\org\Install Point\Adobe
Reader\AIP9\AcroRead.mst"






On Thu, Apr 12, 2012 at 8:57 PM, Damien Solodow <[email protected]
> wrote:

>  Magic. ;)
> As I recall you can only have one windows installer transaction active at
> a time, so I'd guess it monitors the service.
>
>  As far as what the OP is trying to accomplish, I'd say it depends on
> what is being used to deploy. A batch or script can easily be made to wait
> for the first process to complete with an appropriate exit code before
> launching the second process.
>  ------------------------------
> *From:* Michael B. Smith [[email protected]]
> *Sent:* Thursday, April 12, 2012 9:25 PM
>
> *To:* NT System Admin Issues
> *Subject:* RE: Start an install when an Uninstall completes?
>
>   I KNOW that. :-P That doesn’t define how it knows when one msiexec is
> complete to know when to start the next one.
>
>
>
> *From:* Rod Trent [mailto:[email protected]]
> *Sent:* Thursday, April 12, 2012 7:26 PM
> *To:* NT System Admin Issues
> *Subject:* RE: Start an install when an Uninstall completes?
>
>
>
> It utilizes a task sequence.
>
> "Michael B. Smith" <[email protected]> wrote:
>
> System Center Configuration Manager. J
>
>
>
> No clue how it does it. I would probably look at the registry.
>
>
>
> *From:* Sam Cayze [mailto:[email protected]]
> *Sent:* Thursday, April 12, 2012 4:50 PM
> *To:* NT System Admin Issues
> *Subject:* Start an install when an Uninstall completes?
>
>
>
> Anyone scripted this yet?
>
>
>
> Product 1 is installed.
>
> Product 2 needs to be installed.
>
> Product 1 has to be uninstalled before Product 2 can be installed.
>
>
>
> Hoping to roll the MSI /x and MSI /i commands into one script.  Does
> MSIEXEC have some controls for this? Or should I programmatically read the
> Event Log in a repeating loop until the successful uninstall event is
> posted.  Or maybe scan the HKLM\Sofware***\Uninstall registry to see if
> Product 1 is still in there?
>
>
>
> Ideas of what might be the cleanest and most reliable?  I feel like I'm
> missing something very obvious :-\
>
>
>
> TIA,
>
>
> Sam
>
> ~ Finally, powerful endpoint security that ISN'T a resource hog! ~
> ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~
>
> ---
> To manage subscriptions click here:
> http://lyris.sunbelt-software.com/read/my_forums/
> or send an email to [email protected]
> with the body: unsubscribe ntsysadmin
>
> ~ Finally, powerful endpoint security that ISN'T a resource hog! ~
> ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~
>
> ---
> To manage subscriptions click here:
> http://lyris.sunbelt-software.com/read/my_forums/
> or send an email to [email protected]
> with the body: unsubscribe ntsysadmin
>
>
> --
> Sent from Kaiten Mail for Android. Please excuse my brevity.
>
> ~ Finally, powerful endpoint security that ISN'T a resource hog! ~
> ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~
>
> ---
> To manage subscriptions click here:
> http://lyris.sunbelt-software.com/read/my_forums/
> or send an email to [email protected]
> with the body: unsubscribe ntsysadmin
>
> ~ Finally, powerful endpoint security that ISN'T a resource hog! ~
> ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~
>
> ---
> To manage subscriptions click here:
> http://lyris.sunbelt-software.com/read/my_forums/
> or send an email to [email protected]
> with the body: unsubscribe ntsysadmin
>
> ~ Finally, powerful endpoint security that ISN'T a resource hog! ~
> ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~
>
> ---
> To manage subscriptions click here:
> http://lyris.sunbelt-software.com/read/my_forums/
> or send an email to [email protected]
> with the body: unsubscribe ntsysadmin
>
> ~ Finally, powerful endpoint security that ISN'T a resource hog! ~
> ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~
>
> ---
> To manage subscriptions click here:
> http://lyris.sunbelt-software.com/read/my_forums/
> or send an email to [email protected]
> with the body: unsubscribe ntsysadmin
>

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to [email protected]
with the body: unsubscribe ntsysadmin

Reply via email to