From 5c7c4ac20c0857a55fcfabb36b95800ec421fec7 Mon Sep 17 00:00:00 2001 From: develar Date: Mon, 31 Oct 2016 07:58:24 +0100 Subject: [PATCH] fix: attempt to fix "old version dir is empty" --- templates/nsis/uninstaller.nsh | 2 +- test/src/nsisUpdaterTest.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) 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) => {