diff --git a/node_modules/app-builder-lib/out/targets/nsis/NsisTarget.js b/node_modules/app-builder-lib/out/targets/nsis/NsisTarget.js
index 1e4ef94..5f64a59 100644
--- a/node_modules/app-builder-lib/out/targets/nsis/NsisTarget.js
+++ b/node_modules/app-builder-lib/out/targets/nsis/NsisTarget.js
@@ -367,7 +367,12 @@ class NsisTarget extends core_1.Target {
             }
         }
         else {
-            await (0, wine_1.execWine)(installerPath, null, [], { env: { __COMPAT_LAYER: "RunAsInvoker" } });
+            try {
+                await nsisUtil_1.UninstallerReader.exec(installerPath, uninstallerPath);
+            }
+            catch (_error) {
+                await (0, wine_1.execWine)(installerPath, null, [], { env: { __COMPAT_LAYER: "RunAsInvoker" } });
+            }
         }
         await packager.signIf(uninstallerPath);
         delete defines.BUILD_UNINSTALLER;
