-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathSetup_ThumbGensPack.nsi
464 lines (354 loc) · 16.1 KB
/
Setup_ThumbGensPack.nsi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
; example2.nsi
;
; This script is based on example1.nsi, but it remember the directory,
; has uninstall support and (optionally) installs start menu shortcuts.
;
; It will install example2.nsi into a directory that the user selects,
;--------------------------------
!define APP "ThumbGensPack"
!define TTL "ThumbGensPack ${__TIMESTAMP__}"
!define COM "HIRAOKA HYPERS TOOLS, Inc."
!define VER "1.2.16"
!define CLSID "{93FB1A02-084D-43B4-A69F-65d8b86f2ab3}"
!define IID_IExtractImage "{BB2E617C-0920-11d1-9A0B-00C04FC2D6C1}"
!define IID_IThumbnailProvider "{e357fccd-a995-4576-b01f-234630154e96}"
!define IID_ISetPage4ThumbnailProvider "{d8d5f848-8223-42fc-bbcb-c40056b71a17}"
!define EPKey1 "{db1447dd-b517-4bab-962f-0f6c472cac35}"
!define EPKey2 "{1fcbd4d2-83e3-4b3d-8400-f0baf8969bb8}"
!system 'MySign ".\pdf2bmp2\release\pdf2bmp2.exe" ".\pdfpcnt\bin\Release\pdfpcnt.exe" ".\bpg2bmp\bin\DEBUG\bpg2bmp.exe" ".\Jnt2bmp\bin\x86\DEBUG\Jnt2bmp.exe" ".\dxf2bmp\bin\Release\dxf2bmp.exe" "CmdThumbGen\Release\CmdThumbGen.dll" "CmdThumbGen\x64\Release\CmdThumbGen.dll"'
!finalize 'MySign "%1"'
; The name of the installer
Name "${APP} ${VER}"
; The file to write
OutFile "Setup_${APP}.exe"
; The default installation directory
InstallDir "$PROGRAMFILES\${APP}"
; Registry key to check for directory (so if you install again, it will
; overwrite the old one automatically)
InstallDirRegKey HKLM "Software\${COM}\${APP}" "Install_Dir"
;SetCompress off
; Request application privileges for Windows Vista
RequestExecutionLevel admin
SetCompressor /solid zlib
XPStyle on
!include "LogicLib.nsh"
!include "Registry.nsh"
!include "x64.nsh"
!include "WordFunc.nsh"
;--------------------------------
; Pages
PageEx license
LicenseData GPLv2.rtf
PageExEnd
Page license
Page components
Page directory
Page instfiles
LicenseData Readme.rtf
UninstPage uninstConfirm
UninstPage instfiles
SetOverwrite ifdiff
;--------------------------------
; The stuff to install
; - - - Section - - -
Section ""
SetOutPath $INSTDIR
; Write the installation path into the registry
WriteRegStr HKLM "Software\${COM}\${APP}" "Install_Dir" "$INSTDIR"
; Write the uninstall keys for Windows
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP}" "DisplayName" "${TTL}"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP}" "UninstallString" '"$INSTDIR\uninstall.exe"'
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP}" "NoModify" 1
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP}" "NoRepair" 1
WriteUninstaller "$INSTDIR\uninstall.exe"
SectionEnd
; - - - Section - - -
Section "CmdThumbGen 導入"
; Set output path to the installation directory.
SetOutPath $INSTDIR
File ".\CmdThumbGen\Release\CmdThumbGen.dll"
File ".\CmdThumbGen\Release\CmdThumbGen.pdb"
ExecWait 'REGSVR32 /s "$OUTDIR\CmdThumbGen.dll"' $0
DetailPrint "結果: $0"
SectionEnd
Section /o "CmdThumbGen(x64) 導入" SEC_CMDTHUMBGEN_X64
; Set output path to the installation directory.
SetOutPath $INSTDIR\x64
File ".\CmdThumbGen\x64\Release\CmdThumbGen.dll"
File ".\CmdThumbGen\x64\Release\CmdThumbGen.pdb"
ExecWait 'REGSVR32 /s "$OUTDIR\CmdThumbGen.dll"' $0
DetailPrint "結果: $0"
SectionEnd
!macro BackupRegValue FULLPATH SRCVALUE TARVALUE
Push $R1
Push $R2
${registry::Read} "${FULLPATH}" "${TARVALUE}" $R1 $R2
${If} $R2 == ''
${registry::MoveValue} "${FULLPATH}" "${SRCVALUE}" "${FULLPATH}" "${TARVALUE}" $R1
${EndIf}
Pop $R2
Pop $R1
!macroend
!macro SetExtAssoc EXT
StrCpy $0 "${EXT}"
!insertmacro BackupRegValue "HKCR\$0\ShellEx\${IID_IExtractImage}" "" "Backup"
!insertmacro BackupRegValue "HKCR\$0\ShellEx\${IID_IThumbnailProvider}" "" "Backup"
WriteRegStr HKCR "$0\ShellEx\${IID_IExtractImage}" "" "${CLSID}"
WriteRegStr HKCR "$0\ShellEx\${IID_IThumbnailProvider}" "" "${CLSID}"
WriteRegStr HKCR "$0\ShellEx\${IID_ISetPage4ThumbnailProvider}" "" "${CLSID}"
!macroend
!macro SetProgidAssoc EXT
StrCpy $0 "${EXT}"
ReadRegStr $1 HKCR "$0" ""
${If} $1 == ''
${WordReplace} "$0file" "." "" "+" $1
WriteRegStr HKCR "$0" "" "$1"
WriteRegStr HKCR "$1" "DUMMY" ""
${EndIf}
${If} $1 != ''
ReadRegStr $2 HKCR "$1\CurVer" ""
${If} $2 != ''
StrCpy $1 $2
${EndIf}
!insertmacro BackupRegValue "HKCR\$1\ShellEx\${IID_IExtractImage}" "" "Backup"
!insertmacro BackupRegValue "HKCR\$1\ShellEx\${IID_IThumbnailProvider}" "" "Backup"
WriteRegStr HKCR "$1\ShellEx\${IID_IExtractImage}" "" "${CLSID}"
WriteRegStr HKCR "$1\ShellEx\${IID_IThumbnailProvider}" "" "${CLSID}"
WriteRegStr HKCR "$1\ShellEx\${IID_ISetPage4ThumbnailProvider}" "" "${CLSID}"
${EndIf}
!macroend
SectionGroup "PDF対応"
; - - - Section - - -
Section "pdf2bmp2,pdfpcnt一式"
; Set output path to the installation directory.
SetOutPath $INSTDIR
; Put file there
File ".\pdf2bmp2\release\pdf2bmp2.exe"
File ".\pdf2bmp2\release\pdf2bmp2.pdb"
File ".\pdf2bmp2\pdftoppm.exe"
File ".\pdfpcnt\bin\Release\pdfpcnt.exe"
File ".\pdfpcnt\bin\Release\pdfpcnt.exe.config"
File ".\pdfpcnt\bin\Release\pdfpcnt.pdb"
File ".\pdfpcnt\pdfinfo.exe"
${If} 32 < 8086
WriteRegStr HKLM "Software\HIRAOKA HYPERS TOOLS, Inc.\CmdThumbGen\FileExts\.pdf" "" '"$INSTDIR\pdf2bmp2.exe" "%1!s!" "%2!s!" "%3!u!" "%4!u!" "%5!u!"'
WriteRegStr HKLM "Software\HIRAOKA HYPERS TOOLS, Inc.\CmdThumbGen\FileExts\.pdf" "MP" '"$INSTDIR\pdf2bmp2.exe" "%1!s!" "%2!s!" "%3!u!" "%4!u!" "%5!u!" "%6!u!"'
WriteRegStr HKLM "Software\HIRAOKA HYPERS TOOLS, Inc.\CmdThumbGen\FileExts\.pdf" "GPC" '"$INSTDIR\pdfpcnt.exe" "%1!s!" "%2!s!"'
WriteRegStr HKLM "SOFTWARE\Microsoft\Internet Explorer\Low Rights\ElevationPolicy\${EPKey1}" "AppName" "pdf2bmp2.exe"
WriteRegStr HKLM "SOFTWARE\Microsoft\Internet Explorer\Low Rights\ElevationPolicy\${EPKey1}" "AppPath" "$INSTDIR"
WriteRegDWord HKLM "SOFTWARE\Microsoft\Internet Explorer\Low Rights\ElevationPolicy\${EPKey1}" "Policy" 1
${EndIf}
${If} ${RunningX64}
SetRegView 64
WriteRegStr HKLM "Software\HIRAOKA HYPERS TOOLS, Inc.\CmdThumbGen\FileExts\.pdf" "" '"$INSTDIR\pdf2bmp2.exe" "%1!s!" "%2!s!" "%3!u!" "%4!u!" "%5!u!"'
WriteRegStr HKLM "Software\HIRAOKA HYPERS TOOLS, Inc.\CmdThumbGen\FileExts\.pdf" "MP" '"$INSTDIR\pdf2bmp2.exe" "%1!s!" "%2!s!" "%3!u!" "%4!u!" "%5!u!" "%6!u!"'
WriteRegStr HKLM "Software\HIRAOKA HYPERS TOOLS, Inc.\CmdThumbGen\FileExts\.pdf" "GPC" '"$INSTDIR\pdfpcnt.exe" "%1!s!" "%2!s!"'
WriteRegStr HKLM "SOFTWARE\Microsoft\Internet Explorer\Low Rights\ElevationPolicy\${EPKey1}" "AppName" "pdf2bmp2.exe"
WriteRegStr HKLM "SOFTWARE\Microsoft\Internet Explorer\Low Rights\ElevationPolicy\${EPKey1}" "AppPath" "$INSTDIR"
WriteRegDWord HKLM "SOFTWARE\Microsoft\Internet Explorer\Low Rights\ElevationPolicy\${EPKey1}" "Policy" 1
SetRegView lastused
${EndIf}
SetOutPath "$INSTDIR\share"
File /r /x ".svn" "share\*.*"
SectionEnd
; - - - Section - - -
Section ".PDF 拡張子へ 関連付け"
!insertmacro SetExtAssoc ".pdf"
SectionEnd
; - - - Section - - -
Section ".PDF アプリへ 関連付け"
!insertmacro SetProgidAssoc ".pdf"
SectionEnd
SectionGroupEnd
SectionGroup "BPG対応"
; - - - Section - - -
Section "bpg2bmp,bpgdec一式"
; Set output path to the installation directory.
SetOutPath $INSTDIR
; Put file there
File ".\bpg2bmp\bin\DEBUG\bpg2bmp.exe"
File ".\bpg2bmp\bin\DEBUG\bpg2bmp.pdb"
File ".\bpg2bmp\bpgdec.exe"
${If} 32 < 8086
WriteRegStr HKLM "Software\HIRAOKA HYPERS TOOLS, Inc.\CmdThumbGen\FileExts\.bpg" "" '"$INSTDIR\bpg2bmp.exe" "%1!s!" "%2!s!" "%3!u!" "%4!u!"'
WriteRegStr HKLM "SOFTWARE\Microsoft\Internet Explorer\Low Rights\ElevationPolicy\${EPKey1}" "AppName" "bpg2bmp.exe"
WriteRegStr HKLM "SOFTWARE\Microsoft\Internet Explorer\Low Rights\ElevationPolicy\${EPKey1}" "AppPath" "$INSTDIR"
WriteRegDWord HKLM "SOFTWARE\Microsoft\Internet Explorer\Low Rights\ElevationPolicy\${EPKey1}" "Policy" 1
${EndIf}
${If} ${RunningX64}
SetRegView 64
WriteRegStr HKLM "Software\HIRAOKA HYPERS TOOLS, Inc.\CmdThumbGen\FileExts\.bpg" "" '"$INSTDIR\bpg2bmp.exe" "%1!s!" "%2!s!" "%3!u!" "%4!u!"'
WriteRegStr HKLM "SOFTWARE\Microsoft\Internet Explorer\Low Rights\ElevationPolicy\${EPKey1}" "AppName" "bpg2bmp.exe"
WriteRegStr HKLM "SOFTWARE\Microsoft\Internet Explorer\Low Rights\ElevationPolicy\${EPKey1}" "AppPath" "$INSTDIR"
WriteRegDWord HKLM "SOFTWARE\Microsoft\Internet Explorer\Low Rights\ElevationPolicy\${EPKey1}" "Policy" 1
SetRegView lastused
${EndIf}
SectionEnd
; - - - Section - - -
Section ".BPG 拡張子へ 関連付け"
!insertmacro SetExtAssoc ".bpg"
SectionEnd
; - - - Section - - -
Section ".BPG アプリへ 関連付け"
!insertmacro SetProgidAssoc ".bpg"
SectionEnd
SectionGroupEnd
SectionGroup "JNT対応 (Windows Journal Viewer 1.5 対応)"
; - - - Section - - -
Section /o "Jnt2bmp一式"
; Set output path to the installation directory.
SetOutPath $INSTDIR
; Put file there
File ".\Jnt2bmp\bin\x86\DEBUG\Jnt2bmp.exe"
File ".\Jnt2bmp\bin\x86\DEBUG\Jnt2bmp.pdb"
File ".\Jnt2bmp\bin\x86\DEBUG\AxInterop.NbDocViewerLib.dll"
File ".\Jnt2bmp\bin\x86\DEBUG\Interop.NbDocViewerLib.dll"
${If} 32 < 8086
WriteRegStr HKLM "Software\HIRAOKA HYPERS TOOLS, Inc.\CmdThumbGen\FileExts\.jnt" "" '"$INSTDIR\Jnt2bmp.exe" "%1!s!" "%2!s!" "%3!u!" "%4!u!"'
WriteRegStr HKLM "SOFTWARE\Microsoft\Internet Explorer\Low Rights\ElevationPolicy\${EPKey2}" "AppName" "Jnt2bmp.exe"
WriteRegStr HKLM "SOFTWARE\Microsoft\Internet Explorer\Low Rights\ElevationPolicy\${EPKey2}" "AppPath" "$INSTDIR"
WriteRegDWord HKLM "SOFTWARE\Microsoft\Internet Explorer\Low Rights\ElevationPolicy\${EPKey2}" "Policy" 1
${EndIf}
${If} ${RunningX64}
SetRegView 64
WriteRegStr HKLM "Software\HIRAOKA HYPERS TOOLS, Inc.\CmdThumbGen\FileExts\.jnt" "" '"$INSTDIR\Jnt2bmp.exe" "%1!s!" "%2!s!" "%3!u!" "%4!u!"'
WriteRegStr HKLM "SOFTWARE\Microsoft\Internet Explorer\Low Rights\ElevationPolicy\${EPKey2}" "AppName" "Jnt2bmp.exe"
WriteRegStr HKLM "SOFTWARE\Microsoft\Internet Explorer\Low Rights\ElevationPolicy\${EPKey2}" "AppPath" "$INSTDIR"
WriteRegDWord HKLM "SOFTWARE\Microsoft\Internet Explorer\Low Rights\ElevationPolicy\${EPKey2}" "Policy" 1
SetRegView lastused
${EndIf}
SectionEnd
; - - - Section - - -
Section /o ".JNT 拡張子へ 関連付け"
!insertmacro SetExtAssoc ".jnt"
SectionEnd
; - - - Section - - -
Section /o "開く: Microsoft Windows Journal Viewer 1.5" SEC_JOURNAL
ExecShell "open" "http://www.microsoft.com/downloads/ja-jp/details.aspx?FamilyID=fad44098-8b73-4e06-96d4-d1eb70eacb44"
SectionEnd
SectionGroupEnd
SectionGroup "DXF対応"
; - - - Section - - -
Section /o "dxf2bmp一式"
; Set output path to the installation directory.
SetOutPath $INSTDIR
; Put file there
File ".\dxf2bmp\bin\Release\dxf2bmp.pdb"
File ".\dxf2bmp\bin\Release\dxf2bmp.exe"
${If} 32 < 8086
WriteRegStr HKLM "Software\HIRAOKA HYPERS TOOLS, Inc.\CmdThumbGen\FileExts\.dxf" "" '"$INSTDIR\dxf2bmp.exe" "%1!s!" "%2!s!" "%3!u!" "%4!u!"'
${EndIf}
${If} ${RunningX64}
SetRegView 64
WriteRegStr HKLM "Software\HIRAOKA HYPERS TOOLS, Inc.\CmdThumbGen\FileExts\.dxf" "" '"$INSTDIR\dxf2bmp.exe" "%1!s!" "%2!s!" "%3!u!" "%4!u!"'
SetRegView lastused
${EndIf}
IfFileExists "$WINDIR\Microsoft.NET\Framework\v3.5\*.*" Avail
MessageBox MB_ICONEXCLAMATION "dxf2bmpを実行するには.NET Framework 3.5が必要です。$\n$\n検出されなかったようなので、警告いたします。"
Avail:
SectionEnd
; - - - Section - - -
Section /o ".DXF 拡張子へ 関連付け"
!insertmacro SetExtAssoc ".dxf"
SectionEnd
; - - - Section - - -
Section /o ".DXF アプリへ 関連付け"
!insertmacro SetProgidAssoc ".dxf"
SectionEnd
SectionGroupEnd
; - - - Section - - -
Section /o "ソースコード入手"
; Set output path to the installation directory.
SetOutPath "$INSTDIR\src"
File /r /x ".svn" "src\*.*"
SectionEnd
Section "Refresh Desktop"
; http://nsis.sourceforge.net/Refresh_Desktop
System::Call 'Shell32::SHChangeNotify(i 0x8000000, i 0, i 0, i 0)'
SectionEnd
Function .onInit
; ReadRegStr $0 HKCR "CLSID\{03A421AD-E8EE-4c47-9A03-FB386747186B}\InprocServer32" ""
; IfFileExists $0 Skip
; SectionSetFlags ${SEC_JOURNAL} ${SF_SELECTED}
; Skip:
${If} $PROGRAMFILES32 != $PROGRAMFILES64
SectionSetFlags ${SEC_CMDTHUMBGEN_X64} ${SF_SELECTED}
${EndIf}
FunctionEnd
;--------------------------------
; Uninstaller
!macro RestoreAssoc EXT
StrCpy $0 "${EXT}"
DetailPrint "$0 関連付け復元"
DeleteRegValue HKCR "$0\ShellEx\${IID_IExtractImage}" ""
DeleteRegValue HKCR "$0\ShellEx\${IID_IThumbnailProvider}" ""
DeleteRegValue HKCR "$0\ShellEx\${IID_ISetPage4ThumbnailProvider}" ""
${registry::MoveValue} "HKCR\$0\ShellEx\${IID_IExtractImage}" "Backup" "HKCR\$0\ShellEx\${IID_IExtractImage}" "" $2
${registry::MoveValue} "HKCR\$0\ShellEx\${IID_IThumbnailProvider}" "Backup" "HKCR\$0\ShellEx\${IID_IThumbnailProvider}" "" $2
DeleteRegKey HKLM "Software\HIRAOKA HYPERS TOOLS, Inc.\CmdThumbGen\FileExts\$0"
ReadRegStr $1 HKCR "$0" ""
${If} $1 != ''
ReadRegStr $2 HKCR "$1\CurVer" ""
${If} $2 != ''
StrCpy $1 $2
${EndIf}
DeleteRegValue HKCR "$1\ShellEx\${IID_IExtractImage}" ""
DeleteRegValue HKCR "$1\ShellEx\${IID_IThumbnailProvider}" ""
DeleteRegValue HKCR "$1\ShellEx\${IID_ISetPage4ThumbnailProvider}" ""
${registry::MoveValue} "HKCR\$1\ShellEx\${IID_IExtractImage}" "Backup" "HKCR\$1\ShellEx\${IID_IExtractImage}" "" $2
${registry::MoveValue} "HKCR\$1\ShellEx\${IID_IThumbnailProvider}" "Backup" "HKCR\$1\ShellEx\${IID_IThumbnailProvider}" "" $2
${EndIf}
!macroend
Section "Uninstall"
; Remove files and uninstaller
Delete "$INSTDIR\pdf2bmp.exe"
Delete "$INSTDIR\pdf2bmp.pdb"
Delete "$INSTDIR\pdftoppm.exe"
Delete "$INSTDIR\pdf2bmp2.exe"
Delete "$INSTDIR\pdf2bmp2.pdb"
Delete "$INSTDIR\pdfpcnt.exe"
Delete "$INSTDIR\pdfpcnt.pdb"
Delete "$INSTDIR\pdfinfo.exe"
Delete "$INSTDIR\dxf2bmp.exe"
Delete "$INSTDIR\dxf2bmp.pdb"
Delete "$INSTDIR\Jnt2bmp.exe"
Delete "$INSTDIR\Jnt2bmp.pdb"
Delete "$INSTDIR\AxInterop.NbDocViewerLib.dll"
Delete "$INSTDIR\Interop.NbDocViewerLib.dll"
${If} 32 < 8086
DeleteRegKey HKLM "SOFTWARE\Microsoft\Internet Explorer\Low Rights\ElevationPolicy\${EPKey1}"
DeleteRegKey HKLM "SOFTWARE\Microsoft\Internet Explorer\Low Rights\ElevationPolicy\${EPKey2}"
${EndIf}
${If} ${RunningX64}
SetRegView 64
DeleteRegKey HKLM "SOFTWARE\Microsoft\Internet Explorer\Low Rights\ElevationPolicy\${EPKey1}"
DeleteRegKey HKLM "SOFTWARE\Microsoft\Internet Explorer\Low Rights\ElevationPolicy\${EPKey2}"
SetRegView lastused
${EndIf}
ExecWait 'REGSVR32 /s /u "$INSTDIR\CmdThumbGen.dll"' $0
DetailPrint "結果: $0"
Delete "$INSTDIR\CmdThumbGen.dll"
Delete "$INSTDIR\CmdThumbGen.pdb"
ExecWait 'REGSVR32 /s /u "$INSTDIR\x64\CmdThumbGen.dll"' $0
DetailPrint "結果: $0"
Delete "$INSTDIR\x64\CmdThumbGen.dll"
Delete "$INSTDIR\x64\CmdThumbGen.pdb"
RMDir "$INSTDIR\x64"
; Remove .pdf assoc ->
!insertmacro RestoreAssoc ".pdf"
; <- Remove .pdf assoc
; Remove .dxf assoc ->
!insertmacro RestoreAssoc ".dxf"
; <- Remove .dxf assoc
; Remove .jnt assoc ->
!insertmacro RestoreAssoc ".jnt"
; <- Remove .jnt assoc
; Remove registry keys
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP}"
DeleteRegKey HKLM "Software\${COM}\${APP}"
!include "Dlist.txt"
RMDir "$INSTDIR\share"
Delete "$INSTDIR\uninstall.exe"
; Remove directories used
RMDir "$INSTDIR"
SectionEnd