[WiX-users] Need to support Downgrade installs

2014-11-26 Thread Rich Fowler
I need to allow  Downgrading installations. This is for an internal
application where a user may need to install version N over version
N+1. Yes, I know this is frowned upon, but management insists. We need to
make it seamless to our users. Forcing the user to first uninstall is not
an option.

I've searched most everywhere and think I am close to getting it right.
However, after installing version N over top of N+1 only the unchanged
files remain. It looks like the installer is determining which files to
install before version N+1 is removed.

Following is a stripped down installation file. The ACMEVERSION property
changes from release to release as well as the file version withing the
executable.
After version 4.0.5.7 is installed, the directory contains two files - the
exe and txt file. After 4.0.4.4 is installed, the directory only contains
the txt file, which is unchanged between the versions.

Any advice or comments are deeply appreciated.

?xml version=1.0 encoding=UTF-8?Wix
xmlns=http://schemas.microsoft.com/wix/2006/wi;  ?define
ACMEVERSION = 4.0.04.04 ?!--  THIS IS THE ONLY LINE THAT CHANGES
--  ?define UpgradeCode =
83ED9349-6CE8-49AF-AA9D-76A63BBF3667?Product Id=*
Name=MyApp Language=1033 Version=$(var.ACMEVERSION)
Manufacturer=Acme UpgradeCode=$(var.UpgradeCode)  Package
InstallerVersion=405 Compressed=yes  Manufacturer=Acme /
Property Id=ALLUSERS Value=1 /
   MajorUpgrade AllowDowngrades=yes
Schedule=afterInstallValidate RemoveFeatures=ProductFeature /
!--InstallExecuteSequence  RemoveExistingProducts
After='InstallInitialize' /  InstallExecute
After=RemoveExistingProducts //InstallExecuteSequence --
   !-- Force uninstall of any previously installed version (Allow
Upgrade AND DownGrade --  Property
Id='PREVIOUSVERSIONSINSTALLED' Secure='yes' /  Upgrade
Id='$(var.UpgradeCode)'  UpgradeVersion Minimum='1.0.0.0'
Maximum='99.0.0.0'
Property='PREVIOUSVERSIONSINSTALLED'
MigrateFeatures=yes IncludeMinimum='yes' IncludeMaximum='no' /
/Upgrade
 MediaTemplate EmbedCab='yes' /
 Feature Id=ProductFeature Title=MyApp
Level=1  ComponentGroupRef Id=ProductComponents
/  /Feature  /Product!-- we want to install into 
C:\Acme\
-- FragmentDirectory Id=TARGETDIR Name=SourceDir
Directory Id=ACMEINSTALLFOLDER Name=Acme //Directory
SetDirectory Id=TARGETDIR Value=[WindowsVolume] /  /Fragment
Fragment  ComponentGroup Id=ProductComponents   
Component
Id=AcmeAppComponent Guid=304961E1-C871-4124-A802-76EFBA17E3A6
Directory=ACMEINSTALLFOLDER RemoveFile
Id=RmvFile Name=AcmeApp.exe On=install /File
Id=AcmeEXE Name=AcmeApp.exe
Source=..\$(var.ACMEVERSION)\AcmeApp.exe /  /Component
Component Id=DocumentComponent
Guid=AD9DED34-7158-454E-8A3C-A9FC04F28621
Directory=ACMEINSTALLFOLDER File Id=NOTES
Name=Notes.txt  KeyPath=yes /  /Component
/ComponentGroup   /Fragment/Wix
--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Need to support Downgrade installs

2014-11-26 Thread John Cooper
You need to change your MajorUpgrade@Schedule attribute to something like 
afterInstallInitialize.  This will ensure that the previous version is removed 
before the downgrade version is installed.  A downgrade like this won't allow 
you an overlapped upgrade.

--
John Merryweather Cooper
Senior Software Engineer | Enterprise Service Applications | Continuing 
Development
Jack Henry  Associates, Inc.® | Lenexa, KS  66214 | Ext:  431050 
|jocoo...@jackhenry.com



-Original Message-
From: Rich Fowler [mailto:richwfow...@gmail.com] 
Sent: Wednesday, November 26, 2014 12:04 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Need to support Downgrade installs

I need to allow  Downgrading installations. This is for an internal application 
where a user may need to install version N over version N+1. Yes, I know 
this is frowned upon, but management insists. We need to make it seamless to 
our users. Forcing the user to first uninstall is not an option.

I've searched most everywhere and think I am close to getting it right.
However, after installing version N over top of N+1 only the unchanged 
files remain. It looks like the installer is determining which files to install 
before version N+1 is removed.

Following is a stripped down installation file. The ACMEVERSION property 
changes from release to release as well as the file version withing the 
executable.
After version 4.0.5.7 is installed, the directory contains two files - the exe 
and txt file. After 4.0.4.4 is installed, the directory only contains the txt 
file, which is unchanged between the versions.

Any advice or comments are deeply appreciated.

?xml version=1.0 encoding=UTF-8?Wix
xmlns=http://schemas.microsoft.com/wix/2006/wi;  ?define
ACMEVERSION = 4.0.04.04 ?!--  THIS IS THE ONLY LINE THAT CHANGES
--  ?define UpgradeCode =
83ED9349-6CE8-49AF-AA9D-76A63BBF3667?Product Id=*
Name=MyApp Language=1033 Version=$(var.ACMEVERSION)
Manufacturer=Acme UpgradeCode=$(var.UpgradeCode)  Package
InstallerVersion=405 Compressed=yes  Manufacturer=Acme / Property 
Id=ALLUSERS Value=1 /
   MajorUpgrade AllowDowngrades=yes
Schedule=afterInstallValidate RemoveFeatures=ProductFeature /
!--InstallExecuteSequence  RemoveExistingProducts
After='InstallInitialize' /  InstallExecute
After=RemoveExistingProducts //InstallExecuteSequence --
   !-- Force uninstall of any previously installed version (Allow
Upgrade AND DownGrade --  Property
Id='PREVIOUSVERSIONSINSTALLED' Secure='yes' /  Upgrade
Id='$(var.UpgradeCode)'  UpgradeVersion Minimum='1.0.0.0'
Maximum='99.0.0.0'
Property='PREVIOUSVERSIONSINSTALLED'
MigrateFeatures=yes IncludeMinimum='yes' IncludeMaximum='no' / /Upgrade
 MediaTemplate EmbedCab='yes' /
 Feature Id=ProductFeature Title=MyApp
Level=1  ComponentGroupRef Id=ProductComponents
/  /Feature  /Product!-- we want to install into 
C:\Acme\
-- FragmentDirectory Id=TARGETDIR Name=SourceDir
Directory Id=ACMEINSTALLFOLDER Name=Acme //Directory
SetDirectory Id=TARGETDIR Value=[WindowsVolume] /  /Fragment
Fragment  ComponentGroup Id=ProductComponents   
Component
Id=AcmeAppComponent Guid=304961E1-C871-4124-A802-76EFBA17E3A6
Directory=ACMEINSTALLFOLDER RemoveFile
Id=RmvFile Name=AcmeApp.exe On=install /File
Id=AcmeEXE Name=AcmeApp.exe
Source=..\$(var.ACMEVERSION)\AcmeApp.exe /  /Component
Component Id=DocumentComponent
Guid=AD9DED34-7158-454E-8A3C-A9FC04F28621
Directory=ACMEINSTALLFOLDER File Id=NOTES
Name=Notes.txt  KeyPath=yes /  /Component
/ComponentGroup   /Fragment/Wix
--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! 
Instantly Supercharge Your Business Reports and Dashboards with Interactivity, 
Sharing, Native Excel Exports, App Integration  more Get technology previously 
reserved for billion-dollar corporations, FREE 
http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
NOTICE: This electronic mail message and any files transmitted with it are 
intended
exclusively for the individual or entity to which it is addressed. The message, 
together with any attachment, may contain confidential and/or privileged 
information.
Any unauthorized review, use, printing, saving, copying, disclosure or 
distribution 
is strictly prohibited. If you have received this message in error, please 
immediately advise the sender by reply email and delete all copies.


--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity

Re: [WiX-users] Need to support Downgrade installs

2014-11-26 Thread Joel Budreau
Hey Rich,

If you make your installers set REINSTALLMODE=amus files will be overwritten 
regardless of their version. This would let you run upgrades and downgrades 
where whomever comes last wins.

http://msdn.microsoft.com/en-us/library/aa371182%28v=vs.85%29.aspx

- Joel

 On Nov 26, 2014, at 1:04 PM, Rich Fowler richwfow...@gmail.com wrote:
 
 I need to allow  Downgrading installations. This is for an internal
 application where a user may need to install version N over version
 N+1. Yes, I know this is frowned upon, but management insists. We need to
 make it seamless to our users. Forcing the user to first uninstall is not
 an option.
 
 I've searched most everywhere and think I am close to getting it right.
 However, after installing version N over top of N+1 only the unchanged
 files remain. It looks like the installer is determining which files to
 install before version N+1 is removed.
 
 Following is a stripped down installation file. The ACMEVERSION property
 changes from release to release as well as the file version withing the
 executable.
 After version 4.0.5.7 is installed, the directory contains two files - the
 exe and txt file. After 4.0.4.4 is installed, the directory only contains
 the txt file, which is unchanged between the versions.
 
 Any advice or comments are deeply appreciated.
 
 ?xml version=1.0 encoding=UTF-8?Wix
 xmlns=http://schemas.microsoft.com/wix/2006/wi;  ?define
 ACMEVERSION = 4.0.04.04 ?!--  THIS IS THE ONLY LINE THAT CHANGES
 --  ?define UpgradeCode =
 83ED9349-6CE8-49AF-AA9D-76A63BBF3667?Product Id=*
 Name=MyApp Language=1033 Version=$(var.ACMEVERSION)
 Manufacturer=Acme UpgradeCode=$(var.UpgradeCode)  Package
 InstallerVersion=405 Compressed=yes  Manufacturer=Acme /
 Property Id=ALLUSERS Value=1 /
   MajorUpgrade AllowDowngrades=yes
 Schedule=afterInstallValidate RemoveFeatures=ProductFeature /
 !--InstallExecuteSequence  RemoveExistingProducts
 After='InstallInitialize' /  InstallExecute
 After=RemoveExistingProducts //InstallExecuteSequence --
   !-- Force uninstall of any previously installed version (Allow
 Upgrade AND DownGrade --  Property
 Id='PREVIOUSVERSIONSINSTALLED' Secure='yes' /  Upgrade
 Id='$(var.UpgradeCode)'  UpgradeVersion Minimum='1.0.0.0'
 Maximum='99.0.0.0'
 Property='PREVIOUSVERSIONSINSTALLED'
 MigrateFeatures=yes IncludeMinimum='yes' IncludeMaximum='no' /
 /Upgrade
 MediaTemplate EmbedCab='yes' /
 Feature Id=ProductFeature Title=MyApp
 Level=1ComponentGroupRef Id=ProductComponents
 //Feature  /Product!-- we want to install into 
 C:\Acme\
 --   FragmentDirectory Id=TARGETDIR Name=SourceDir
 Directory Id=ACMEINSTALLFOLDER Name=Acme //Directory
 SetDirectory Id=TARGETDIR Value=[WindowsVolume] /  /Fragment
   Fragment  ComponentGroup Id=ProductComponents   
 Component
 Id=AcmeAppComponent Guid=304961E1-C871-4124-A802-76EFBA17E3A6
Directory=ACMEINSTALLFOLDER RemoveFile
 Id=RmvFile Name=AcmeApp.exe On=install /File
 Id=AcmeEXE Name=AcmeApp.exe
 Source=..\$(var.ACMEVERSION)\AcmeApp.exe /  /Component
 Component Id=DocumentComponent
 Guid=AD9DED34-7158-454E-8A3C-A9FC04F28621
 Directory=ACMEINSTALLFOLDER File Id=NOTES
 Name=Notes.txt  KeyPath=yes /  /Component
 /ComponentGroup /Fragment/Wix
 --
 Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
 from Actuate! Instantly Supercharge Your Business Reports and Dashboards
 with Interactivity, Sharing, Native Excel Exports, App Integration  more
 Get technology previously reserved for billion-dollar corporations, FREE
 http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users


--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Need to support Downgrade installs

2014-11-26 Thread Joel Budreau
I don’t believe that this approach will actually work. The MSI components are 
evaluated during (before?) the CostFinalize action, so by the time 
InstallInitialize runs, the new MSI has already made up it’s mind about what 
components are going to be installed/ignored. This is fine if you always want 
files to increase in version, but if you actually want to be able to run an 
“upgrade” (uninstall + install) where the new installer lays down whatever it’s 
got, you have to use REINSTALLMODE.

- Joel

 On Nov 26, 2014, at 1:10 PM, John Cooper jocoo...@jackhenry.com wrote:
 
 You need to change your MajorUpgrade@Schedule attribute to something like 
 afterInstallInitialize.  This will ensure that the previous version is 
 removed before the downgrade version is installed.  A downgrade like this 
 won't allow you an overlapped upgrade.
 
 --
 John Merryweather Cooper
 Senior Software Engineer | Enterprise Service Applications | Continuing 
 Development
 Jack Henry  Associates, Inc.® | Lenexa, KS  66214 | Ext:  431050 
 |jocoo...@jackhenry.com
 
 
 
 -Original Message-
 From: Rich Fowler [mailto:richwfow...@gmail.com] 
 Sent: Wednesday, November 26, 2014 12:04 PM
 To: wix-users@lists.sourceforge.net
 Subject: [WiX-users] Need to support Downgrade installs
 
 I need to allow  Downgrading installations. This is for an internal 
 application where a user may need to install version N over version N+1. 
 Yes, I know this is frowned upon, but management insists. We need to make it 
 seamless to our users. Forcing the user to first uninstall is not an option.
 
 I've searched most everywhere and think I am close to getting it right.
 However, after installing version N over top of N+1 only the unchanged 
 files remain. It looks like the installer is determining which files to 
 install before version N+1 is removed.
 
 Following is a stripped down installation file. The ACMEVERSION property 
 changes from release to release as well as the file version withing the 
 executable.
 After version 4.0.5.7 is installed, the directory contains two files - the 
 exe and txt file. After 4.0.4.4 is installed, the directory only contains the 
 txt file, which is unchanged between the versions.
 
 Any advice or comments are deeply appreciated.
 
 ?xml version=1.0 encoding=UTF-8?Wix
 xmlns=http://schemas.microsoft.com/wix/2006/wi;  ?define
 ACMEVERSION = 4.0.04.04 ?!--  THIS IS THE ONLY LINE THAT CHANGES
 --  ?define UpgradeCode =
 83ED9349-6CE8-49AF-AA9D-76A63BBF3667?Product Id=*
 Name=MyApp Language=1033 Version=$(var.ACMEVERSION)
 Manufacturer=Acme UpgradeCode=$(var.UpgradeCode)  Package
 InstallerVersion=405 Compressed=yes  Manufacturer=Acme / Property 
 Id=ALLUSERS Value=1 /
   MajorUpgrade AllowDowngrades=yes
 Schedule=afterInstallValidate RemoveFeatures=ProductFeature /
 !--InstallExecuteSequence  RemoveExistingProducts
 After='InstallInitialize' /  InstallExecute
 After=RemoveExistingProducts //InstallExecuteSequence --
   !-- Force uninstall of any previously installed version (Allow
 Upgrade AND DownGrade --  Property
 Id='PREVIOUSVERSIONSINSTALLED' Secure='yes' /  Upgrade
 Id='$(var.UpgradeCode)'  UpgradeVersion Minimum='1.0.0.0'
 Maximum='99.0.0.0'
 Property='PREVIOUSVERSIONSINSTALLED'
 MigrateFeatures=yes IncludeMinimum='yes' IncludeMaximum='no' / /Upgrade
 MediaTemplate EmbedCab='yes' /
 Feature Id=ProductFeature Title=MyApp
 Level=1ComponentGroupRef Id=ProductComponents
 //Feature  /Product!-- we want to install into 
 C:\Acme\
 --   FragmentDirectory Id=TARGETDIR Name=SourceDir
 Directory Id=ACMEINSTALLFOLDER Name=Acme //Directory
 SetDirectory Id=TARGETDIR Value=[WindowsVolume] /  /Fragment
   Fragment  ComponentGroup Id=ProductComponents   
 Component
 Id=AcmeAppComponent Guid=304961E1-C871-4124-A802-76EFBA17E3A6
Directory=ACMEINSTALLFOLDER RemoveFile
 Id=RmvFile Name=AcmeApp.exe On=install /File
 Id=AcmeEXE Name=AcmeApp.exe
 Source=..\$(var.ACMEVERSION)\AcmeApp.exe /  /Component
 Component Id=DocumentComponent
 Guid=AD9DED34-7158-454E-8A3C-A9FC04F28621
 Directory=ACMEINSTALLFOLDER File Id=NOTES
 Name=Notes.txt  KeyPath=yes /  /Component
 /ComponentGroup /Fragment/Wix
 --
 Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from 
 Actuate! Instantly Supercharge Your Business Reports and Dashboards with 
 Interactivity, Sharing, Native Excel Exports, App Integration  more Get 
 technology previously reserved for billion-dollar corporations, FREE 
 http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users
 NOTICE: This electronic mail message and any files transmitted

Re: [WiX-users] Need to support Downgrade installs

2014-11-26 Thread Rich Fowler
Thank You for the quick reply!
Iv'e tried countless variations, and have just tried your suggestion with
no success.
You mentioned Overlapped Upgrade - I've not seen this term while
searching. I will pursue it and see what happens.

Again, Thank You

On Wed, Nov 26, 2014 at 1:10 PM, John Cooper jocoo...@jackhenry.com wrote:

 You need to change your MajorUpgrade@Schedule attribute to something like
 afterInstallInitialize.  This will ensure that the previous version is
 removed before the downgrade version is installed.  A downgrade like this
 won't allow you an overlapped upgrade.

 --
 John Merryweather Cooper
 Senior Software Engineer | Enterprise Service Applications | Continuing
 Development
 Jack Henry  Associates, Inc.® | Lenexa, KS  66214 | Ext:  431050 |
 jocoo...@jackhenry.com



 -Original Message-
 From: Rich Fowler [mailto:richwfow...@gmail.com]
 Sent: Wednesday, November 26, 2014 12:04 PM
 To: wix-users@lists.sourceforge.net
 Subject: [WiX-users] Need to support Downgrade installs

 I need to allow  Downgrading installations. This is for an internal
 application where a user may need to install version N over version
 N+1. Yes, I know this is frowned upon, but management insists. We need to
 make it seamless to our users. Forcing the user to first uninstall is not
 an option.

 I've searched most everywhere and think I am close to getting it right.
 However, after installing version N over top of N+1 only the unchanged
 files remain. It looks like the installer is determining which files to
 install before version N+1 is removed.

 Following is a stripped down installation file. The ACMEVERSION property
 changes from release to release as well as the file version withing the
 executable.
 After version 4.0.5.7 is installed, the directory contains two files - the
 exe and txt file. After 4.0.4.4 is installed, the directory only contains
 the txt file, which is unchanged between the versions.

 Any advice or comments are deeply appreciated.

 ?xml version=1.0 encoding=UTF-8?Wix
 xmlns=http://schemas.microsoft.com/wix/2006/wi;  ?define
 ACMEVERSION = 4.0.04.04 ?!--  THIS IS THE ONLY LINE THAT CHANGES
 --  ?define UpgradeCode =
 83ED9349-6CE8-49AF-AA9D-76A63BBF3667?Product Id=*
 Name=MyApp Language=1033 Version=$(var.ACMEVERSION)
 Manufacturer=Acme UpgradeCode=$(var.UpgradeCode)  Package
 InstallerVersion=405 Compressed=yes  Manufacturer=Acme / Property
 Id=ALLUSERS Value=1 /
MajorUpgrade AllowDowngrades=yes
 Schedule=afterInstallValidate RemoveFeatures=ProductFeature /
 !--InstallExecuteSequence  RemoveExistingProducts
 After='InstallInitialize' /  InstallExecute
 After=RemoveExistingProducts //InstallExecuteSequence --
!-- Force uninstall of any previously installed version (Allow
 Upgrade AND DownGrade --  Property
 Id='PREVIOUSVERSIONSINSTALLED' Secure='yes' /  Upgrade
 Id='$(var.UpgradeCode)'  UpgradeVersion Minimum='1.0.0.0'
 Maximum='99.0.0.0'
 Property='PREVIOUSVERSIONSINSTALLED'
 MigrateFeatures=yes IncludeMinimum='yes' IncludeMaximum='no' /
 /Upgrade
  MediaTemplate EmbedCab='yes' /
  Feature Id=ProductFeature Title=MyApp
 Level=1  ComponentGroupRef Id=ProductComponents
 /  /Feature  /Product!-- we want to install into
 C:\Acme\
 -- FragmentDirectory Id=TARGETDIR Name=SourceDir
 Directory Id=ACMEINSTALLFOLDER Name=Acme //Directory
 SetDirectory Id=TARGETDIR Value=[WindowsVolume] /  /Fragment
 Fragment  ComponentGroup Id=ProductComponents 
 Component
 Id=AcmeAppComponent Guid=304961E1-C871-4124-A802-76EFBA17E3A6
 Directory=ACMEINSTALLFOLDER RemoveFile
 Id=RmvFile Name=AcmeApp.exe On=install /File
 Id=AcmeEXE Name=AcmeApp.exe
 Source=..\$(var.ACMEVERSION)\AcmeApp.exe /  /Component
 Component Id=DocumentComponent
 Guid=AD9DED34-7158-454E-8A3C-A9FC04F28621
 Directory=ACMEINSTALLFOLDER File Id=NOTES
 Name=Notes.txt  KeyPath=yes /  /Component
 /ComponentGroup   /Fragment/Wix

 --
 Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from
 Actuate! Instantly Supercharge Your Business Reports and Dashboards with
 Interactivity, Sharing, Native Excel Exports, App Integration  more Get
 technology previously reserved for billion-dollar corporations, FREE
 http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users
 NOTICE: This electronic mail message and any files transmitted with it are
 intended
 exclusively for the individual or entity to which it is addressed. The
 message,
 together with any attachment, may contain confidential and/or privileged
 information.
 Any unauthorized review, use, printing, saving, copying, disclosure

Re: [WiX-users] Need to support Downgrade installs

2014-11-26 Thread Rich Fowler
Hi John,
Thanks so much for the quick response.

I've seen some comments before about REINSTALLMODE-amus, but there were
serveral cautions around it. In particular, my real install also includes a
few redistributables (msm files).

Guess it it time to research amus further.

Again,
Thank You

On Wed, Nov 26, 2014 at 1:11 PM, Joel Budreau joel.budr...@gmail.com
wrote:

 Hey Rich,

 If you make your installers set REINSTALLMODE=amus files will be
 overwritten regardless of their version. This would let you run upgrades
 and downgrades where whomever comes last wins.

 http://msdn.microsoft.com/en-us/library/aa371182%28v=vs.85%29.aspx

 - Joel

  On Nov 26, 2014, at 1:04 PM, Rich Fowler richwfow...@gmail.com wrote:
 
  I need to allow  Downgrading installations. This is for an internal
  application where a user may need to install version N over version
  N+1. Yes, I know this is frowned upon, but management insists. We need
 to
  make it seamless to our users. Forcing the user to first uninstall is not
  an option.
 
  I've searched most everywhere and think I am close to getting it right.
  However, after installing version N over top of N+1 only the
 unchanged
  files remain. It looks like the installer is determining which files to
  install before version N+1 is removed.
 
  Following is a stripped down installation file. The ACMEVERSION
 property
  changes from release to release as well as the file version withing the
  executable.
  After version 4.0.5.7 is installed, the directory contains two files -
 the
  exe and txt file. After 4.0.4.4 is installed, the directory only contains
  the txt file, which is unchanged between the versions.
 
  Any advice or comments are deeply appreciated.
 
  ?xml version=1.0 encoding=UTF-8?Wix
  xmlns=http://schemas.microsoft.com/wix/2006/wi;  ?define
  ACMEVERSION = 4.0.04.04 ?!--  THIS IS THE ONLY LINE THAT CHANGES
  --  ?define UpgradeCode =
  83ED9349-6CE8-49AF-AA9D-76A63BBF3667?Product Id=*
  Name=MyApp Language=1033 Version=$(var.ACMEVERSION)
  Manufacturer=Acme UpgradeCode=$(var.UpgradeCode)  Package
  InstallerVersion=405 Compressed=yes  Manufacturer=Acme /
  Property Id=ALLUSERS Value=1 /
MajorUpgrade AllowDowngrades=yes
  Schedule=afterInstallValidate RemoveFeatures=ProductFeature /
  !--InstallExecuteSequence  RemoveExistingProducts
  After='InstallInitialize' /  InstallExecute
  After=RemoveExistingProducts //InstallExecuteSequence --
!-- Force uninstall of any previously installed version (Allow
  Upgrade AND DownGrade --  Property
  Id='PREVIOUSVERSIONSINSTALLED' Secure='yes' /  Upgrade
  Id='$(var.UpgradeCode)'  UpgradeVersion Minimum='1.0.0.0'
  Maximum='99.0.0.0'
  Property='PREVIOUSVERSIONSINSTALLED'
  MigrateFeatures=yes IncludeMinimum='yes' IncludeMaximum='no' /
  /Upgrade
  MediaTemplate EmbedCab='yes' /
  Feature Id=ProductFeature Title=MyApp
  Level=1ComponentGroupRef Id=ProductComponents
  //Feature  /Product!-- we want to install into
 C:\Acme\
  --   FragmentDirectory Id=TARGETDIR Name=SourceDir
  Directory Id=ACMEINSTALLFOLDER Name=Acme //Directory
  SetDirectory Id=TARGETDIR Value=[WindowsVolume] /  /Fragment
Fragment  ComponentGroup Id=ProductComponents 
 Component
  Id=AcmeAppComponent Guid=304961E1-C871-4124-A802-76EFBA17E3A6
 Directory=ACMEINSTALLFOLDER RemoveFile
  Id=RmvFile Name=AcmeApp.exe On=install /File
  Id=AcmeEXE Name=AcmeApp.exe
  Source=..\$(var.ACMEVERSION)\AcmeApp.exe /  /Component
  Component Id=DocumentComponent
  Guid=AD9DED34-7158-454E-8A3C-A9FC04F28621
  Directory=ACMEINSTALLFOLDER File Id=NOTES
  Name=Notes.txt  KeyPath=yes /  /Component
  /ComponentGroup /Fragment/Wix
 
 --
  Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
  from Actuate! Instantly Supercharge Your Business Reports and Dashboards
  with Interactivity, Sharing, Native Excel Exports, App Integration  more
  Get technology previously reserved for billion-dollar corporations, FREE
 
 http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk
  ___
  WiX-users mailing list
  WiX-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wix-users



 --
 Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
 from Actuate! Instantly Supercharge Your Business Reports and Dashboards
 with Interactivity, Sharing, Native Excel Exports, App Integration  more
 Get technology previously reserved for billion-dollar corporations, FREE

 http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 

Re: [WiX-users] Need to support Downgrade installs

2014-11-26 Thread David Connet
Another approach would be to just throw up your hands and say I can't 
upgrade from that. Force the users to uninstall before your install. 
Then the old version is removed. And the new one comes in cleanly. 
Assuming the old one uninstalls cleanly! Very user-hostile however...

Dave

On 11/26/2014 10:23 AM, Rich Fowler wrote:
 Hi John,
 Thanks so much for the quick response.

 I've seen some comments before about REINSTALLMODE-amus, but there were
 serveral cautions around it. In particular, my real install also includes a
 few redistributables (msm files).

 Guess it it time to research amus further.

 Again,
 Thank You


--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Need to support Downgrade installs

2014-11-26 Thread Rich Fowler
I would love to force the user to do the uninstall. But requirements
dictate otherwise.

I am pursuing the suggestion to set the REINSTALLMODE property -- AND  see
if I can remove the Redist MSMs from my install. After all, this is
strictly for in-house use.


Thanks for replying!
Rich

On Wed, Nov 26, 2014 at 1:40 PM, David Connet d...@agilityrecordbook.com
wrote:

 Another approach would be to just throw up your hands and say I can't
 upgrade from that. Force the users to uninstall before your install.
 Then the old version is removed. And the new one comes in cleanly.
 Assuming the old one uninstalls cleanly! Very user-hostile however...

 Dave

 On 11/26/2014 10:23 AM, Rich Fowler wrote:
  Hi John,
  Thanks so much for the quick response.
 
  I've seen some comments before about REINSTALLMODE-amus, but there were
  serveral cautions around it. In particular, my real install also
 includes a
  few redistributables (msm files).
 
  Guess it it time to research amus further.
 
  Again,
  Thank You



 --
 Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
 from Actuate! Instantly Supercharge Your Business Reports and Dashboards
 with Interactivity, Sharing, Native Excel Exports, App Integration  more
 Get technology previously reserved for billion-dollar corporations, FREE

 http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Need to support Downgrade installs

2014-11-26 Thread Phil Wilson
 You have a majorupgrade element as well as an upgrade element. I'm
not sure why. A single majorupgrade element with AllowDowngrades=yes
should suffice.  You should also post the entire log.
---
Phil Wilson


On Wed, Nov 26, 2014 at 11:14 AM, Rich Fowler richwfow...@gmail.com wrote:
 I would love to force the user to do the uninstall. But requirements
 dictate otherwise.

 I am pursuing the suggestion to set the REINSTALLMODE property -- AND  see
 if I can remove the Redist MSMs from my install. After all, this is
 strictly for in-house use.


 Thanks for replying!
 Rich

 On Wed, Nov 26, 2014 at 1:40 PM, David Connet d...@agilityrecordbook.com
 wrote:

 Another approach would be to just throw up your hands and say I can't
 upgrade from that. Force the users to uninstall before your install.
 Then the old version is removed. And the new one comes in cleanly.
 Assuming the old one uninstalls cleanly! Very user-hostile however...

 Dave

 On 11/26/2014 10:23 AM, Rich Fowler wrote:
  Hi John,
  Thanks so much for the quick response.
 
  I've seen some comments before about REINSTALLMODE-amus, but there were
  serveral cautions around it. In particular, my real install also
 includes a
  few redistributables (msm files).
 
  Guess it it time to research amus further.
 
  Again,
  Thank You



 --
 Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
 from Actuate! Instantly Supercharge Your Business Reports and Dashboards
 with Interactivity, Sharing, Native Excel Exports, App Integration  more
 Get technology previously reserved for billion-dollar corporations, FREE

 http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users

 --
 Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
 from Actuate! Instantly Supercharge Your Business Reports and Dashboards
 with Interactivity, Sharing, Native Excel Exports, App Integration  more
 Get technology previously reserved for billion-dollar corporations, FREE
 http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users