Skip to content

Commit

Permalink
fix(nsis): handle unquoted UninstallString #735
Browse files Browse the repository at this point in the history
  • Loading branch information
develar committed Sep 16, 2016
1 parent 63c67ef commit 77f3277
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"yargs": "^5.0.0"
},
"optionalDependencies": {
"appdmg": "^0.4.5"
"appdmg-tf": "^0.4.7"
},
"config": {
"pre-git": {
Expand Down
2 changes: 1 addition & 1 deletion src/targets/dmg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class DmgTarget extends Target {
debug(`appdmg: ${JSON.stringify(dmgOptions, <any>null, 2)}`)
}

const emitter = require("appdmg")(dmgOptions)
const emitter = require("appdmg-tf")(dmgOptions)
await new BluebirdPromise((resolve, reject) => {
emitter.on("error", reject)
emitter.on("finish", resolve)
Expand Down
5 changes: 4 additions & 1 deletion templates/nsis/installSection.nsh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
${if} $R0 != ""
Push $R0
Call GetInQuotes
Pop $R0
Pop $R1
${if} $R1 != ""
StrCpy $R0 "$R1"
${endif}

ReadRegStr $R1 ${ROOT_KEY} "${INSTALL_REGISTRY_KEY}" InstallLocation
${if} $R1 == ""
Expand Down
2 changes: 1 addition & 1 deletion typings/appdmg.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ declare namespace appdmg {
}
}

declare module "appdmg" {
declare module "appdmg-tf" {
import { EventEmitter } from "events"

function appdmg(options: appdmg.Options): EventEmitter
Expand Down

0 comments on commit 77f3277

Please sign in to comment.