diff --git a/templates/nsis/uninstaller.nsh b/templates/nsis/uninstaller.nsh index 62affe0977c..09717a144c7 100644 --- a/templates/nsis/uninstaller.nsh +++ b/templates/nsis/uninstaller.nsh @@ -40,7 +40,7 @@ Section "un.install" !endif # delete the installed files - RMDir /r $INSTDIR + RMDir /r /REBOOTOK $INSTDIR ClearErrors ${GetParameters} $R0 diff --git a/test/src/nsisUpdaterTest.ts b/test/src/nsisUpdaterTest.ts index 50a527d4878..79bc7b2ae3c 100644 --- a/test/src/nsisUpdaterTest.ts +++ b/test/src/nsisUpdaterTest.ts @@ -12,7 +12,10 @@ const g = (global) g.__test_app = { getVersion: function () { return "0.0.1" - } + }, + + on: function () { + }, } test("check updates - no versions at all", async (t) => {