Hi vlad_ss,
I've managed to get it working. (Although it's a very hacky solution :-s)
To stop the ARP-session, I'm using a MangedAction:
Best regards
I've managed to get it working. (Although it's a very hacky solution :-s)
To stop the ARP-session, I'm using a MangedAction:
new ManagedAction(
nameof(Setup.CallPrettyUIWhileUninstall),
Return.check,
When.Before,
Step.InstallInitialize,
Condition.Installed)
Body of the action:[CustomAction]
public static ActionResult CallPrettyUIWhileUninstall(Session session)
{
// Call pretty setup... If it could not be located, the default
// uninstaller will continue to run
//
// Note: Additionally the running processes are checked to determine
// if the current setup is already the pretty one..
var setupPath = "[Path to your Setup.exe]"
if (System.IO.File.Exists(setupPath) &&
!Process.GetProcessesByName(
Path.GetFileNameWithoutExtension(setupPath)).Any())
{
// --> Start pretty setup
Process.Start(SetupParams.SetupPath);
Environment.Exit(0);
}
// Either the setup could not be located or it's already running
return ActionResult.Success;
}
Please let me know If you've found a better solution.Best regards