Re: [WiX-users] How to upgrade?

2008-10-21 Thread Pally Sandher
Your second try is almost correct. You need to add the following to your
code however:


  
 

Otherwise, as you've noticed, the existing version is not uninstalled
before the new one is installed.



Palbinder Sandher 
Software Deployment and IT Administrator 

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

**Design, Simulate + Innovate with the **

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: Libor [mailto:[EMAIL PROTECTED] 
Sent: 21 October 2008 01:08
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] How to upgrade?

Hi guys, 

 

I am quite new into the msi business, and I can't figure this out:

 

I have two versions of my project, and of course I want to remove the
previous version when a new version is installed. I used wix for my old
version:

 

http://schemas.microsoft.com/wix/2003/01/wi";>

  





.

   

  

  



  



 

For the  new version, I modified the wxs file just by increasing the
version numbers in Product and both UpgradeVersion tags. But the new
installer says "Another version of this product is already installed.
Installation of this version cannot continue."

 

I also tried to change the Product ID; in that case the new installer
did install, but did not remove the previous version, so my Control
Panel showed two instances of the program, and to remove it I needed to
uninstall twice.

 

What am I missing? There must be some easy way to do the obvious -
install a new version over the old one.

 

Thanks for any hint,

Libor

 


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



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


Re: [WiX-users] How to upgrade?

2008-10-21 Thread Rob Hamflett
Do you have RemoveExistingProducts scheduled?

Rob

Libor wrote:
> Hi guys, 
> 
>  
> 
> I am quite new into the msi business, and I can't figure this out:
> 
>  
> 
> I have two versions of my project, and of course I want to remove the
> previous version when a new version is installed. I used wix for my old
> version:
> 
>  
> 
> http://schemas.microsoft.com/wix/2003/01/wi";>
> 
>Language="1033" Codepage="1252" Version="1.0.31" Manufacturer="MyCompany
> Inc." UpgradeCode="949DD706-5899-4552-81B8-243747DB6AB8">
> 
>  Keywords="A,B,C,Installer" Description="MyProduct 1.0 Installer"
> Comments="Bla blah" Manufacturer=" MyCompany Inc." InstallerVersion="200"
> Languages="1033" Compressed="yes" SummaryCodepage="1252" />
> 
>  />
> 
> .
> 
>
> 
>Property="PREVIOUSVERSIONSINSTALLED" IncludeMinimum="yes" OnlyDetect="no"
> IncludeMaximum="no" />
> 
>Property="NEWPRODUCTFOUND" />
> 
> 
> 
>   
> 
> 
> 
>  
> 
> For the  new version, I modified the wxs file just by increasing the version
> numbers in Product and both UpgradeVersion tags. But the new installer says
> "Another version of this product is already installed. Installation of this
> version cannot continue."
> 
>  
> 
> I also tried to change the Product ID; in that case the new installer did
> install, but did not remove the previous version, so my Control Panel showed
> two instances of the program, and to remove it I needed to uninstall twice.
> 
>  
> 
> What am I missing? There must be some easy way to do the obvious - install a
> new version over the old one.
> 
>  
> 
> Thanks for any hint,
> 
> Libor
> 
>  
> 
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/


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


Re: [WiX-users] How to upgrade

2007-05-15 Thread Bob Arnson

Xin Liu (Person Consulting) wrote:


 

*_Scenario_*:  SomeMSI.msi with version 2.0.1.0 has already been 
installed on local computer.


*_Purpose_*: When a user runs SomeMSI.msi with version 2.0.2.0, the 
bits of 2.0.1.0 should be upgraded to 2.0.2.0


*_Problems_*: When the newer version of the msi is launched by 
"msiexec /I SomeMSI.msi REINSTALL=ALL REINSTALLMODE=vomus", an error 
occurred complaining that the SomeMSI.msi with version 2.0.1.0 cannot 
be found.




If you're using Upgrade/UpgradeVersion, you're performing a major 
upgrade and don't need/want to use REINSTALL/REINSTALLMODE, which is 
generally part of a minor update.


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

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] How to upgrade

2007-05-15 Thread Neil Sleightholm
I may be wrong but the command line you are using (msiexec /I
SomeMSI.msi REINSTALL=ALL REINSTALLMODE=vomus) is telling it to
reinstall 2.0.1.0 but you are supplying the 2.0.2.0 msi. To upgrade you
simply need to run "msiexec /I SomeMSI.msi".

 

Neil

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Xin Liu
(Person Consulting)
Sent: 15 May 2007 13:36
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] How to upgrade

 

 

Scenario:  SomeMSI.msi with version 2.0.1.0 has already been installed
on local computer.

Purpose: When a user runs SomeMSI.msi with version 2.0.2.0, the bits of
2.0.1.0 should be upgraded to 2.0.2.0

Problems: When the newer version of the msi is launched by "msiexec /I
SomeMSI.msi REINSTALL=ALL REINSTALLMODE=vomus", an error occurred
complaining that the SomeMSI.msi with version 2.0.1.0 cannot be found.

 

The .wxs file is looked like:







..



  

  



..



  ..

OLDER_VER_FOUND

  NEWER_VER_FOUND

  ..





..

 





 

Note that the environment variables _BLDVERMAJOR, _BLDVERMINOR, and
_BLDNUMMAJOR are used to automatically update the version fields when
building the msi.

 

Anyone can give me some suggestions?

 

Thanks,

Xin

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] How to upgrade

2007-05-15 Thread André Luus
Hi there

 

That seems to simply indicate that the original MSI (of the previous version), 
is no longer there. I've read that under certain scenarios MSI wants the old 
versions, even for upgrades.

 

Hope that helps.

 

André Luus

 



From: Xin Liu (Person Consulting) [mailto:[EMAIL PROTECTED] 
Sent: 15 May 2007 14:36
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] How to upgrade

 

 

Scenario:  SomeMSI.msi with version 2.0.1.0 has already been installed on local 
computer.

Purpose: When a user runs SomeMSI.msi with version 2.0.2.0, the bits of 2.0.1.0 
should be upgraded to 2.0.2.0

Problems: When the newer version of the msi is launched by "msiexec /I 
SomeMSI.msi REINSTALL=ALL REINSTALLMODE=vomus", an error occurred complaining 
that the SomeMSI.msi with version 2.0.1.0 cannot be found.

 

The .wxs file is looked like:







..



  

  



..



  ..

OLDER_VER_FOUND

  NEWER_VER_FOUND

  ..





..

 





 

Note that the environment variables _BLDVERMAJOR, _BLDVERMINOR, and 
_BLDNUMMAJOR are used to automatically update the version fields when building 
the msi.

 

Anyone can give me some suggestions?

 

Thanks,

Xin

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users