I am authoring installer using Wix 3.6 RC. I am able to implement install,
uninstall, repair and rollback. I am only struck at Upgrade (mostly major
as my product does not support minor upgrades).

I implemented that basic upgrade but I saw some strange behavior. On
upgrade my installer runs Install CA and then uninstall CA (also removes
all components) but its shows successful install (Strange). I need to run
it again to perform uninstall. I am having separate custom actions for
install, uninstall, rollback, upgrade and uninstall.

I am using conditions like this:

<Upgrade Id="$(var.ProductUpgradeCode)">  <UpgradeVersion
Property="NEWER_VERSION_FOUND"                  OnlyDetect="yes"
           Language="1033"
Minimum="$(var.ProductFullVersion)"
IncludeMinimum="no"/>  <UpgradeVersion Property="OLD_VERSION_FOUND"
              OnlyDetect="no"                  Language="1033"
         Minimum="$(var.ProductMinimumVersion)"
Maximum="$(var.ProductFullVersion)"
IncludeMinimum="yes"                  IncludeMaximum="no"
    IgnoreRemoveFailure="yes"
MigrateFeatures="yes"/></Upgrade>
 <InstallUISequence>  <Custom Action="CA_AlreadyUpdated"
After="FindRelatedProducts">OLD_VERSION_FOUND</Custom>  <Custom
Action="CA_NoDowngrade"
After="FindRelatedProducts">NEWER_VERSION_FOUND</Custom></InstallUISequence>

 <InstallExecuteSequence>  <!--For Install-->  <Custom
Action="CA_SetBase_Install" Before="CA_Install">NOT Installed</Custom>
 <Custom Action="CA_Install" After="CA_Rollback">NOT Installed OR
(Installed AND NOT (REMOVE="ALL"))</Custom>
   <!--For Repair-->  <Custom Action="CA_SetBase_Repair"
Before="CA_Install">Installed AND NOT (REMOVE="ALL")</Custom>
   <!--For Rollback-->  <Custom Action="CA_SetBase_Rollback"
Before="CA_Rollback">NOT Installed</Custom>  <Custom
Action="CA_Rollback" After="StartServices">NOT Installed</Custom>
   <!--Set properties for Uninstall-->  <Custom
Action="CA_SetProperty_SDKMACHINE"
After="AppSearch">Installed</Custom>  <Custom
Action="CA_SetProperty_INSTALLPATH"
After="CA_SetProperty_SDKMACHINE">Installed</Custom>
   <!--For UnInstall-->  <Custom Action="CA_SetBase_UnInstall"
Before="CA_UnInstall">Installed</Custom>  <Custom
Action="CA_UnInstall" After="MsiUnpublishAssemblies">Installed AND
REMOVE="ALL"</Custom>  <!--For Upgrade-->  <Custom
Action="CA_SetBase_Upgrade" Before="CA_Upgrade">Installed AND
UPGRADINGPRODUCTCODE</Custom>  <Custom Action="CA_Upgrade"
Before="InstallFinalize">Installed AND NOT (REMOVE="ALL") AND
UPGRADINGPRODUCTCODE</Custom>    <!--For Upgrade Process-->  <Custom
Action="CA_AlreadyUpdated" After="FindRelatedProducts">Installed OR
NOT OLD_VERSION_FOUND</Custom>  <Custom Action="CA_NoDowngrade"
After="FindRelatedProducts">Installed OR NOT
NEWER_VERSION_FOUND</Custom>
   <RemoveExistingProducts After="InstallFinalize"/></InstallExecuteSequence>


Am I doing all correctly?? I think not!!!

Can some one please show me how can I do this in better way?

I also wanted to ask I want to show upgrade dialog at the start of the
installer. How can I do that too?
-- 
Thanks and Regards,
Ravi Raj
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to