Ok, but I can't upgrade my app.

I have following main code:

<?xml version="1.0" encoding="UTF-8"?>

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>

<Product Id="ad30be80-8972-4440-a0b1-c4b057c2d033" Name="Sample Install.
Upgrades" Language="1033" Version="1.0.0.0" Manufacturer="PG" UpgradeCode="
8e6f807a-bd2e-43e6-bbb4-9ea295486d3e">

<Package InstallerVersion="300" Compressed="yes" />

<Upgrade Id='8e6f807a-bd2e-43e6-bbb4-9ea295486d3e'>

<UpgradeVersion OnlyDetect='yes' Property='NEWERFOUND' Minimum='1.0.0.0'
IncludeMinimum='no' />

</Upgrade>

<Media Id="1" Cabinet="SInstall.cab" EmbedCab="yes" />

<CustomAction Id='NoDowngrade' Error='A later version of [ProductName] is
already installed.' />

<Directory Id="TARGETDIR" Name="SourceDir" />

<Feature Id="ProductFeature" Title="Small Install" Level="1"
ConfigurableDirectory='INSTALLDIR'>

<ComponentRef Id="u.exe" />

</Feature>

<Feature Id="HTML" Title="Some html files" Level="1">

<ComponentRef Id="er1.html" />

<ComponentRef Id="er2.html" />

</Feature>

<UIRef Id="WixUI_Mondo" />

<InstallExecuteSequence>

<Custom Action='NoDowngrade' After='FindRelatedProducts'>NEWERFOUND</Custom>

<RemoveExistingProducts After='InstallFinalize' />

</InstallExecuteSequence>

</Product>

</Wix>
Now, I change u.exe to other size and change version (lesson 4 by Gábor) for
small (minor) update.


<?xml version="1.0" encoding="UTF-8"?>

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>

<Product Id="ad30be80-8972-4440-a0b1-c4b057c2d033" Name="Sample Install.
Upgrades" Language="1033" Version="1.0.0.1" Manufacturer="PG" UpgradeCode="
8e6f807a-bd2e-43e6-bbb4-9ea295486d3e">

<Package InstallerVersion="300" Compressed="yes" />

<Upgrade Id='8e6f807a-bd2e-43e6-bbb4-9ea295486d3e'>

<UpgradeVersion OnlyDetect='yes' Property='PATCHFOUND' Minimum='1.0.0.1'
IncludeMinimum='yes' Maximum='1.0.0.1' IncludeMaximum='yes' />

<UpgradeVersion OnlyDetect='yes' Property='NEWERFOUND' Minimum='1.0.0.1'
IncludeMinimum='no' />

</Upgrade>

<Media Id="1" Cabinet="SInstall.cab" EmbedCab="yes" />

<CustomAction Id='NoDowngrade' Error='A later version of [ProductName] is
already installed.' />

<CustomAction Id='AlreadyUpdated' Error='[ProductName] is already installed.
' />

<Directory Id="TARGETDIR" Name="SourceDir" />

<Feature Id="ProductFeature" Title="Small Install" Level="1"
ConfigurableDirectory='INSTALLDIR'>

<ComponentRef Id="u.exe" />

</Feature>

<Feature Id="HTML" Title="Some html files" Level="1">

<ComponentRef Id="er1.html" />

<ComponentRef Id="er2.html" />

</Feature>

<UIRef Id="WixUI_Mondo" />

<InstallExecuteSequence>

<Custom Action='AlreadyUpdated' After='FindRelatedProducts'>PATCHFOUND</
Custom>

<Custom Action='NoDowngrade' After='FindRelatedProducts'>NEWERFOUND</Custom>

<RemoveExistingProducts After='InstallFinalize' />

</InstallExecuteSequence>

</Product>

</Wix>
And error occured when I run "msiexec /i inst.msi /log inst.log" (log file):
Another version of this product is already installed.  Installation of this
version cannot continue.  To configure or remove the existing version of
this product, use Add/Remove Programs on the Control Panel.
{AD30BE80-8972-4440-A0B1-C4B057C2D033}
MSI (c) (94:5C) [15:31:12:843]: Product: Sample Install. Upgrades --
Configuration failed.

If I run "msiexec /i inst.msi /log inst.log REINSTALL=ALL
REINSTALLMODE=vomus" this don't change any files.
What's wrong?

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

Reply via email to