diff --git a/packages/app-builder-lib/src/targets/nsis/NsisTarget.ts b/packages/app-builder-lib/src/targets/nsis/NsisTarget.ts index 94746ff7197..5372442ad44 100644 --- a/packages/app-builder-lib/src/targets/nsis/NsisTarget.ts +++ b/packages/app-builder-lib/src/targets/nsis/NsisTarget.ts @@ -167,7 +167,7 @@ export class NsisTarget extends Target { APP_PACKAGE_NAME: appInfo.name } if (uninstallAppKey !== guid) { - defines.UNINSTALL_REGISTRY_KEY_2 = `Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\${guid}` + defines.UNINSTALL_REGISTRY_KEY_2 = `Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\{${guid}}` } const commands: any = { diff --git a/packages/app-builder-lib/templates/nsis/multiUser.nsh b/packages/app-builder-lib/templates/nsis/multiUser.nsh index 3de631bf0ce..3d35c36d256 100644 --- a/packages/app-builder-lib/templates/nsis/multiUser.nsh +++ b/packages/app-builder-lib/templates/nsis/multiUser.nsh @@ -6,7 +6,7 @@ # allow user to define own custom !define /ifndef INSTALL_REGISTRY_KEY "Software\${APP_GUID}" -!define /ifndef UNINSTALL_REGISTRY_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${UNINSTALL_APP_KEY}" +!define /ifndef UNINSTALL_REGISTRY_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\{${UNINSTALL_APP_KEY}}" # current Install Mode ("all" or "CurrentUser") Var installMode