diff --git a/packages/electron-updater/src/NsisUpdater.ts b/packages/electron-updater/src/NsisUpdater.ts index 1529ea7899b..324ee85ae14 100644 --- a/packages/electron-updater/src/NsisUpdater.ts +++ b/packages/electron-updater/src/NsisUpdater.ts @@ -106,7 +106,7 @@ export class NsisUpdater extends BaseUpdater { const packagePath = this.downloadedUpdateHelper.packageFile if (packagePath != null) { // only = form is supported - args.push(`--package-file=${packagePath}`) + args.push(`--package-file="${packagePath}"`) } const spawnOptions = { @@ -188,4 +188,4 @@ export class NsisUpdater extends BaseUpdater { } return false } -} \ No newline at end of file +}