[RAPPS] Automatically generate installer/uninstaller for downloaded zip/cab files (#6652)

With a single database line added to applications distributed as zip/cab allows rapps.exe to act as an installer that automatically extracts the files and creates a startmenu shortcut. It can also uninstall the extracted files (and optionally other files and registry entries created by the application).
This commit is contained in:
Whindmar Saksit 2024-05-08 23:58:54 +02:00 committed by GitHub
parent ad8392602e
commit 57b775ef6e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
43 changed files with 1638 additions and 137 deletions

View file

@ -275,7 +275,7 @@ CMainWindow::RemoveSelectedAppFromRegistry()
return FALSE;
if (MessageBoxW(szMsgText, szMsgTitle, MB_YESNO | MB_ICONQUESTION) == IDYES)
return m_Db->RemoveInstalledAppFromRegistry(InstalledApp);
return m_Db->RemoveInstalledAppFromRegistry(InstalledApp) == ERROR_SUCCESS;
return FALSE;
}
@ -290,7 +290,7 @@ CMainWindow::UninstallSelectedApp(BOOL bModify)
if (!InstalledApp)
return FALSE;
return InstalledApp->UninstallApplication(bModify);
return InstalledApp->UninstallApplication(bModify ? UCF_MODIFY : UCF_NONE);
}
VOID