You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ran into the issue discussed in Eps 4-6 of Deployment Dojo series and I'm trying to figure if there's a way to workaround the issue using a CustomAction. I've got an action defined that's firing after FindRelatedProducts action, but the ProductVersion shown is the current version, not the one being installed. Anyone know if it's possible to get the ProductVersion of the installer in the customaction before any changes are committed? Thanks.
[CustomAction]
public static ActionResult ProhibitInstall(Session session)
{
ActionResult result = ActionResult.Success;
session.Log($"UPGRADINGPRODUCTCODE: {session["UPGRADINGPRODUCTCODE"]}");
session.Log($"ProductCode: {session["ProductCode"]}");
session.Log($"ProductVersion: {session["ProductVersion"]}");
if (IsOlderInstaller(session))
{
result = ActionResult.Failure;
}
return result;
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Ran into the issue discussed in Eps 4-6 of Deployment Dojo series and I'm trying to figure if there's a way to workaround the issue using a CustomAction. I've got an action defined that's firing after FindRelatedProducts action, but the ProductVersion shown is the current version, not the one being installed. Anyone know if it's possible to get the ProductVersion of the installer in the customaction before any changes are committed? Thanks.
Beta Was this translation helpful? Give feedback.
All reactions