My RemoveExistingProducts looks like this:

<RemoveExistingProducts After="InstallInitialize" />

What exactly does "towards the end" mean? InstallFinalize?

-----Original Message-----
From: Wilson, Phil [mailto:phil.wil...@invensys.com] 
Sent: 8. February 2012 19:06
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Optionally keep a file on MajorUpgrade

Where is your RemoveExistingProducts sequenced? If it was towards the end, the 
upgrade would behave more like an update and replace only files with higher 
versions and not replace altered data files (when they have the same component 
guid). 

BTW Permanent really means permanent. It's a setting in the project, but once 
you install a component that's permanent it's permanent on the system. Why 
expect it mean not permanent? 

Phil W 

-----Original Message-----
From: Alexander Krivács Schrøder [mailto:alexander.schro...@mermaid.no]
Sent: Wednesday, February 08, 2012 6:11 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Optionally keep a file on MajorUpgrade

I have an installer that installs a configuration file, like so:

<Feature Id="AppName.Feature" Title="Application Name" Level="1">
  <Feature Id="AppConfig.Feature" Level="1" Display="hidden">
    <Component Id="AppConfig.Component" 
Guid="{E56D54A5-0646-4D0C-9F95-73F82E293705}" Directory="INSTALLLOCATION">
      <File Source="$(var.AppName.TargetPath).config" />
    </Component>
    <Condition Level="0">KEEP_EXISTING_CONFIG = 1 AND 
APPCONFIGEXISTS</Condition> </Feature> ...
</Feature>

The APPCONFIGEXISTS is brought out like so:



<!-- Check for existing application configuration file -->

<Property Id="APPCONFIGEXISTS" >

  <DirectorySearch Id="CheckAppConfigDir" Path="INSTALLDIR" Depth="0">

    <FileSearch Id="CheckAppConfigFile" 
Name="$(var.AppName.TargetFileName).config" />

  </DirectorySearch>

</Property>

The KEEP_EXISTING_CONFIG is a command-line variable, sent in to msiexec.exe.

This configuration alone does not do the trick (obviously, since I'm asking 
here) as the configuration file is removed by the next version of the MSI 
before it starts its installation. The Component element has a "Permanent" 
property, but with that one enabled, it certainly does not behave as expected 
(does not get removed on uninstall, never gets replaced on upgrade, regardless 
of what the value of KEEP_EXISTING_CONFIG is).

Any ideas?
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers is just 
$99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style 
Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
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 3rd Floor, 40 Grosvenor Place, London, SW1X 
7AW (Registered number 166023). For a list of European legal entities within 
the Invensys Group, please go to http://www.invensys.com/en/legal/default.aspx.

You may contact Invensys plc on +44 (0)20 3155 1200 or e-mail 
recept...@invensys.com. 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).



------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers is just 
$99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style 
Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to