Ignore StubPath deletion failures on uninstall

Custom action failure can prevent uninstall to finish and trigger a
rollback.

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
Simon Rozman 2020-01-03 12:53:11 +01:00
parent 024d705cce
commit 18cd389029

View File

@ -60,7 +60,7 @@ if (data && data.length >= 2) {
// We should have set the StubPath to execute cleanup. Unfortunately, when
// the StubPath gets executed, the MSI package is gone already. So, a
// `msiexec /x [ProductCode] /qn` is not possible any more.
wsh.RegDelete(regPath + "StubPath");
try { wsh.RegDelete(regPath + "StubPath"); } catch (err) {}
break;
}
}