~ubuntu-branches/debian/sid/librecad/sid

« back to all changes in this revision

Viewing changes to scripts/postprocess-windows/nsis-5.1.nsi

  • Committer: Package Import Robot
  • Author(s): Scott Howard
  • Date: 2013-12-30 12:17:45 UTC
  • mfrom: (0.2.10)
  • Revision ID: package-import@ubuntu.com-20131230121745-nfji56gc8mv8y6ve
Tags: 2.0.0+nolibs-1
* New upstream release
* Debian S-V 3.9.5, no changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
  !include "MUI2.nsh"
12
12
  !include "WinVer.nsh"
13
13
 
 
14
  !define APPNAME "LibreCAD"
14
15
  !define MUI_ICON "..\..\librecad\res\main\librecad.ico"
 
16
  !define MUI_UNICON "..\..\librecad\res\main\uninstall.ico"
 
17
 
 
18
  !define UNINSTKEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APPNAME}"
15
19
 
16
20
;--------------------------------
17
21
;General
18
22
 
19
23
  ;Name and file
20
 
  Name "LibreCAD"
 
24
  Name "${APPNAME}"
21
25
  OutFile "../../generated/LibreCAD-Installer.exe"
22
26
 
23
27
  ;Default installation folder
84
88
 
85
89
;--- define Qt folders if not already defined in custom-5.1.nsh
86
90
!ifndef Qt_Dir
87
 
    !define Qt_Dir      "C:\Qt"
 
91
    !define Qt_Dir      "C:\Qt\Qt5.1.1"
88
92
!endif
89
93
!ifndef Qt_Version
90
94
    !define Qt_Version  "5.1.1"
162
166
  createShortCut "$SMPROGRAMS\LibreCAD\LibreCAD.lnk" "$INSTDIR\LibreCAD.exe"
163
167
  createShortCut "$SMPROGRAMS\LibreCAD\Uninstall.lnk" "$INSTDIR\Uninstall.exe"
164
168
 
 
169
  ; create add/remove software entries
 
170
  WriteRegStr HKLM "${UNINSTKEY}" "DisplayName" "${APPNAME}"
 
171
  WriteRegStr HKLM "${UNINSTKEY}" "DisplayIcon" "$INSTDIR\LibreCAD.exe"
 
172
  WriteRegStr HKLM "${UNINSTKEY}" "DisplayVersion" "2.0.0rc3"
 
173
  WriteRegStr HKLM "${UNINSTKEY}" "Publisher" "LibreCAD Team"
 
174
  WriteRegStr HKLM "${UNINSTKEY}" "Version" "2.0"
 
175
  WriteRegStr HKLM "${UNINSTKEY}" "HelpLink" "http://librecad.org/cms/home/get-help/forum.html"
 
176
  WriteRegStr HKLM "${UNINSTKEY}" "InstallLocation" "$INSTDIR"
 
177
  WriteRegStr HKLM "${UNINSTKEY}" "URLInfoAbout" "http://librecad.org/"
 
178
  WriteRegStr HKLM "${UNINSTKEY}" "Comments" "LibreCAD - Open Source 2D-CAD"
 
179
  WriteRegStr HKLM "${UNINSTKEY}" "UninstallString" "$INSTDIR\Uninstall.exe"
 
180
  WriteRegDWORD HKLM "${UNINSTKEY}" "VersionMinor" "0"
 
181
  WriteRegDWORD HKLM "${UNINSTKEY}" "VersionMajor" "2"
 
182
  WriteRegDWORD HKLM "${UNINSTKEY}" "NoModify" "1"
 
183
  WriteRegDWORD HKLM "${UNINSTKEY}" "NoRepair" "1"
 
184
 
165
185
  ; Open Donate URL
166
186
  Exec "rundll32 url.dll,FileProtocolHandler http://librecad.org/donate.html"
167
187
 
188
208
  RMDir "$INSTDIR"
189
209
 
190
210
  DeleteRegKey /ifempty HKCU "Software\LibreCAD"
 
211
  DeleteRegKey HKLM "${UNINSTKEY}"
191
212
 
192
213
SectionEnd
193
214