ITADN

Enhance uninstallation process with admin support

#42Pull Requestazuravian 创建于 2025-08-15
A
azuraviancommented
Enhance uninstallation process with admin support Introduced `ProcessStartInfo` objects for user and admin uninstallation. Improved handling of access denial by attempting to run the uninstaller with elevated privileges. Enhanced error logging for better feedback on user cancellations and access issues. #### PR Classification Enhancement of the uninstallation process to improve error handling and privilege escalation. #### PR Summary This pull request refines the uninstallation process by implementing structured handling of user privileges and access denial scenarios. It introduces two `ProcessStartInfo` objects for user and admin uninstallation attempts, improving logging and error management. - **LocalLibrary.cs**: Added `uninstallUser` and `uninstallAdmin` `ProcessStartInfo` objects for handling uninstallation with and without elevated privileges. - **LocalLibrary.cs**: Replaced direct process start with structured error handling and logging for access denial and user cancellation scenarios.
合并状态:未合并 0 条评论