Skip to content

Commit b449c55

Browse files
committed
add a flag for silent uninstallation and bump to v6.2.4
[release]
1 parent 18653d9 commit b449c55

3 files changed

Lines changed: 18 additions & 10 deletions

File tree

QuickRotate.cpp

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -366,9 +366,11 @@ bool EnsureInstalled(wchar_t* finalPath, bool forceUpdate) {
366366
return false;
367367
}
368368

369-
void RunUninstall() {
370-
if (MessageBoxW(NULL, L"Are you sure you want to uninstall Quick Rotate and remove all settings?", AppTitle, MB_OKCANCEL | MB_ICONWARNING) != IDOK) {
371-
return;
369+
void RunUninstall(bool silent = false) {
370+
if (!silent) {
371+
if (MessageBoxW(NULL, L"Are you sure you want to uninstall Quick Rotate and remove all settings?", AppTitle, MB_OKCANCEL | MB_ICONWARNING) != IDOK) {
372+
return;
373+
}
372374
}
373375

374376
HWND hExisting = FindWindowW(AppClass, NULL);
@@ -401,7 +403,9 @@ void RunUninstall() {
401403
DeleteFileW(iniPath);
402404
RegDeleteKeyW(HKEY_CURRENT_USER, UNINSTALL_REG_PATH);
403405

404-
MessageBoxW(NULL, L"Quick Rotate was successfully removed from your computer.", AppTitle, MB_OK | MB_ICONINFORMATION);
406+
if (!silent) {
407+
MessageBoxW(NULL, L"Quick Rotate was successfully removed from your computer.", AppTitle, MB_OK | MB_ICONINFORMATION);
408+
}
405409

406410
wchar_t appDir[MAX_PATH];
407411
GetAppDataPath(appDir, NULL);
@@ -1575,7 +1579,11 @@ extern "C" int WINAPI WinMain(HINSTANCE hI, HINSTANCE hP, LPSTR c, int s) {
15751579
bSilentStart = true;
15761580
}
15771581
else if (lstrcmpiW(cmd, L"-nuke") == 0) {
1578-
RunUninstall();
1582+
RunUninstall(false);
1583+
CleanExit();
1584+
}
1585+
else if (lstrcmpiW(cmd, L"-silentnuke") == 0) {
1586+
RunUninstall(true);
15791587
CleanExit();
15801588
}
15811589
else {

QuickRotate.rc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ BEGIN
3333
BLOCK "040904b0"
3434
BEGIN
3535
VALUE "CompanyName", "ArKT-7"
36-
VALUE "FileDescription", "Quick Rotate v6.2.3 by ArKT-7"
36+
VALUE "FileDescription", "Quick Rotate v6.2.4 by ArKT-7"
3737
VALUE "FileVersion", VERSION_STR
3838
VALUE "InternalName", "QuickRotate"
3939
VALUE "LegalCopyright", "Copyright (C) 2026 ArKT-7"

version.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#define VERSION_STR "6.2.3"
2-
#define VERSION_W L"6.2.3"
3-
#define VERSION_CSV 6,2,3,0
4-
#define VERSION_XML "6.2.3.0"
1+
#define VERSION_STR "6.2.4"
2+
#define VERSION_W L"6.2.4"
3+
#define VERSION_CSV 6,2,4,0
4+
#define VERSION_XML "6.2.4.0"
55
#define DOWNLOAD_URL L"https://github.com/ArKT-7/QuickRotate/releases/latest/download/QuickRotate.exe"
66
#define BUILD "1"

0 commit comments

Comments
 (0)