Re: [WiX-users] CustomAction on Uninstall but not upgrade

2010-06-30 Thread Pally Sandher
FYI dblock posted http://code.dblock.org/ShowPost.aspx?id=101 on this
list a few times recently which covers this  other similar conditions.
I would recommend using the code on that post.

Palbinder Sandher 
Software Deployment  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: Sanjay Rao [mailto:s...@noida.interrasystems.com] 
Sent: 29 June 2010 06:15
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] CustomAction on Uninstall but not upgrade

use condition

(NOT UPGRADINGPRODUCTCODE) AND (REMOVE=ALL)

cge wrote:
 I have a custom action that should only run on uninstall, but not run 
 during an upgrade. After browsing the list archives and other sites, I

 came up with the following:

   Custom Action='SetUnDeployParams'
 After='MsiUnpublishAssemblies'Installed AND (REMOVE=ALL) AND NOT 
 (UPGRADEFOUND OR UPGRADINGPRODUCTCODE)/Custom
   Custom Action='UnDeploy' After='SetUnDeployParams'Installed 
 AND
 (REMOVE=ALL) AND NOT (UPGRADEFOUND OR UPGRADINGPRODUCTCODE)/Custom


 But the action is still being run during an upgrade. I can't figure 
 out why, given these log exerpts:

 MSI (c) (AC:34) [13:59:18:455]: Doing action: FindRelatedProducts 
 Action 13:59:18: FindRelatedProducts. Searching for related 
 applications Action start 13:59:18: FindRelatedProducts.
 FindRelatedProducts: Found application:
 {4EBE949A-5DEE-11DF-A3C0-4BE0DED72085}
 MSI (c) (AC:34) [13:59:18:455]: PROPERTY CHANGE: Adding UPGRADEFOUND 
 property. Its value is '{4EBE949A-5DEE-11DF-A3C0-4BE0DED72085}'.
 Action ended 13:59:18: FindRelatedProducts. Return value 1.
 ...
 MSI (s) (18:C0) [13:59:21:267]: PROPERTY CHANGE: Adding 
 UPGRADINGPRODUCTCODE property. Its value is
'{C17B34D1-C56E-4BD7-8E2F-D20B06902E17}'.
 ...
 Action ended 13:59:21: MsiUnpublishAssemblies. Return value 0.
 MSI (s) (18:C0) [13:59:21:314]: Doing action: SetUnDeployParams Action

 13:59:21: SetUnDeployParams.
 Action start 13:59:21: SetUnDeployParams.



   





--
This SF.net email is sponsored by Sprint What will you do first with
EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] CustomAction on Uninstall but not upgrade

2010-06-28 Thread cge

I have a custom action that should only run on uninstall, but not run during
an upgrade. After browsing the list archives and other sites, I came up with
the following:

  Custom Action='SetUnDeployParams'
After='MsiUnpublishAssemblies'Installed AND (REMOVE=ALL) AND NOT
(UPGRADEFOUND OR UPGRADINGPRODUCTCODE)/Custom
  Custom Action='UnDeploy' After='SetUnDeployParams'Installed AND
(REMOVE=ALL) AND NOT (UPGRADEFOUND OR UPGRADINGPRODUCTCODE)/Custom


But the action is still being run during an upgrade. I can't figure out why,
given these log exerpts:

MSI (c) (AC:34) [13:59:18:455]: Doing action: FindRelatedProducts
Action 13:59:18: FindRelatedProducts. Searching for related applications
Action start 13:59:18: FindRelatedProducts.
FindRelatedProducts: Found application:
{4EBE949A-5DEE-11DF-A3C0-4BE0DED72085}
MSI (c) (AC:34) [13:59:18:455]: PROPERTY CHANGE: Adding UPGRADEFOUND
property. Its value is '{4EBE949A-5DEE-11DF-A3C0-4BE0DED72085}'.
Action ended 13:59:18: FindRelatedProducts. Return value 1.
...
MSI (s) (18:C0) [13:59:21:267]: PROPERTY CHANGE: Adding UPGRADINGPRODUCTCODE
property. Its value is '{C17B34D1-C56E-4BD7-8E2F-D20B06902E17}'.
...
Action ended 13:59:21: MsiUnpublishAssemblies. Return value 0.
MSI (s) (18:C0) [13:59:21:314]: Doing action: SetUnDeployParams
Action 13:59:21: SetUnDeployParams. 
Action start 13:59:21: SetUnDeployParams.



-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/CustomAction-on-Uninstall-but-not-upgrade-tp5232029p5232029.html
Sent from the wix-users mailing list archive at Nabble.com.

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] CustomAction on Uninstall but not upgrade

2010-06-28 Thread Wilson, Phil
I can't tell from that which product versions are being referred to, but during 
an upgrade there are two things going on - the install of the new incoming 
product and the uninstall of the previous outgoing product, and:

UPGRADINGPRODUCTCODE is set in the outgoing product when it is being 
uninstalled, so hopefully that hasn't been shipped yet so you can add that 
condition if needed.  

UPGRADEFOUND is set in the incoming newer product when it detects that that a 
previous product exists and will be upgraded. 


Phil Wilson 

-Original Message-
From: cge [mailto:ell...@avaya.com] 
Sent: Monday, June 28, 2010 11:29 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] CustomAction on Uninstall but not upgrade


I have a custom action that should only run on uninstall, but not run during
an upgrade. After browsing the list archives and other sites, I came up with
the following:

  Custom Action='SetUnDeployParams'
After='MsiUnpublishAssemblies'Installed AND (REMOVE=ALL) AND NOT
(UPGRADEFOUND OR UPGRADINGPRODUCTCODE)/Custom
  Custom Action='UnDeploy' After='SetUnDeployParams'Installed AND
(REMOVE=ALL) AND NOT (UPGRADEFOUND OR UPGRADINGPRODUCTCODE)/Custom


But the action is still being run during an upgrade. I can't figure out why,
given these log exerpts:

MSI (c) (AC:34) [13:59:18:455]: Doing action: FindRelatedProducts
Action 13:59:18: FindRelatedProducts. Searching for related applications
Action start 13:59:18: FindRelatedProducts.
FindRelatedProducts: Found application:
{4EBE949A-5DEE-11DF-A3C0-4BE0DED72085}
MSI (c) (AC:34) [13:59:18:455]: PROPERTY CHANGE: Adding UPGRADEFOUND
property. Its value is '{4EBE949A-5DEE-11DF-A3C0-4BE0DED72085}'.
Action ended 13:59:18: FindRelatedProducts. Return value 1.
...
MSI (s) (18:C0) [13:59:21:267]: PROPERTY CHANGE: Adding UPGRADINGPRODUCTCODE
property. Its value is '{C17B34D1-C56E-4BD7-8E2F-D20B06902E17}'.
...
Action ended 13:59:21: MsiUnpublishAssemblies. Return value 0.
MSI (s) (18:C0) [13:59:21:314]: Doing action: SetUnDeployParams
Action 13:59:21: SetUnDeployParams. 
Action start 13:59:21: SetUnDeployParams.



-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/CustomAction-on-Uninstall-but-not-upgrade-tp5232029p5232029.html
Sent from the wix-users mailing list archive at Nabble.com.

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


*** Confidentiality Notice: This e-mail, including any associated or attached 
files, is intended solely for the individual or entity to which it is 
addressed. This e-mail is confidential and may well also be legally privileged. 
If you have received it in error, you are on notice of its status. Please 
notify the sender immediately by reply e-mail and then delete this message from 
your system. Please do not copy it or use it for any purposes, or disclose its 
contents to any other person. This email comes from a division of the Invensys 
Group, owned by Invensys plc, which is a company registered in England and 
Wales with its registered office at Portland House, Bressenden Place, London, 
SW1E 5BF (Registered number 166023). For a list of European legal entities 
within the Invensys Group, please go to 
http://www.invensys.com/legal/default.asp?top_nav_id=77nav_id=80prev_id=77. 
You may contact Invensys plc on +44 (0)20 7821 3848 or e-mail 
inet.hqhelpd...@invensys.com. This e-mail and any attachments thereto may be 
subject to the terms of any agreements between Invensys (and/or its 
subsidiaries and affiliates) and the recipient (and/or its subsidiaries and 
affiliates).



--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] CustomAction on Uninstall but not upgrade

2010-06-28 Thread cge

Yes, I can see in my log where UPGRADINGPRODUCTCODE and UPGRADEFOUND are
being set to the appropriate GUIDs. What I don't understand is how I can
prevent my CustomAction from being executed when the old outgoing product is
being uninstalled. I only want my CustomAction to execute when an uninstall
is run directly, not when it is run as part of an upgrade.

Is there a set of conditions that match that scenario?


Wilson, Phil-2 wrote:
 
 I can't tell from that which product versions are being referred to, but
 during an upgrade there are two things going on - the install of the new
 incoming product and the uninstall of the previous outgoing product, and:
 
 UPGRADINGPRODUCTCODE is set in the outgoing product when it is being
 uninstalled, so hopefully that hasn't been shipped yet so you can add that
 condition if needed.  
 
 UPGRADEFOUND is set in the incoming newer product when it detects that
 that a previous product exists and will be upgraded. 
 
 
 Phil Wilson 
 

-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/CustomAction-on-Uninstall-but-not-upgrade-tp5232029p5232349.html
Sent from the wix-users mailing list archive at Nabble.com.

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] CustomAction on Uninstall but not upgrade

2010-06-28 Thread cge

Looks like this is the ticket:

Installed AND REMOVE=ALL AND NOT UPGRADINGPRODUCTCODE
-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/CustomAction-on-Uninstall-but-not-upgrade-tp5232029p5232458.html
Sent from the wix-users mailing list archive at Nabble.com.

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] CustomAction on Uninstall but not upgrade

2010-06-28 Thread Sanjay Rao
use condition

(NOT UPGRADINGPRODUCTCODE) AND (REMOVE=ALL)

cge wrote:
 I have a custom action that should only run on uninstall, but not run during
 an upgrade. After browsing the list archives and other sites, I came up with
 the following:

   Custom Action='SetUnDeployParams'
 After='MsiUnpublishAssemblies'Installed AND (REMOVE=ALL) AND NOT
 (UPGRADEFOUND OR UPGRADINGPRODUCTCODE)/Custom
   Custom Action='UnDeploy' After='SetUnDeployParams'Installed AND
 (REMOVE=ALL) AND NOT (UPGRADEFOUND OR UPGRADINGPRODUCTCODE)/Custom


 But the action is still being run during an upgrade. I can't figure out why,
 given these log exerpts:

 MSI (c) (AC:34) [13:59:18:455]: Doing action: FindRelatedProducts
 Action 13:59:18: FindRelatedProducts. Searching for related applications
 Action start 13:59:18: FindRelatedProducts.
 FindRelatedProducts: Found application:
 {4EBE949A-5DEE-11DF-A3C0-4BE0DED72085}
 MSI (c) (AC:34) [13:59:18:455]: PROPERTY CHANGE: Adding UPGRADEFOUND
 property. Its value is '{4EBE949A-5DEE-11DF-A3C0-4BE0DED72085}'.
 Action ended 13:59:18: FindRelatedProducts. Return value 1.
 ...
 MSI (s) (18:C0) [13:59:21:267]: PROPERTY CHANGE: Adding UPGRADINGPRODUCTCODE
 property. Its value is '{C17B34D1-C56E-4BD7-8E2F-D20B06902E17}'.
 ...
 Action ended 13:59:21: MsiUnpublishAssemblies. Return value 0.
 MSI (s) (18:C0) [13:59:21:314]: Doing action: SetUnDeployParams
 Action 13:59:21: SetUnDeployParams. 
 Action start 13:59:21: SetUnDeployParams.



   




--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users