I had the same issue and used the following custom actions 
But double clicking the new msi still fails to run as it complains
there's already a version running.

          <CustomAction Id='AlreadyUpdated' Error='program is already
installed.' /> 
          <CustomAction Id='NoDowngrade' Error='A later version of
program is already installed.' />    
        <CustomAction Id='Patch_SetReinstall'
Property='REINSTALL'            Value='ALL'/>
        <CustomAction Id='Patch_SetReinstallMode'
Property='REINSTALLMODE'        Value='vomus'/>


<InstallExecuteSequence>
                ..... other custom actions ...
        <Custom Action='AlreadyUpdated'
After='FindRelatedProducts'>PATCHFOUND</Custom>
          <Custom Action='NoDowngrade'
After='FindRelatedProducts'>NEWERFOUND</Custom>
        <Custom Action='Patch_SetReinstall'
After="LaunchConditions">Installed</Custom>
        <Custom Action='Patch_SetReinstallMode'
After="Patch_SetReinstall">Installed</Custom>
</InstallExecuteSequence

Yet without the custom actions of the Reinstalls, running this command
line works
msiexec -i program.msi REINSTALL=ALL REINSTALLMODE=vomus




-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert
O'Brien
Sent: 09 September 2008 19:20
To: 'General discussion for Windows Installer XML toolset.'
Subject: Re: [WiX-users] does running upgrade msi or patch msistill
require additional command line switches?

Awesome thanks...so with this in place one should be able to just double
click on the "My deliverable Small Update or Minor Upgrade Patch.msp"
and get the desired result?

To set these required flags in the case of using a "My Deliverable Small
Update or Minor Upgrade.msi" approach to update an existing install
would I include similar CustomActions but use the condition "UPGRADE and
Installed" versus "PATCH and Installed"?

In an earlier response it was suggested that to execute a minor upgrade
you need reinstallmode="vomus" not "omus" for this to work.  Is that
only for the case of applying a minor upgrade using a "My Deliverable
Small Update or Minor Upgrade.msi" approach to update an existing
install?

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John
Nannenga
Sent: Tuesday, September 09, 2008 7:32 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] does running upgrade msi or patch msi still
require additional command line switches?

In our installs, we don't utilize a patch wrapper.

Instead, we set the REINSTALL and REINSTALLMODES appropriately within
our installation(s)...

        <CustomAction Id='Patch_SetReinstall'
Property='REINSTALL'            Value='ALL'/>
        <CustomAction Id='Patch_SetReinstallMode'
Property='REINSTALLMODE'        Value='omus'/>

<InstallExecuteSequence>
...
        <LaunchConditions/>
        <Custom Action='Patch_SetReinstall'
After="LaunchConditions">PATCH and Installed</Custom>
        <Custom Action='Patch_SetReinstallMode'
After="Patch_SetReinstall">PATCH and Installed</Custom>
...
</InstallExecuteSequence


With respect to multiple instances, the customer applies the patch via
the command line passing in the instance product code to patch if they
don't want all relevant instances updated by double clicking on the MSP
file.



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Pally
Sandher
Sent: Tuesday, September 09, 2008 5:54 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] does running upgrade msi or patch msi still
require additional command line switches?

Bob Arnson wrote:
>Robert O'Brien wrote:
>> q2 - do the same REINSTALLMODE switch settings apply when trying to
use a patch to carry out a minor or major upgrade?
>
>Yes, though usually MSI picks the right values for you. Though patches
aren't generally double-click installable; you usually need to provide a
wrapper.

I've yet to find a way to generate an MSP which doesn't need a wrapper
executable or be launched using msiexec /p to work as one would expect.
If anyone knows how, please share so we can update the WiX 3.0
documentation accordingly.

Palbinder Sandher
Software Deployment and IT Administrator

T: +44 (0) 141 945 8500
F: +44 (0) 141 945 8501
http://www.iesve.com

**Design, Simulate + Innovate with the <Virtual Environment>**

Integrated Environmental Solutions Limited. Registered in Scotland No.
SC151456
Registered Office - Helix Building, West Of Scotland Science Park,
Glasgow G20 0SP

Email Disclaimer


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bob Arnson
Sent: 07 September 2008 21:16
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] does running upgrade msi or patch msi still
require additional command line switches?

Robert O'Brien wrote:
> q2 - do the same REINSTALLMODE switch settings apply when trying to
use a patch to carry out a minor or major upgrade?

Yes, though usually MSI picks the right values for you. Though patches
aren't generally double-click installable; you usually need to provide a
wrapper.

> Our understanding at this point of a patch vs and upgrade is the patch
provides rollback to prior release support where a upgrade does not...is
that correct?
>

Only for minor upgrade patches. Major upgrade patches are discouraged
and aren't uninstallable.

> q3 - Would the following be something that you'd expect to work in
terms of providing a way for users NOT to have to enter the required
command line switch settings to get a minor upgrade to work?
>

No, that would be a major upgrade.

--
sig://boB
http://joyofsetup.com/



------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to