Tweaking RemoveExistingProducts depending on user input

7 messages Options
Embed this post
Permalink
Frank Neumann

Tweaking RemoveExistingProducts depending on user input

Reply Threaded More More options
Print post
Permalink
Our installer uses major upgrades as described in many Wix documents.
I would like to add a little more comfort to the installer by giving the users the following choices:

1. Uninstall the previous major version (4.0) during install of 5.0 or
2. Have 4.0 and 5.0 installed side by side

The install packages for 4.0 and 5.0 use different upgrade codes.

Is there a way to tweak "RemoveExistingProducts" by user input?

Best regards,

Frank

_______________________________________________________________
Neu: WEB.DE DSL bis 50.000 kBit/s und 200,- Euro Startguthaben!
http://produkte.web.de/go/02/


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Blair-2

Re: Tweaking RemoveExistingProducts depending on user input

Reply Threaded More More options
Print post
Permalink
Why do 4.0 and 5.0 use different UpgradeCodes? Generally your entire
product-series should have the same UpgradeCode. It makes things like
downgrade detection easier, and reduces the amount of stuff you have to keep
track of over time.

You can place a condition on the RemoveExistingProducts action which will
either allow or block the action in its entirety.

<InstallExecuteSequence><RemoveExistingProducts
...>condition</RemoveExistingProducts></InstallExecuteSequence>

where "..." is your Before/After/Sequence attribute and "condition" is the
condition you wish to use to enable/disable that action.

Be sure to make any/all properties secure that you use in your condition
that need to be passed either from the UI or the command-line.

-----Original Message-----
From: Frank Neumann [mailto:[hidden email]]
Sent: Friday, October 30, 2009 9:53 AM
To: [hidden email]
Subject: [WiX-users] Tweaking RemoveExistingProducts depending on user input

Our installer uses major upgrades as described in many Wix documents.
I would like to add a little more comfort to the installer by giving the
users the following choices:

1. Uninstall the previous major version (4.0) during install of 5.0 or
2. Have 4.0 and 5.0 installed side by side

The install packages for 4.0 and 5.0 use different upgrade codes.

Is there a way to tweak "RemoveExistingProducts" by user input?

Best regards,

Frank

_______________________________________________________________
Neu: WEB.DE DSL bis 50.000 kBit/s und 200,- Euro Startguthaben!
http://produkte.web.de/go/02/


----------------------------------------------------------------------------
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Kalev Lember

Re: Tweaking RemoveExistingProducts depending on user input

Reply Threaded More More options
Print post
Permalink
Hello,

Is it somehow possible to schedule RemoveExistingProducts at a different
time depending on a condition?

For example, I tried to do the following:
     <InstallExecuteSequence>
         <FindRelatedProducts Before="LaunchConditions" />
         <RemoveExistingProducts After="InstallValidate">
             SOME_CONDITION
         </RemoveExistingProducts>

         <RemoveExistingProducts After="InstallFinalize">
             NOT (SOME_CONDITION)
         </RemoveExistingProducts>
     </InstallExecuteSequence>

But got error LGHT0091 : Duplicate symbol 'WixAction:Install
ExecuteSequence/RemoveExistingProducts' found.

Am I trying to do something that's not supposed to work that way? The
reason why I wanted to schedule it in a different place depending on a
condition was that I might need to uninstall a very old product that has
very different components/guids than the new package. Uninstalling the
very old product after the new one gets installed
(After="InstallFinalize") has the side effect of deleting a few registry
entries. I would like to
a) schedule RemoveExistingProducts at an earlier time only in case the
very old product is detected, and
b) schedule RemoveExistingProducts after InstallFinalize in case we are
upgrading a newer product

Any ideas how to archive that? Of course I could just schedule
RemoveExistingProducts After="InstallValidate", but then upgrading newer
products gets very slow.

P.S. I'm talking about major upgrades.

--
Thanks,
Kalev


On 10/30/2009 09:22 PM, Blair wrote:

> Why do 4.0 and 5.0 use different UpgradeCodes? Generally your entire
> product-series should have the same UpgradeCode. It makes things like
> downgrade detection easier, and reduces the amount of stuff you have to keep
> track of over time.
>
> You can place a condition on the RemoveExistingProducts action which will
> either allow or block the action in its entirety.
>
> <InstallExecuteSequence><RemoveExistingProducts
> ...>condition</RemoveExistingProducts></InstallExecuteSequence>
>
> where "..." is your Before/After/Sequence attribute and "condition" is the
> condition you wish to use to enable/disable that action.
>
> Be sure to make any/all properties secure that you use in your condition
> that need to be passed either from the UI or the command-line.
>
> -----Original Message-----
> From: Frank Neumann [mailto:[hidden email]]
> Sent: Friday, October 30, 2009 9:53 AM
> To: [hidden email]
> Subject: [WiX-users] Tweaking RemoveExistingProducts depending on user input
>
> Our installer uses major upgrades as described in many Wix documents.
> I would like to add a little more comfort to the installer by giving the
> users the following choices:
>
> 1. Uninstall the previous major version (4.0) during install of 5.0 or
> 2. Have 4.0 and 5.0 installed side by side
>
> The install packages for 4.0 and 5.0 use different upgrade codes.
>
> Is there a way to tweak "RemoveExistingProducts" by user input?
>
> Best regards,
>
> Frank
>
> _______________________________________________________________
> Neu: WEB.DE DSL bis 50.000 kBit/s und 200,- Euro Startguthaben!
> http://produkte.web.de/go/02/
>
>
> ----------------------------------------------------------------------------
> --
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> WiX-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> WiX-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Sunkesula, Srivardhan

service window open issue

Reply Threaded More More options
Print post
Permalink
Hi,

  I have an issue with uninstalling my product, when services window is
open.
  Installer gives a message to close the services window before
uninstall.
  Can this be avoided?


Thanks & Regards,
Srivardhan.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
salever.lee

Re: service window open issue

Reply Threaded More More options
Print post
Permalink
In reply to this post by Kalev Lember
Hi,
  Msi needs Windows Installer Service to finish installation, and two installation programs can not run at the same time.
I guess there is something relative to your issue.

2009-11-16



salever.lee



发件人: Sunkesula, Srivardhan
发送时间: 2009-11-16  12:48:33
收件人: General discussion for Windows Installer XML toolset.
抄送:
主题: [WiX-users] service window open issue
 
Hi,
  I have an issue with uninstalling my product, when services window is
open.
  Installer gives a message to close the services window before
uninstall.
  Can this be avoided?
Thanks & Regards,
Srivardhan.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Wilson, Phil

Re: service window open issue

Reply Threaded More More options
Print post
Permalink
In reply to this post by Sunkesula, Srivardhan
Not easily, no, and not from the MSI uninstall dialog.  It's a standard FilesInUse dialog, and I think that Windows will show its own even if you don't have one in your MSI file. Why is this an issue anyway? Do you want it done automatically? The alternative might be a reboot to clean up the system, generally a much worse user experience than just closing down an app that is being uninstalled anyway.

Phil Wilson

-----Original Message-----
From: Sunkesula, Srivardhan [mailto:[hidden email]]
Sent: Sunday, November 15, 2009 8:43 PM
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] service window open issue

Hi,

  I have an issue with uninstalling my product, when services window is
open.
  Installer gives a message to close the services window before
uninstall.
  Can this be avoided?


Thanks & Regards,
Srivardhan.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
[hidden email]
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=77&nav_id=80&prev_id=77. You may contact Invensys plc on +44 (0)20 7821 3848 or e-mail [hidden email]. 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).



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Bob Arnson-6

Re: Tweaking RemoveExistingProducts depending on user input

Reply Threaded More More options
Print post
Permalink
In reply to this post by Kalev Lember
Kalev Lember wrote:
> Am I trying to do something that's not supposed to work that way?

Actions can be scheduled only once in any sequence.

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



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users