-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Apply Registry Entries Last During Update Flow #5214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
The code was this way intentionally, although I would agree that it probably didn't properly consider the update case. On fresh install, the goal was to write to the registry first to create a handle for user action in the event of catastrophic failure. To say that plainly, if we crashed in the middle of the installation, the ARP registry entry would provide some means to uninstall the package. On upgrade, I agree that this is flawed. Overwriting the state before completing the state change is an issue. To achieve both of these goals, I think the answer is splitting the ARP registry writes into two portions:
|
Makes sense; I'll look to see if theres an easy way to do that |
@JohnMcPMS - Any further comments? |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
This PR makes it so that the registry entries for a portable application are only applied if the DesiredState was applied successfully
Microsoft Reviewers: Open in CodeFlow