Hello all,
if say briefly, I have a script with next parts:
/ <Upgrade Id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx">//
// <UpgradeVersion Property="NEWERVERSIONDETECTED"
Minimum="$(var.Property_Version)" MigrateFeatures="yes" OnlyDetect="no" />//
// <UpgradeVersion Property="PREVIOUSVERSIONSINSTALLED"
Minimum="1.0.0.0" Maximum="$(var.Property_Version)"
MigrateFeatures="yes" IncludeMaximum="yes" />//
// </Upgrade>//
//
// <CustomAction Id="ca_CreateA" BinaryKey="dllName"
DllEntry="functionNameCreate" Execute="deferred" Return="check"
Impersonate="no"/>//
// <CustomAction Id="ca_CreateA_Args" Property="ca_CreateA"
Value="[msm_Folder]" Execute="immediate"/>//
// <CustomAction Id="ca_UpdateA_Args" Property="ca_UpdateA"
Value="[msm_Folder]" Execute="immediate"/>//
// <CustomAction Id="ca_UpdateA" BinaryKey="dllName"
DllEntry="functionNameUpdate" Execute="deferred" Return="check"
Impersonate="no"/>//
//
//<!-- Create -->//
// <Custom Action="CreateA_Args" Before="CreateA" >//
// NOT (Installed) AND NOT (PREVIOUSVERSIONSINSTALLED OR
NEWERVERSIONDETECTED)//
// </Custom>//
// <Custom Action="CreateA" Before="InstallFinalize" >//
// NOT (Installed) AND NOT (PREVIOUSVERSIONSINSTALLED OR
NEWERVERSIONDETECTED)//
// </Custom>//
//<!-- Update -->//
// <Custom Action="UpdateA_Args" Before="UpdateA" >//
// (PREVIOUSVERSIONSINSTALLED OR NEWERVERSIONDETECTED)//
// </Custom>//
// <Custom Action="UpdateA" Before="InstallFinalize" >//
// (PREVIOUSVERSIONSINSTALLED OR NEWERVERSIONDETECTED)//
// </Custom>/
In the installation (upgrade) log i see:
/Property(S): PREVIOUSVERSIONSINSTALLED =
{6FC3A700-4607-4848-A6C9-4B5C37488469}//
//Property(C): PREVIOUSVERSIONSINSTALLED =
{6FC3A700-4607-4848-A6C9-4B5C37488469}/
From my perspective it means that both sides (server and client)
see/have the property
PREVIOUSVERSIONSINSTALLED. And the property has been initialized with value.
But during upgrade UpdateA isn't executed. But CreateAis executed
instead. How I understand, properties
PREVIOUSVERSIONSINSTALLED and NEWERVERSIONDETECTED are empty or aren't
passed into installation script/session.
And I don't see any reason why this issue happens.
regards,
Valery.
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users