Skip to content

Commit

Permalink
Merge pull request #76 from demetris-manikas/master
Browse files Browse the repository at this point in the history
Added support for windows  Unistall/DisplayVersion
  • Loading branch information
stefanjudis committed Nov 24, 2015
2 parents f9499e2 + e097779 commit d01fe82
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ config.json.sample:
},
"win" : {
"title" : "Loopline Systems",
"version" : "x.x.x.x",
"icon" : "assets/win/icon.ico",
"nsiTemplate" : "path/to/custom/installer.nsi.tpl"
}
Expand All @@ -129,6 +130,9 @@ This property contains the configuration for the OSX dmg window. This property i
### `win.title`
Title of your application shown in generated windows installer.

### `win.version`
Version of your application shown in add/remove programs list.

### `win.icon`
Icon to be shown in installation process.

Expand Down
1 change: 1 addition & 0 deletions lib/win.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ var WinBuilder = {
var configFilePath = writeConfigFile( nsiTemplate, {
appPath : _windowsify( options.appPath ),
name : options.config.win.title,
version : options.config.win.version,
out : _windowsify( options.out )
} );

Expand Down
3 changes: 3 additions & 0 deletions templates/installer.nsi.tpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
!define APP_NAME "<%= name %>"
!define APP_VERSION "<%= version %>"
!define APP_DIR "${APP_NAME}"

Name "${APP_NAME}"
Expand Down Expand Up @@ -58,6 +59,8 @@ Section
"UninstallString" "$INSTDIR\Uninstall ${APP_NAME}.exe"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_NAME}" \
"DisplayIcon" "$INSTDIR\icon.ico"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_NAME}" \
"DisplayVersion" "$APP_VERSION"
SectionEnd

# create a section to define what the uninstaller does
Expand Down

0 comments on commit d01fe82

Please sign in to comment.