[feat] add portable Windows Service install prompt with one-click setup

This commit is contained in:
kunkundi
2026-05-27 19:32:58 +08:00
parent 00a8d59284
commit f121aa47f7
4 changed files with 326 additions and 0 deletions
+12
View File
@@ -1570,6 +1570,10 @@ int Render::DrawMainWindow() {
UpdateNotificationWindow();
#if _WIN32 && CROSSDESK_PORTABLE
PortableServiceInstallWindow();
#endif
#ifdef __APPLE__
if (show_request_permission_window_) {
RequestPermissionWindow();
@@ -1732,6 +1736,10 @@ int Render::Run() {
InitializeModules();
InitializeMainWindow();
#if _WIN32 && CROSSDESK_PORTABLE
CheckPortableWindowsService();
#endif
const int scaled_video_width_ = 160;
const int scaled_video_height_ = 90;
@@ -2247,6 +2255,10 @@ void Render::Cleanup() {
CleanupFactories();
CleanupPeers();
#if _WIN32 && CROSSDESK_PORTABLE
JoinPortableWindowsServiceInstallThread();
#endif
WaitForThumbnailSaveTasks();
AudioDeviceDestroy();