Hi. When I create msi with UI I can change installation dir during install.
When I make major upgrade it is installed in default dir. (WIX3 installation
package do the same if I install wix in not default dir) How can I fix this?
I guess I have to change manually INSTALLLOCATION dir during upgade? 
My wix code is: 
<?xml version="1.0" encoding="UTF-8"?> 
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";> 
  <?define RTMProductVersion="1.0.0" ?> 
  <?define UpgradeCode="{BE346371-27A8-4824-B969-7DCE405FDE19}"?> 
  <?define ProductVersion="1.1.13" ?> 
  <Product Id="{9F8B1281-7EE2-4a43-9015-3561509FC079}" Name="Утилиты"
Language="1033" Version="$(var.ProductVersion)" Manufacturer="Me"
UpgradeCode="$(var.UpgradeCode)" Codepage="1251"> 
    <Package InstallerVersion="200" Compressed="yes" SummaryCodepage="1251"
/> 

    <Media Id="1" Cabinet="Comar.UtilitesInstaller.cab" EmbedCab="yes" /> 
    <Property Id="UPGRADEFOUND" Hidden="yes" /> 
    <Property Id="NEWPRODUCTFOUND" Hidden="yes"/> 
    <Upgrade Id="$(var.UpgradeCode)">       
      <UpgradeVersion Minimum="$(var.ProductVersion)" IncludeMinimum="no"
OnlyDetect="yes" Language="1033" Property="NEWPRODUCTFOUND" /> 
      <UpgradeVersion Minimum="$(var.RTMProductVersion)"
IncludeMinimum="yes" Maximum="$(var.ProductVersion)" MigrateFeatures="yes"
IncludeMaximum="no" Language="1033" Property="UPGRADEFOUND" /> 
    </Upgrade> 
    <!-- Prevent downgrading --> 
    <CustomAction Id="PreventDowngrading" Error="У Вас уже установлена более
новая версия." /> 
    <!-- Sequences --> 
    <InstallExecuteSequence> 
      <Custom Action="PreventDowngrading"
After="FindRelatedProducts">NEWPRODUCTFOUND</Custom> 
      <RemoveExistingProducts After="InstallFinalize" /> 
    </InstallExecuteSequence> 
    <InstallUISequence> 
      <Custom Action="PreventDowngrading"
After="FindRelatedProducts">NEWPRODUCTFOUND</Custom> 
    </InstallUISequence> 
    <PropertyRef Id="NETFRAMEWORK20"/> 
    <Condition Message="Microsoft .NET Framework 2.0 ([NETFRAMEWORK20])"> 
      Installed OR NETFRAMEWORK20 
    </Condition> 

        <Directory Id="TARGETDIR" Name="SourceDir"> 
            <Directory Id="ProgramFilesFolder"> 
                <Directory Id="INSTALLLOCATION" Name="wixupgradetest"> 
          <Component Id="Comp1"
Guid="{A90F43E4-E2C1-4b2a-875E-F7A61E3D4364}"> 
            <File Id='s123.txt' Name='123.txt' DiskId='1' Source='123.txt'
KeyPath='yes' /> 
          </Component> 
                </Directory> 
            </Directory> 
        </Directory> 

        <Feature Id="ProductFeature" Title="comp" AllowAdvertise="no"
ConfigurableDirectory="INSTALLLOCATION" Level="1"> 
            <ComponentRef Id="Comp1" /> 
        </Feature> 
  <UIRef Id="WixUI_Mondo" /> 
</Product> 
</Wix>
-- 
View this message in context: 
http://n2.nabble.com/wix-major-upgrade-tp1402145p1402145.html
Sent from the wix-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
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

Reply via email to