Skip to content

Commit 77f3277

Browse files
committed
fix(nsis): handle unquoted UninstallString #735
1 parent 63c67ef commit 77f3277

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
"yargs": "^5.0.0"
9797
},
9898
"optionalDependencies": {
99-
"appdmg": "^0.4.5"
99+
"appdmg-tf": "^0.4.7"
100100
},
101101
"config": {
102102
"pre-git": {

src/targets/dmg.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export class DmgTarget extends Target {
4343
debug(`appdmg: ${JSON.stringify(dmgOptions, <any>null, 2)}`)
4444
}
4545

46-
const emitter = require("appdmg")(dmgOptions)
46+
const emitter = require("appdmg-tf")(dmgOptions)
4747
await new BluebirdPromise((resolve, reject) => {
4848
emitter.on("error", reject)
4949
emitter.on("finish", resolve)

templates/nsis/installSection.nsh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
${if} $R0 != ""
55
Push $R0
66
Call GetInQuotes
7-
Pop $R0
7+
Pop $R1
8+
${if} $R1 != ""
9+
StrCpy $R0 "$R1"
10+
${endif}
811

912
ReadRegStr $R1 ${ROOT_KEY} "${INSTALL_REGISTRY_KEY}" InstallLocation
1013
${if} $R1 == ""

typings/appdmg.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ declare namespace appdmg {
1515
}
1616
}
1717

18-
declare module "appdmg" {
18+
declare module "appdmg-tf" {
1919
import { EventEmitter } from "events"
2020

2121
function appdmg(options: appdmg.Options): EventEmitter

0 commit comments

Comments
 (0)