UpdateUtils.h
1 #pragma once 2 3 #include <common/updating/updating.h> 4 5 void PeriodicUpdateWorker(); 6 void CheckForUpdatesCallback(); 7 8 namespace cmdArg 9 { 10 // Starts first stage of the PowerToys auto-update process, which involves copying action runner to a temp path and 11 // restarting it from there, so it doesn't interfere with the installation process. 12 const inline wchar_t* UPDATE_NOW_LAUNCH_STAGE1 = L"-update_now"; 13 // Stage 2 consists of starting the installer and optionally launching newly installed PowerToys binary. 14 // That's indicated by the following 2 flags. 15 const inline wchar_t* UPDATE_NOW_LAUNCH_STAGE2 = L"-update_now_stage_2"; 16 const inline wchar_t* UPDATE_STAGE2_RESTART_PT = L"restart"; 17 const inline wchar_t* UPDATE_STAGE2_DONT_START_PT = L"dont_start"; 18 19 const inline wchar_t* UPDATE_REPORT_SUCCESS = L"-report_update_success"; 20 } 21 22 SHELLEXECUTEINFOW LaunchPowerToysUpdate(const wchar_t* cmdline);