Implement uninstall flow#659
Conversation
New misspellings found, please review:
To accept these changes, run the following commands |
New misspellings found, please review:
To accept these changes, run the following commands |
New misspellings found, please review:
To accept these changes, run the following commands |
| // TODO: log & report | ||
| AICLI_TERMINATE_CONTEXT(E_ABORT); | ||
| } | ||
| else if (uninstallResult.value() != 0) |
There was a problem hiding this comment.
(uninstallResult.value() != 0) [](start = 16, length = 30)
This may need to be smarter; at a minimum I would expect a lot of "reboot required" errors coming out. I think that for at least MSI we should probably figure out what can come back from msiexec.exe and be able to handle those values.
There was a problem hiding this comment.
I'm leaving this as a TODO for now as I'm not entirely sure what's the right thing to do with other exit codes. I'm trying to find an application that returns something non-zero to see what it does and how it is handled when uninstalling with Porgrams and Features or the Settings app. I'll probably add a telemetry point for errors that will help here.
* Add test package family names to spell checker. * Update settings schema and docs. * Use wil RAII wrappers. * Use standard/silent uninstall string if requested is not available. * Remove unneeded catch.
|
/azp run #Closed |
|
Azure Pipelines successfully started running 1 pipeline(s). |
I know it's not your fault but probably a previous unaddressed comment. This should just be std::string productCode; (not std::wstring) declaration in line 131 and direct assignment here. In line 131, And here: Refers to: src/AppInstallerTestExeInstaller/main.cpp:151 in 1181019. [](commit_id = 1181019, deletion_comment = False) |
|
No pipelines are associated with this pull request. |
This is in progress and does not work completely yet. I'm opening it as a draft to see if there are any major issues.
Changes:
Still missing:
Related: #121 #397
Microsoft Reviewers: Open in CodeFlow