diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2011-04-29 21:00:05 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2011-04-29 21:00:05 +0200 |
commit | e51c70ee8abeaab044354d6c232bec40b7d2ecca (patch) | |
tree | c9a015915daf7877d77297ef3dad5c913d3de10e | |
parent | 1aa36eb18c490095e3bc6d3ee271f697055402e7 (diff) | |
download | mupdf-e51c70ee8abeaab044354d6c232bec40b7d2ecca.tar.xz |
Don't use RegDeleteTree; it's only supported in Vista and up.
-rw-r--r-- | apps/win_main.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/apps/win_main.c b/apps/win_main.c index fc276988..aeb23498 100644 --- a/apps/win_main.c +++ b/apps/win_main.c @@ -83,21 +83,6 @@ void install_app(char *argv0) RegCloseKey(software); } -void uninstall_app(void) -{ - HKEY software, classes; - - RegOpenKeyExA(HKEY_CURRENT_USER, "Software", 0, KEY_ALL_ACCESS, &software); - RegOpenKeyExA(software, "Classes", 0, KEY_ALL_ACCESS, &classes); - - RegDeleteTreeA(classes, "MuPDF"); - - RegCloseKey(classes); - RegCloseKey(software); - - MessageBoxA(hwndframe, "MuPDF has been uninstalled.", "MuPDF", MB_ICONWARNING); -} - /* * Dialog boxes */ @@ -866,11 +851,6 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShow if (argc == 2) { - if (argv[1][0] == '-' && argv[1][1] == 'u' && argv[1][2] == 0) - { - uninstall_app(); - exit(0); - } wcscpy(wbuf, argv[1]); } else |