Re: [WiX-users] UI upgrade succeeds, but silent upgrade fails

2012-09-21 Thread Peter Shirtcliffe
Are you mixing up minor and major upgrades ?
Major upgrades use the upgrade table and replace the old product with the new
one. You don't specify REINSTALL or REINSTALLMODE on the command line. The
upgrade code should be the same and the product code  and version different.
Minor upgrades repair and update the existing installation using a new
version of the MSI. You do use REINSTALL and REINSTALLMODE but the upgrade
table is not used. The upgrade code should be the same and the product code
too: only the version differs.
The MajorUpgrade element is just a convenient shorthand for using the upgrade
table. You can leave it commented out for now.

-Original Message-
From: Alec [mailto:alecs...@gmail.com] 
Sent: 21 September 2012 04:30
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] UI upgrade succeeds, but silent upgrade fails

I tried silently upgrading 19.0.1 on top of 18.3 with the following code
snippet:

Upgrade Id=E8805AF3-CF50-4092-BE57-220A8C51E2AA
  UpgradeVersion OnlyDetect=yes Minimum=19.0.1
IncludeMinimum=no Property=NEWERVERSIONDETECTED/  UpgradeVersion
OnlyDetect=no Maximum=19.0.1 IncludeMaximum=no
Minimum=18.0.0 IncludeMinimum=yes
Property=OLDERVERSIONBEINGUPGRADED/
/Upgrade

CustomActionRef Id=WixExitEarlyWithSuccess/

InstallExecuteSequence
  RemoveExistingProducts After=InstallInitialize/

  
  Custom Action='PrepareForInstall' After='InstallInitialize'NOT Installed
AND NOT UPGRADINGPRODUCTCODE/Custom
  Custom Action='SetJavawPath' Before='InstallServices'NOT
Installed/Custom
  Custom Action=Upgrader After=InstallHelperActionNOT
Installed/Custom /InstallExecuteSequence

The log file has the following entries:

Doing action: FindRelatedProducts
Action start 12:01:15: FindRelatedProducts.
PROPERTY CHANGE: Adding OLDERVERSIONBEINGUPGRADED property. Its value is
'{4B43BAEB-553B-4FAD-9219-C55DA3492D89}'.
Skipping action: WixExitEarlyWithSuccess (condition is false)
Doing action: AppSearch
FindRelatedProducts. Return value 1.
AppSearch.
...
Windows Installer installed the product. ... Product Version:
19.0.1. Product Language: 1033. .. Installation success or error
status: 0.

It looks like upgrade should have succeeded, but in reality 18.3 is there and
19.0.1 is not.

I noticed that we have MajorUpgrade element commented out (see above).
Should it be uncommented? (Sorry I don't work with WIX a whole lot).

Thanks,

Alec



--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/UI-upgrade-succ
eeds-but-silent-upgrade-fails-tp7580671p7580716.html
Sent from the wix-users mailing list archive at Nabble.com.

-
-
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
SDL PLC confidential, all rights reserved.
If you are not the intended recipient of this mail SDL requests and requires 
that you delete it without acting upon or copying any of its contents, and we 
further request that you advise us.
SDL PLC is a public limited company registered in England and Wales.  
Registered number: 02675207.
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, 
UK.


--
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] UI upgrade succeeds, but silent upgrade fails

2012-09-21 Thread Alec Swan
Thank you for clarifying this for me, Peter!

I ran the MSI without REINSTALL and REINSTALLMODE and it worked like a charm!
Your explanation was perfect and Rob's response provided further
clarifications on this page
http://stackoverflow.com/questions/526707/major-vs-minor-upgrade-in-windows-installer

Thanks,

Alec

On Fri, Sep 21, 2012 at 3:04 AM, Peter Shirtcliffe pshirtcli...@sdl.com wrote:
 Are you mixing up minor and major upgrades ?
 Major upgrades use the upgrade table and replace the old product with the new
 one. You don't specify REINSTALL or REINSTALLMODE on the command line. The
 upgrade code should be the same and the product code  and version different.
 Minor upgrades repair and update the existing installation using a new
 version of the MSI. You do use REINSTALL and REINSTALLMODE but the upgrade
 table is not used. The upgrade code should be the same and the product code
 too: only the version differs.
 The MajorUpgrade element is just a convenient shorthand for using the upgrade
 table. You can leave it commented out for now.

 -Original Message-
 From: Alec [mailto:alecs...@gmail.com]
 Sent: 21 September 2012 04:30
 To: wix-users@lists.sourceforge.net
 Subject: Re: [WiX-users] UI upgrade succeeds, but silent upgrade fails

 I tried silently upgrading 19.0.1 on top of 18.3 with the following code
 snippet:

 Upgrade Id=E8805AF3-CF50-4092-BE57-220A8C51E2AA
   UpgradeVersion OnlyDetect=yes Minimum=19.0.1
 IncludeMinimum=no Property=NEWERVERSIONDETECTED/  UpgradeVersion
 OnlyDetect=no Maximum=19.0.1 IncludeMaximum=no
 Minimum=18.0.0 IncludeMinimum=yes
 Property=OLDERVERSIONBEINGUPGRADED/
 /Upgrade

 CustomActionRef Id=WixExitEarlyWithSuccess/

 InstallExecuteSequence
   RemoveExistingProducts After=InstallInitialize/


   Custom Action='PrepareForInstall' After='InstallInitialize'NOT Installed
 AND NOT UPGRADINGPRODUCTCODE/Custom
   Custom Action='SetJavawPath' Before='InstallServices'NOT
 Installed/Custom
   Custom Action=Upgrader After=InstallHelperActionNOT
 Installed/Custom /InstallExecuteSequence

 The log file has the following entries:

 Doing action: FindRelatedProducts
 Action start 12:01:15: FindRelatedProducts.
 PROPERTY CHANGE: Adding OLDERVERSIONBEINGUPGRADED property. Its value is
 '{4B43BAEB-553B-4FAD-9219-C55DA3492D89}'.
 Skipping action: WixExitEarlyWithSuccess (condition is false)
 Doing action: AppSearch
 FindRelatedProducts. Return value 1.
 AppSearch.
 ...
 Windows Installer installed the product. ... Product Version:
 19.0.1. Product Language: 1033. .. Installation success or error
 status: 0.

 It looks like upgrade should have succeeded, but in reality 18.3 is there and
 19.0.1 is not.

 I noticed that we have MajorUpgrade element commented out (see above).
 Should it be uncommented? (Sorry I don't work with WIX a whole lot).

 Thanks,

 Alec



 --
 View this message in context:
 http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/UI-upgrade-succ
 eeds-but-silent-upgrade-fails-tp7580671p7580716.html
 Sent from the wix-users mailing list archive at Nabble.com.

 -
 -
 Got visibility?
 Most devs has no idea what their production app looks like.
 Find out how fast your code is with AppDynamics Lite.
 http://ad.doubleclick.net/clk;262219671;13503038;y?
 http://info.appdynamics.com/FreeJavaPerformanceDownload.html
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users
 SDL PLC confidential, all rights reserved.
 If you are not the intended recipient of this mail SDL requests and requires 
 that you delete it without acting upon or copying any of its contents, and we 
 further request that you advise us.
 SDL PLC is a public limited company registered in England and Wales.  
 Registered number: 02675207.
 Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 
 7DY, UK.


 --
 Got visibility?
 Most devs has no idea what their production app looks like.
 Find out how fast your code is with AppDynamics Lite.
 http://ad.doubleclick.net/clk;262219671;13503038;y?
 http://info.appdynamics.com/FreeJavaPerformanceDownload.html
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users

--
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix

Re: [WiX-users] UI upgrade succeeds, but silent upgrade fails

2012-09-20 Thread Peter Shirtcliffe
One caveat if you follow Neil's advice. WixExitEarlyWithSuccess doesn't work
completely seamlessly with MajorUpgrade. See
http://sourceforge.net/p/wix/feature-requests/626/
The workaround is to schedule the CA yourself with this condition in the
install sequences:

Custom Action=WixExitEarlyWithSuccess
After=FindRelatedProductsWIX_DOWNGRADE_DETECTED/Custom

-Original Message-
From: Neil Sleightholm [mailto:n...@x2systems.com] 
Sent: 19 September 2012 22:29
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] UI upgrade succeeds, but silent upgrade fails

You might want to look at the MajorUpgrade element
http://wix.sourceforge.net/manual-wix3/major_upgrade.htm it makes it easier
to implement upgrades.

Neil

-Original Message-
From: Alec [mailto:alecs...@gmail.com]
Sent: 19 September 2012 22:12
To: wix-users@lists.sourceforge.net
Subject: -SPAM- Re: [WiX-users] UI upgrade succeeds, but silent
upgrade fails

I took that Upgrade snippet from Rob's answer on
http://stackoverflow.com/a/724098.

Let me try this with Minimum set.

Thanks,

Alec

On Wed, Sep 19, 2012 at 3:09 PM, Hoover, Jacob [via Windows Installer XML
(WiX) toolset] ml-node+s687559n7580675...@n2.nabble.com wrote:
 Hmm, I think you are missing a minimum on OlderVerionBeingUpgraded

 !-- This information enables Windows Installer major upgrade 
 functionality so users can seamlessly  --
 !-- install a new version of the product and have the old version
 automatically uninstall behind--
 !-- the scenes. See the following topic in the MSDN Library for
 additional information: --
 !--
 http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/s
 etup/major_upgrades.asp
 --
 Upgrade Id=$(var.UpgradeCode)
   UpgradeVersion Minimum=$(var.ProductVersion) IncludeMinimum=no
 OnlyDetect=yes Property=NEWERVERSION_INSTALLED /
   UpgradeVersion Minimum=0.0.0 IncludeMinimum=yes
   Maximum=$(var.ProductVersion) IncludeMaximum=no
   Property=OLDERVERSION_BEINGUPGRADED
 MigrateFeatures=yes /
 /Upgrade

 As far as App Compat, I was talking in the logs.


 In you logs, it looks as if your ProductCode hasn't changed between the
two?
 (The product code should only be the same if you are doing a minor
 update.)

 -Original Message-
 From: Alec Swan [mailto:[hidden email]]
 Sent: Wednesday, September 19, 2012 3:57 PM
 To: General discussion for Windows Installer XML toolset.
 Subject: Re: [WiX-users] UI upgrade succeeds, but silent upgrade fails

 We are trying to upgrade from 18.3 to 19.0.1.

 Here is the upgrade code:
 Upgrade Id=E8805AF3-CF50-4092-BE57-220A8C51E2AA
   UpgradeVersion OnlyDetect=no Minimum=18.0.1 IncludeMinimum=no
 Property=NEWERVERSIONDETECTED/
   UpgradeVersion OnlyDetect=no Maximum=19.0.1 IncludeMaximum=no
 Property=OLDERVERSIONBEINGUPGRADED/
 /Upgrade

 How do we ignore APPCOMPAT? Do you need any other info?

 Thanks,

 Alec

 On Wed, Sep 19, 2012 at 2:50 PM, Hoover, Jacob [hidden email] wrote:

 Ignore the APPCOMPAT.

 What does your Upgrade table look like? What are the versions of the 
 old and new MSI?

 -Original Message-
 From: Alec Swan [mailto:[hidden email]]
 Sent: Wednesday, September 19, 2012 2:49 PM
 To: General discussion for Windows Installer XML toolset.
 Subject: [WiX-users] UI upgrade succeeds, but silent upgrade fails

 Hello,

 We are testing upgrade from an older version to the version we are 
 about to release. We noticed that upgrading msiexec.exe /i my.msi
 successfully upgrades the old product files with the new ones.
 However, silently installing with the following command fails:
 msiexec.exe /i my.msi REINSTALL=ALL REINSTALLMODE=vomus /qn

 The log file generated during silent upgrade contains the following
 messages:

 APPCOMPAT: looking for appcompat database entry with ProductCode 
 '{15E9E02D-8660-41B3-9373-3E427A392478}'.
 APPCOMPAT: no matching ProductCode found in database.
 ..
 FindRelatedProducts.
 PROPERTY CHANGE: Adding OLDERVERSIONBEINGUPGRADED property. Its value 
 is '{4B43BAEB-553B-4FAD-9219-C55DA3492D89}'.
 PROPERTY CHANGE: Adding NEWERVERSIONDETECTED property. Its value is 
 '{4B43BAEB-553B-4FAD-9219-C55DA3492D89}'.
 Doing action: WixExitEarlyWithSuccess FindRelatedProducts. Return 
 value 1.

 Does this mean that installer is not finding the previous product 
 version and hence doesn't uninstall it? If so, why would UI upgrade work?

 I also noticed that we didn't have Package Id specified in the WXS 
 file for the old product. However, we did specify the same Product 
 UpgradeCode in the old and new versions. Is this sufficient?

 Thanks,

 Alec

 -
 -
 
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and 
 threat landscape has changed and how IT managers can respond.
 Discussions will include endpoint security

Re: [WiX-users] UI upgrade succeeds, but silent upgrade fails

2012-09-20 Thread Alec Swan
I tried silently upgrading 19.0.1 on top of 18.3 with the following
code snippet:

Upgrade Id=E8805AF3-CF50-4092-BE57-220A8C51E2AA
  UpgradeVersion OnlyDetect=yes Minimum=19.0.1
IncludeMinimum=no Property=NEWERVERSIONDETECTED/
 UpgradeVersion OnlyDetect=no Maximum=19.0.1 IncludeMaximum=no
Minimum=18.0.0 IncludeMinimum=yes
Property=OLDERVERSIONBEINGUPGRADED/
/Upgrade
!--MajorUpgrade Schedule=afterInstallInitialize
AllowSameVersionUpgrades=yes/--
CustomActionRef Id=WixExitEarlyWithSuccess/

InstallExecuteSequence
  RemoveExistingProducts After=InstallInitialize/

  !-- These are our custom actions --
  Custom Action='PrepareForInstall' After='InstallInitialize'NOT
Installed AND NOT UPGRADINGPRODUCTCODE/Custom
  Custom Action='SetJavawPath' Before='InstallServices'NOT Installed/Custom
  Custom Action=Upgrader After=InstallHelperActionNOT Installed/Custom
/InstallExecuteSequence

The log file has the following entries:

Doing action: FindRelatedProducts
Action start 12:01:15: FindRelatedProducts.
PROPERTY CHANGE: Adding OLDERVERSIONBEINGUPGRADED property. Its
value is '{4B43BAEB-553B-4FAD-9219-C55DA3492D89}'.
Skipping action: WixExitEarlyWithSuccess (condition is false)
Doing action: AppSearch
FindRelatedProducts. Return value 1.
AppSearch.
...
Windows Installer installed the product. ... Product Version:
19.0.1. Product Language: 1033. .. Installation success or error
status: 0.

It looks like upgrade should have succeeded, but in reality 18.3 is
there and 19.0.1 is not.

I noticed that we have MajorUpgrade element commented out (see
above). Should it be uncommented? (Sorry I don't work with WIX a whole
lot).

Thanks,

Alec

On Thu, Sep 20, 2012 at 3:15 AM, Peter Shirtcliffe pshirtcli...@sdl.com wrote:
 One caveat if you follow Neil's advice. WixExitEarlyWithSuccess doesn't work
 completely seamlessly with MajorUpgrade. See
 http://sourceforge.net/p/wix/feature-requests/626/
 The workaround is to schedule the CA yourself with this condition in the
 install sequences:

 Custom Action=WixExitEarlyWithSuccess
 After=FindRelatedProductsWIX_DOWNGRADE_DETECTED/Custom

 -Original Message-
 From: Neil Sleightholm [mailto:n...@x2systems.com]
 Sent: 19 September 2012 22:29
 To: General discussion for Windows Installer XML toolset.
 Subject: Re: [WiX-users] UI upgrade succeeds, but silent upgrade fails

 You might want to look at the MajorUpgrade element
 http://wix.sourceforge.net/manual-wix3/major_upgrade.htm it makes it easier
 to implement upgrades.

 Neil

 -Original Message-
 From: Alec [mailto:alecs...@gmail.com]
 Sent: 19 September 2012 22:12
 To: wix-users@lists.sourceforge.net
 Subject: -SPAM- Re: [WiX-users] UI upgrade succeeds, but silent
 upgrade fails

 I took that Upgrade snippet from Rob's answer on
 http://stackoverflow.com/a/724098.

 Let me try this with Minimum set.

 Thanks,

 Alec

 On Wed, Sep 19, 2012 at 3:09 PM, Hoover, Jacob [via Windows Installer XML
 (WiX) toolset] ml-node+s687559n7580675...@n2.nabble.com wrote:
 Hmm, I think you are missing a minimum on OlderVerionBeingUpgraded

 !-- This information enables Windows Installer major upgrade
 functionality so users can seamlessly  --
 !-- install a new version of the product and have the old version
 automatically uninstall behind--
 !-- the scenes. See the following topic in the MSDN Library for
 additional information: --
 !--
 http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/s
 etup/major_upgrades.asp
 --
 Upgrade Id=$(var.UpgradeCode)
   UpgradeVersion Minimum=$(var.ProductVersion) IncludeMinimum=no
 OnlyDetect=yes Property=NEWERVERSION_INSTALLED /
   UpgradeVersion Minimum=0.0.0 IncludeMinimum=yes
   Maximum=$(var.ProductVersion) IncludeMaximum=no
   Property=OLDERVERSION_BEINGUPGRADED
 MigrateFeatures=yes /
 /Upgrade

 As far as App Compat, I was talking in the logs.


 In you logs, it looks as if your ProductCode hasn't changed between the
 two?
 (The product code should only be the same if you are doing a minor
 update.)

 -Original Message-
 From: Alec Swan [mailto:[hidden email]]
 Sent: Wednesday, September 19, 2012 3:57 PM
 To: General discussion for Windows Installer XML toolset.
 Subject: Re: [WiX-users] UI upgrade succeeds, but silent upgrade fails

 We are trying to upgrade from 18.3 to 19.0.1.

 Here is the upgrade code:
 Upgrade Id=E8805AF3-CF50-4092-BE57-220A8C51E2AA
   UpgradeVersion OnlyDetect=no Minimum=18.0.1 IncludeMinimum=no
 Property=NEWERVERSIONDETECTED/
   UpgradeVersion OnlyDetect=no Maximum=19.0.1 IncludeMaximum=no
 Property=OLDERVERSIONBEINGUPGRADED/
 /Upgrade

 How do we ignore APPCOMPAT? Do you need any other info?

 Thanks,

 Alec

 On Wed, Sep 19, 2012 at 2:50 PM, Hoover, Jacob [hidden email] wrote:

 Ignore the APPCOMPAT.

 What does your Upgrade table look like? What are the versions of the
 old and new MSI?

 -Original

Re: [WiX-users] UI upgrade succeeds, but silent upgrade fails

2012-09-20 Thread Alec
I tried silently upgrading 19.0.1 on top of 18.3 with the following
code snippet:

Upgrade Id=E8805AF3-CF50-4092-BE57-220A8C51E2AA
  UpgradeVersion OnlyDetect=yes Minimum=19.0.1
IncludeMinimum=no Property=NEWERVERSIONDETECTED/
 UpgradeVersion OnlyDetect=no Maximum=19.0.1 IncludeMaximum=no
Minimum=18.0.0 IncludeMinimum=yes
Property=OLDERVERSIONBEINGUPGRADED/
/Upgrade

CustomActionRef Id=WixExitEarlyWithSuccess/

InstallExecuteSequence
  RemoveExistingProducts After=InstallInitialize/

  
  Custom Action='PrepareForInstall' After='InstallInitialize'NOT
Installed AND NOT UPGRADINGPRODUCTCODE/Custom
  Custom Action='SetJavawPath' Before='InstallServices'NOT
Installed/Custom
  Custom Action=Upgrader After=InstallHelperActionNOT
Installed/Custom
/InstallExecuteSequence

The log file has the following entries:

Doing action: FindRelatedProducts
Action start 12:01:15: FindRelatedProducts.
PROPERTY CHANGE: Adding OLDERVERSIONBEINGUPGRADED property. Its
value is '{4B43BAEB-553B-4FAD-9219-C55DA3492D89}'.
Skipping action: WixExitEarlyWithSuccess (condition is false)
Doing action: AppSearch
FindRelatedProducts. Return value 1.
AppSearch.
...
Windows Installer installed the product. ... Product Version:
19.0.1. Product Language: 1033. .. Installation success or error
status: 0.

It looks like upgrade should have succeeded, but in reality 18.3 is
there and 19.0.1 is not.

I noticed that we have MajorUpgrade element commented out (see
above). Should it be uncommented? (Sorry I don't work with WIX a whole
lot).

Thanks,

Alec



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/UI-upgrade-succeeds-but-silent-upgrade-fails-tp7580671p7580716.html
Sent from the wix-users mailing list archive at Nabble.com.

--
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] UI upgrade succeeds, but silent upgrade fails

2012-09-19 Thread Alec Swan
Hello,

We are testing upgrade from an older version to the version we are
about to release. We noticed that upgrading msiexec.exe /i my.msi
successfully upgrades the old product files with the new ones.
However, silently installing with the following command fails:
msiexec.exe /i my.msi REINSTALL=ALL REINSTALLMODE=vomus /qn

The log file generated during silent upgrade contains the following messages:

APPCOMPAT: looking for appcompat database entry with ProductCode
'{15E9E02D-8660-41B3-9373-3E427A392478}'.
APPCOMPAT: no matching ProductCode found in database.
..
FindRelatedProducts.
PROPERTY CHANGE: Adding OLDERVERSIONBEINGUPGRADED property. Its value
is '{4B43BAEB-553B-4FAD-9219-C55DA3492D89}'.
PROPERTY CHANGE: Adding NEWERVERSIONDETECTED property. Its value is
'{4B43BAEB-553B-4FAD-9219-C55DA3492D89}'.
Doing action: WixExitEarlyWithSuccess
FindRelatedProducts. Return value 1.

Does this mean that installer is not finding the previous product
version and hence doesn't uninstall it? If so, why would UI upgrade
work?

I also noticed that we didn't have Package Id specified in the WXS
file for the old product. However, we did specify the same Product
UpgradeCode in the old and new versions. Is this sufficient?

Thanks,

Alec

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] UI upgrade succeeds, but silent upgrade fails

2012-09-19 Thread Alec
I just verified with QA that both UI AND silent upgrades fail, which I
believe is caused by the absence of Package Id in the old product version.

So, the question now is if there is a way to automatically uninstall the old
version of the product without Package Id when upgrading to the new product
version with Package Id?

Thanks,

Alec



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/UI-upgrade-succeeds-but-silent-upgrade-fails-tp7580671p7580672.html
Sent from the wix-users mailing list archive at Nabble.com.

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] UI upgrade succeeds, but silent upgrade fails

2012-09-19 Thread Hoover, Jacob
Ignore the APPCOMPAT.

What does your Upgrade table look like? What are the versions of the old and 
new MSI?

-Original Message-
From: Alec Swan [mailto:alecs...@gmail.com] 
Sent: Wednesday, September 19, 2012 2:49 PM
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] UI upgrade succeeds, but silent upgrade fails

Hello,

We are testing upgrade from an older version to the version we are about to 
release. We noticed that upgrading msiexec.exe /i my.msi
successfully upgrades the old product files with the new ones.
However, silently installing with the following command fails:
msiexec.exe /i my.msi REINSTALL=ALL REINSTALLMODE=vomus /qn

The log file generated during silent upgrade contains the following messages:

APPCOMPAT: looking for appcompat database entry with ProductCode 
'{15E9E02D-8660-41B3-9373-3E427A392478}'.
APPCOMPAT: no matching ProductCode found in database.
..
FindRelatedProducts.
PROPERTY CHANGE: Adding OLDERVERSIONBEINGUPGRADED property. Its value is 
'{4B43BAEB-553B-4FAD-9219-C55DA3492D89}'.
PROPERTY CHANGE: Adding NEWERVERSIONDETECTED property. Its value is 
'{4B43BAEB-553B-4FAD-9219-C55DA3492D89}'.
Doing action: WixExitEarlyWithSuccess
FindRelatedProducts. Return value 1.

Does this mean that installer is not finding the previous product version and 
hence doesn't uninstall it? If so, why would UI upgrade work?

I also noticed that we didn't have Package Id specified in the WXS file for the 
old product. However, we did specify the same Product UpgradeCode in the old 
and new versions. Is this sufficient?

Thanks,

Alec

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and threat 
landscape has changed and how IT managers can respond. Discussions will include 
endpoint security, mobile security and the latest in malware threats. 
http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] UI upgrade succeeds, but silent upgrade fails

2012-09-19 Thread Alec Swan
We are trying to upgrade from 18.3 to 19.0.1.

Here is the upgrade code:
Upgrade Id=E8805AF3-CF50-4092-BE57-220A8C51E2AA
  UpgradeVersion OnlyDetect=no Minimum=18.0.1 IncludeMinimum=no
Property=NEWERVERSIONDETECTED/
  UpgradeVersion OnlyDetect=no Maximum=19.0.1 IncludeMaximum=no
Property=OLDERVERSIONBEINGUPGRADED/
/Upgrade

How do we ignore APPCOMPAT? Do you need any other info?

Thanks,

Alec

On Wed, Sep 19, 2012 at 2:50 PM, Hoover, Jacob
jacob.hoo...@greenheck.com wrote:
 Ignore the APPCOMPAT.

 What does your Upgrade table look like? What are the versions of the old and 
 new MSI?

 -Original Message-
 From: Alec Swan [mailto:alecs...@gmail.com]
 Sent: Wednesday, September 19, 2012 2:49 PM
 To: General discussion for Windows Installer XML toolset.
 Subject: [WiX-users] UI upgrade succeeds, but silent upgrade fails

 Hello,

 We are testing upgrade from an older version to the version we are about to 
 release. We noticed that upgrading msiexec.exe /i my.msi
 successfully upgrades the old product files with the new ones.
 However, silently installing with the following command fails:
 msiexec.exe /i my.msi REINSTALL=ALL REINSTALLMODE=vomus /qn

 The log file generated during silent upgrade contains the following messages:

 APPCOMPAT: looking for appcompat database entry with ProductCode 
 '{15E9E02D-8660-41B3-9373-3E427A392478}'.
 APPCOMPAT: no matching ProductCode found in database.
 ..
 FindRelatedProducts.
 PROPERTY CHANGE: Adding OLDERVERSIONBEINGUPGRADED property. Its value is 
 '{4B43BAEB-553B-4FAD-9219-C55DA3492D89}'.
 PROPERTY CHANGE: Adding NEWERVERSIONDETECTED property. Its value is 
 '{4B43BAEB-553B-4FAD-9219-C55DA3492D89}'.
 Doing action: WixExitEarlyWithSuccess
 FindRelatedProducts. Return value 1.

 Does this mean that installer is not finding the previous product version and 
 hence doesn't uninstall it? If so, why would UI upgrade work?

 I also noticed that we didn't have Package Id specified in the WXS file for 
 the old product. However, we did specify the same Product UpgradeCode in the 
 old and new versions. Is this sufficient?

 Thanks,

 Alec

 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and threat 
 landscape has changed and how IT managers can respond. Discussions will 
 include endpoint security, mobile security and the latest in malware threats. 
 http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users

 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] UI upgrade succeeds, but silent upgrade fails

2012-09-19 Thread Hoover, Jacob
Hmm, I think you are missing a minimum on OlderVerionBeingUpgraded

!-- This information enables Windows Installer major upgrade functionality 
so users can seamlessly  --
!-- install a new version of the product and have the old version 
automatically uninstall behind--
!-- the scenes. See the following topic in the MSDN Library for additional 
information: --
!-- 
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/major_upgrades.asp
   --
Upgrade Id=$(var.UpgradeCode)
  UpgradeVersion Minimum=$(var.ProductVersion) IncludeMinimum=no 
OnlyDetect=yes Property=NEWERVERSION_INSTALLED /
  UpgradeVersion Minimum=0.0.0 IncludeMinimum=yes
  Maximum=$(var.ProductVersion) IncludeMaximum=no
  Property=OLDERVERSION_BEINGUPGRADED 
MigrateFeatures=yes /
/Upgrade

As far as App Compat, I was talking in the logs.


In you logs, it looks as if your ProductCode hasn't changed between the two? 
(The product code should only be the same if you are doing a minor update.)

-Original Message-
From: Alec Swan [mailto:alecs...@gmail.com] 
Sent: Wednesday, September 19, 2012 3:57 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] UI upgrade succeeds, but silent upgrade fails

We are trying to upgrade from 18.3 to 19.0.1.

Here is the upgrade code:
Upgrade Id=E8805AF3-CF50-4092-BE57-220A8C51E2AA
  UpgradeVersion OnlyDetect=no Minimum=18.0.1 IncludeMinimum=no
Property=NEWERVERSIONDETECTED/
  UpgradeVersion OnlyDetect=no Maximum=19.0.1 IncludeMaximum=no
Property=OLDERVERSIONBEINGUPGRADED/
/Upgrade

How do we ignore APPCOMPAT? Do you need any other info?

Thanks,

Alec

On Wed, Sep 19, 2012 at 2:50 PM, Hoover, Jacob jacob.hoo...@greenheck.com 
wrote:
 Ignore the APPCOMPAT.

 What does your Upgrade table look like? What are the versions of the old and 
 new MSI?

 -Original Message-
 From: Alec Swan [mailto:alecs...@gmail.com]
 Sent: Wednesday, September 19, 2012 2:49 PM
 To: General discussion for Windows Installer XML toolset.
 Subject: [WiX-users] UI upgrade succeeds, but silent upgrade fails

 Hello,

 We are testing upgrade from an older version to the version we are about to 
 release. We noticed that upgrading msiexec.exe /i my.msi
 successfully upgrades the old product files with the new ones.
 However, silently installing with the following command fails:
 msiexec.exe /i my.msi REINSTALL=ALL REINSTALLMODE=vomus /qn

 The log file generated during silent upgrade contains the following messages:

 APPCOMPAT: looking for appcompat database entry with ProductCode 
 '{15E9E02D-8660-41B3-9373-3E427A392478}'.
 APPCOMPAT: no matching ProductCode found in database.
 ..
 FindRelatedProducts.
 PROPERTY CHANGE: Adding OLDERVERSIONBEINGUPGRADED property. Its value is 
 '{4B43BAEB-553B-4FAD-9219-C55DA3492D89}'.
 PROPERTY CHANGE: Adding NEWERVERSIONDETECTED property. Its value is 
 '{4B43BAEB-553B-4FAD-9219-C55DA3492D89}'.
 Doing action: WixExitEarlyWithSuccess
 FindRelatedProducts. Return value 1.

 Does this mean that installer is not finding the previous product version and 
 hence doesn't uninstall it? If so, why would UI upgrade work?

 I also noticed that we didn't have Package Id specified in the WXS file for 
 the old product. However, we did specify the same Product UpgradeCode in the 
 old and new versions. Is this sufficient?

 Thanks,

 Alec

 --
 
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and 
 threat landscape has changed and how IT managers can respond. 
 Discussions will include endpoint security, mobile security and the 
 latest in malware threats. 
 http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users

 --
 
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and 
 threat landscape has changed and how IT managers can respond. 
 Discussions will include endpoint security, mobile security and the 
 latest in malware threats. 
 http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and threat 
landscape has changed and how IT managers can respond. Discussions will include 
endpoint security, mobile security and the latest in malware threats. 
http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263

Re: [WiX-users] UI upgrade succeeds, but silent upgrade fails

2012-09-19 Thread Alec
I took that Upgrade snippet from Rob's answer on
http://stackoverflow.com/a/724098.

Let me try this with Minimum set.

Thanks,

Alec

On Wed, Sep 19, 2012 at 3:09 PM, Hoover, Jacob [via Windows Installer
XML (WiX) toolset] ml-node+s687559n7580675...@n2.nabble.com wrote:
 Hmm, I think you are missing a minimum on OlderVerionBeingUpgraded

 !-- This information enables Windows Installer major upgrade
 functionality so users can seamlessly  --
 !-- install a new version of the product and have the old version
 automatically uninstall behind--
 !-- the scenes. See the following topic in the MSDN Library for
 additional information: --
 !--
 http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/major_upgrades.asp
 --
 Upgrade Id=$(var.UpgradeCode)
   UpgradeVersion Minimum=$(var.ProductVersion) IncludeMinimum=no
 OnlyDetect=yes Property=NEWERVERSION_INSTALLED /
   UpgradeVersion Minimum=0.0.0 IncludeMinimum=yes
   Maximum=$(var.ProductVersion) IncludeMaximum=no
   Property=OLDERVERSION_BEINGUPGRADED
 MigrateFeatures=yes /
 /Upgrade

 As far as App Compat, I was talking in the logs.


 In you logs, it looks as if your ProductCode hasn't changed between the two?
 (The product code should only be the same if you are doing a minor update.)

 -Original Message-
 From: Alec Swan [mailto:[hidden email]]
 Sent: Wednesday, September 19, 2012 3:57 PM
 To: General discussion for Windows Installer XML toolset.
 Subject: Re: [WiX-users] UI upgrade succeeds, but silent upgrade fails

 We are trying to upgrade from 18.3 to 19.0.1.

 Here is the upgrade code:
 Upgrade Id=E8805AF3-CF50-4092-BE57-220A8C51E2AA
   UpgradeVersion OnlyDetect=no Minimum=18.0.1 IncludeMinimum=no
 Property=NEWERVERSIONDETECTED/
   UpgradeVersion OnlyDetect=no Maximum=19.0.1 IncludeMaximum=no
 Property=OLDERVERSIONBEINGUPGRADED/
 /Upgrade

 How do we ignore APPCOMPAT? Do you need any other info?

 Thanks,

 Alec

 On Wed, Sep 19, 2012 at 2:50 PM, Hoover, Jacob [hidden email] wrote:

 Ignore the APPCOMPAT.

 What does your Upgrade table look like? What are the versions of the old
 and new MSI?

 -Original Message-
 From: Alec Swan [mailto:[hidden email]]
 Sent: Wednesday, September 19, 2012 2:49 PM
 To: General discussion for Windows Installer XML toolset.
 Subject: [WiX-users] UI upgrade succeeds, but silent upgrade fails

 Hello,

 We are testing upgrade from an older version to the version we are about
 to release. We noticed that upgrading msiexec.exe /i my.msi
 successfully upgrades the old product files with the new ones.
 However, silently installing with the following command fails:
 msiexec.exe /i my.msi REINSTALL=ALL REINSTALLMODE=vomus /qn

 The log file generated during silent upgrade contains the following
 messages:

 APPCOMPAT: looking for appcompat database entry with ProductCode
 '{15E9E02D-8660-41B3-9373-3E427A392478}'.
 APPCOMPAT: no matching ProductCode found in database.
 ..
 FindRelatedProducts.
 PROPERTY CHANGE: Adding OLDERVERSIONBEINGUPGRADED property. Its value is
 '{4B43BAEB-553B-4FAD-9219-C55DA3492D89}'.
 PROPERTY CHANGE: Adding NEWERVERSIONDETECTED property. Its value is
 '{4B43BAEB-553B-4FAD-9219-C55DA3492D89}'.
 Doing action: WixExitEarlyWithSuccess
 FindRelatedProducts. Return value 1.

 Does this mean that installer is not finding the previous product version
 and hence doesn't uninstall it? If so, why would UI upgrade work?

 I also noticed that we didn't have Package Id specified in the WXS file
 for the old product. However, we did specify the same Product UpgradeCode in
 the old and new versions. Is this sufficient?

 Thanks,

 Alec

 --
 
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond.
 Discussions will include endpoint security, mobile security and the
 latest in malware threats.
 http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 WiX-users mailing list
 [hidden email]
 https://lists.sourceforge.net/lists/listinfo/wix-users

 --
 
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond.
 Discussions will include endpoint security, mobile security and the
 latest in malware threats.
 http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 WiX-users mailing list
 [hidden email]
 https://lists.sourceforge.net/lists/listinfo/wix-users

 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and threat

Re: [WiX-users] UI upgrade succeeds, but silent upgrade fails

2012-09-19 Thread Neil Sleightholm
You might want to look at the MajorUpgrade element 
http://wix.sourceforge.net/manual-wix3/major_upgrade.htm it makes it easier to 
implement upgrades.

Neil

-Original Message-
From: Alec [mailto:alecs...@gmail.com] 
Sent: 19 September 2012 22:12
To: wix-users@lists.sourceforge.net
Subject: -SPAM- Re: [WiX-users] UI upgrade succeeds, but silent upgrade 
fails

I took that Upgrade snippet from Rob's answer on 
http://stackoverflow.com/a/724098.

Let me try this with Minimum set.

Thanks,

Alec

On Wed, Sep 19, 2012 at 3:09 PM, Hoover, Jacob [via Windows Installer XML (WiX) 
toolset] ml-node+s687559n7580675...@n2.nabble.com wrote:
 Hmm, I think you are missing a minimum on OlderVerionBeingUpgraded

 !-- This information enables Windows Installer major upgrade 
 functionality so users can seamlessly  --
 !-- install a new version of the product and have the old version
 automatically uninstall behind--
 !-- the scenes. See the following topic in the MSDN Library for
 additional information: --
 !--
 http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/s
 etup/major_upgrades.asp
 --
 Upgrade Id=$(var.UpgradeCode)
   UpgradeVersion Minimum=$(var.ProductVersion) IncludeMinimum=no
 OnlyDetect=yes Property=NEWERVERSION_INSTALLED /
   UpgradeVersion Minimum=0.0.0 IncludeMinimum=yes
   Maximum=$(var.ProductVersion) IncludeMaximum=no
   Property=OLDERVERSION_BEINGUPGRADED
 MigrateFeatures=yes /
 /Upgrade

 As far as App Compat, I was talking in the logs.


 In you logs, it looks as if your ProductCode hasn't changed between the two?
 (The product code should only be the same if you are doing a minor 
 update.)

 -Original Message-
 From: Alec Swan [mailto:[hidden email]]
 Sent: Wednesday, September 19, 2012 3:57 PM
 To: General discussion for Windows Installer XML toolset.
 Subject: Re: [WiX-users] UI upgrade succeeds, but silent upgrade fails

 We are trying to upgrade from 18.3 to 19.0.1.

 Here is the upgrade code:
 Upgrade Id=E8805AF3-CF50-4092-BE57-220A8C51E2AA
   UpgradeVersion OnlyDetect=no Minimum=18.0.1 IncludeMinimum=no
 Property=NEWERVERSIONDETECTED/
   UpgradeVersion OnlyDetect=no Maximum=19.0.1 IncludeMaximum=no
 Property=OLDERVERSIONBEINGUPGRADED/
 /Upgrade

 How do we ignore APPCOMPAT? Do you need any other info?

 Thanks,

 Alec

 On Wed, Sep 19, 2012 at 2:50 PM, Hoover, Jacob [hidden email] wrote:

 Ignore the APPCOMPAT.

 What does your Upgrade table look like? What are the versions of the 
 old and new MSI?

 -Original Message-
 From: Alec Swan [mailto:[hidden email]]
 Sent: Wednesday, September 19, 2012 2:49 PM
 To: General discussion for Windows Installer XML toolset.
 Subject: [WiX-users] UI upgrade succeeds, but silent upgrade fails

 Hello,

 We are testing upgrade from an older version to the version we are 
 about to release. We noticed that upgrading msiexec.exe /i my.msi
 successfully upgrades the old product files with the new ones.
 However, silently installing with the following command fails:
 msiexec.exe /i my.msi REINSTALL=ALL REINSTALLMODE=vomus /qn

 The log file generated during silent upgrade contains the following
 messages:

 APPCOMPAT: looking for appcompat database entry with ProductCode 
 '{15E9E02D-8660-41B3-9373-3E427A392478}'.
 APPCOMPAT: no matching ProductCode found in database.
 ..
 FindRelatedProducts.
 PROPERTY CHANGE: Adding OLDERVERSIONBEINGUPGRADED property. Its value 
 is '{4B43BAEB-553B-4FAD-9219-C55DA3492D89}'.
 PROPERTY CHANGE: Adding NEWERVERSIONDETECTED property. Its value is 
 '{4B43BAEB-553B-4FAD-9219-C55DA3492D89}'.
 Doing action: WixExitEarlyWithSuccess FindRelatedProducts. Return 
 value 1.

 Does this mean that installer is not finding the previous product 
 version and hence doesn't uninstall it? If so, why would UI upgrade work?

 I also noticed that we didn't have Package Id specified in the WXS 
 file for the old product. However, we did specify the same Product 
 UpgradeCode in the old and new versions. Is this sufficient?

 Thanks,

 Alec

 -
 -
 
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and 
 threat landscape has changed and how IT managers can respond.
 Discussions will include endpoint security, mobile security and the 
 latest in malware threats.
 http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 WiX-users mailing list
 [hidden email]
 https://lists.sourceforge.net/lists/listinfo/wix-users

 -
 -
 
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and 
 threat landscape has changed and how IT managers can respond.
 Discussions will include endpoint security, mobile security and the 
 latest