[WiX-users] auto delete on reinstall

2009-01-30 Thread Thomas Guettler
Hi,

if I try to install a new version of my msi file, I get the error message,
that I need to uninstall it first.

Is there a way to automatically uninstall it? Is possible to enable a switch
in the wix file that says delete old version on install?

The next best solution would be an option if you start the installation from
the shell.

  Thomas


-- 
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] auto delete on reinstall

2009-01-30 Thread Thomas Guettler
Hi,

thank you for this hint. I found more information now after searching
for Major Upgrade.
But somehow I couldn't find a working example.

Here is my xml file:

?xml version='1.0'?
!--
 $Id: tbzmodwincontrol.wxs 9 2009-01-30 11:29:29Z tguettler $
 $HeadURL:
svn+ssh://svnserver/svn/modwincontrol/trunk/ms-windows/tbzmodwincontrol.wxs
$
--
 
?define Version = 1.0.78 ? !-- Variable muss immer erhöht werden. --
 
?define UpgradeCode = 5B3289E7-EEFC-42BF-BC67-6B355C416290 ? !--
Variable bleibt konstant --
 
Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'
 
Product Id='94132004-8EB3-4606-AA2E-9D58D2A5BE4A'
   Name='TBZ-PARIV ModWinControl $(var.Version)'
   Version='$(var.Version)'
   Manufacturer='TBZ-PARIV'
   Language='1033'
   UpgradeCode='$(var.UpgradeCode)'
Package Description='TBZ-PARIV ModwinControl for Windows'
Compressed='yes'/
Property Id='ALLUSERS' Value='1' /
 
!--
http://neilsleightholm.blogspot.com/2009/01/wix-script-for-major-upgrades.html
--
Property Id=UPGRADEFOUND Secure=yes / 
Property Id=NEWPRODUCTFOUND Secure=yes / 
 
Upgrade Id=$(var.UpgradeCode)
 UpgradeVersion Minimum=$(var.Version) 
 IncludeMinimum=no 
 OnlyDetect=yes 
 Property=NEWPRODUCTFOUND / 
 
 UpgradeVersion Minimum=0.0.0 Maximum=$(var.Version) 
 IncludeMinimum=yes IncludeMaximum=no 
 Property=UPGRADEFOUND /
 /Upgrade
 CustomAction Id=PreventDowngrading Error=Newer version already
installed. /
 InstallExecuteSequence
  FindRelatedProducts Before=LaunchConditions /
  RemoveExistingProducts After=InstallValidate /
  Custom Action=PreventDowngrading
After=FindRelatedProductsNEWPRODUCTFOUND/Custom
 /InstallExecuteSequence
 InstallUISequence
  Custom Action=PreventDowngrading
After=FindRelatedProductsNEWPRODUCTFOUND/Custom
 /InstallUISequence
 
Media Id='1' EmbedCab='yes' Cabinet='tbzmwc.cab'/
  !-- Die cab-Datei wird in die msi-Datei eingebunden, so dass nur
eine Datei benötigt wird. --
 
Directory Id=TARGETDIR Name=SourceDir
 Directory Id=ProgramFilesFolder
  Directory Id=APPLICATIONROOTDIRECTORY Name=TBZ-PARIV
ModWinControl
   Component Id=tbzmodwincontrol Guid=*
File Id=tbzmodwincontrol.exe
Source=dist\tbzmodwincontrol.exe KeyPath=yes/
 
   /Component
  /Directory
 /Directory
/Directory
 
 
Feature Id=MainApplication Title=TBZPARIV MODWINCONTROL Level=1
 ComponentRef Id=tbzmodwincontrol /
/Feature
 
 /Product  
/Wix


Rob Mensching schrieb:
 Yeah sure.  Check out Major Upgrade.


 Hi,

 if I try to install a new version of my msi file, I get the error message,
 that I need to uninstall it first.

 Is there a way to automatically uninstall it? Is possible to enable a switch
 in the wix file that says delete old version on install?

 The next best solution would be an option if you start the installation from
 the shell.

   Thomas
 istinfo/wix-users
   


-- 
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Recursive Directory Import

2009-01-26 Thread Thomas Guettler
Hi,

how can you include a directory with all sub directories?

I use WiX3.0

  Thomas


-- 
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users