diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-11-25 22:05:24 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-11-27 00:53:17 +0100 |
| commit | 5c30c86963e309bb4cb20e8950e2c2c330489dee (patch) | |
| tree | 204986083654a7e5450265c9052e38e9629348b5 /platform | |
| parent | f3f4be589c4b969520c17e42f9249f62509f0649 (diff) | |
Extract some common parts of the uninstaller.
Diffstat (limited to 'platform')
| -rw-r--r-- | platform/windows/wscript | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/platform/windows/wscript b/platform/windows/wscript index eb32596ac..e5a54c94e 100644 --- a/platform/windows/wscript +++ b/platform/windows/wscript @@ -462,14 +462,14 @@ SectionEnd !insertmacro MUI_LANGUAGE "English" """, file=f) - if debug: - print(""" + print(""" Section "Uninstall" RMDir /r "$INSTDIR\\*.*" RMDir "$INSTDIR" -Delete "$DESKTOP\\DCP-o-matic 2 debug.lnk" - """, file=f) + """, file=f) + if debug: + print('Delete "$DESKTOP\\DCP-o-matic 2 debug.lnk"', file=f) for s, l in tools: print('Delete "$DESKTOP\\DCP-o-matic 2 %s debug.lnk"' % l, file=f) @@ -481,13 +481,7 @@ DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\U SectionEnd """, file=f) else: - print(""" -Section "Uninstall" -RMDir /r "$INSTDIR\\*.*" -RMDir "$INSTDIR" -Delete "$DESKTOP\\DCP-o-matic 2.lnk" - """, file=f) - + print('Delete "$DESKTOP\\DCP-o-matic 2.lnk"', file=f) for s, l in tools: print('Delete "$DESKTOP\\DCP-o-matic 2 %s.lnk"' % l) |
