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
|
; dia2code
; Win32 Installer Source Code for NSIS 1.44
; (c) 2001 Steffen Macke <sdteffen@yahoo.com>
; ***************************************************************************
; * *
; * This program is free software; you can redistribute it and/or modify *
; * it under the terms of the GNU General Public License as published by *
; * the Free Software Foundation; either version 2 of the License, or *
; * (at your option) any later version. *
; * *
; ***************************************************************************
Name "dia2code 0.7"
LicenseText "Please read and agree to this license before continuiung."
LicenseData COPYING
ComponentText "This will install dia2code 0.7 on your system. Select which options you want set up."
DirText "Select a directory to install the program in."
UninstallText "This will uninstall the dia2code 0.7. Hit Next to uninstall, or Cancel to cancel."
UninstallExeName uninstall-dia2code-0.7.exe
OutFile dia2code-0.7-setup.exe
InstallDir $PROGRAMFILES\dia2code
Icon dia.ico
EnabledBitmap dia1.bmp
DisabledBitmap dia2.bmp
InstType Typical
InstallDirRegKey HKEY_LOCAL_MACHINE "Software\dia2code" "instpath"
SetOverwrite on
Section "dia2code 0.7"
SetOutPath $INSTDIR
File COPYING
File README
File README.win32
SetOutPath $INSTDIR\bin
File dia2code\dia2code.exe
File dia2code\libxml2.dll
WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\dia2code" "DisplayName" "dia2code 0.7 (remove only)"
WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\dia2code" "UninstallString" '"$INSTDIR\uninstall-dia2code-0.7.exe"'
WriteRegStr HKEY_CLASSES_ROOT "diaFile\Shell\DefaultIcon" "" "$INSTDIR\bin\dia.exe"
WriteRegStr HKEY_LOCAL_MACHINE "Software\dia2code" "instpath" $INSTDIR
SectionEnd
Section "Context Menu Entries"
SectionIn 1
WriteRegStr HKEY_CLASSES_ROOT ".dia" "" "diaFile"
WriteRegStr HKEY_CLASSES_ROOT ".dia" "Content Type" "application/dia"
WriteRegStr HKEY_CLASSES_ROOT "diaFile" "" "diaFile"
WriteRegBin HKEY_CLASSES_ROOT "diaFile" "EditFlags" 00000100
WriteRegStr HKEY_CLASSES_ROOT "diaFile\Shell\createsql" "" "Create SQL definition"
WriteRegStr HKEY_CLASSES_ROOT "diaFile\Shell\createsql\command" "" '"$INSTDIR\bin\dia2code.exe" -t sql "%1"'
WriteRegStr HKEY_CLASSES_ROOT "diaFile\Shell\createc" "" "Create C code"
WriteRegStr HKEY_CLASSES_ROOT "diaFile\Shell\createc\command" "" '"$INSTDIR\bin\dia2code.exe" -t c "%1"'
WriteRegStr HKEY_CLASSES_ROOT "diaFile\Shell\createcpp" "" "Create C++ code"
WriteRegStr HKEY_CLASSES_ROOT "diaFile\Shell\createcpp\command" "" '"$INSTDIR\bin\dia2code.exe" -t cpp "%1"'
WriteRegStr HKEY_CLASSES_ROOT "diaFile\Shell\createjava" "" "Create Java code"
WriteRegStr HKEY_CLASSES_ROOT "diaFile\Shell\createjava\command" "" '"$INSTDIR\bin\dia2code.exe" -t java "%1"'
WriteRegStr HKEY_CLASSES_ROOT "diaFile\Shell\createada" "" "Create ADA code"
WriteRegStr HKEY_CLASSES_ROOT "diaFile\Shell\createada\command" "" '"$INSTDIR\bin\dia2code.exe" -t ada "%1"'
WriteRegStr HKEY_CLASSES_ROOT "diaFile\Shell\createpython" "" "Create Python code"
WriteRegStr HKEY_CLASSES_ROOT "diaFile\Shell\createpython\command" "" '"$INSTDIR\bin\dia2code.exe" -t python "%1"'
SectionEnd
Section "Start Menu Entries"
SectionIn 1
SetOutPath "$SMPROGRAMS\dia2code"
File "dia2code Homepage.url"
File "Report a Bug.url"
File /oname=README.txt README
File /oname=README.win32.txt README.win32
SetOutPath $INSTDIR\bin
CreateShortCut "$SMPROGRAMS\dia2code\Uninstall dia2code 0.7.lnk" "$INSTDIR\uninstall-dia2code-0.7.exe" "" "" 0
SectionEnd
Section Uninstall
Delete $INSTDIR\bin\dia2code.exe
Delete $INSTDIR\bin\libxml2.dll
RMDir $INSTDIR\bin
Delete $INSTDIR\COPYING
Delete $INSTDIR\README
Delete $INSTDIR\README.win32
Delete $INSTDIR\uninstall-dia2code-0.7.exe
RMDir $INSTDIR
Delete "$SMPROGRAMS\dia2code\*.*"
RMDir "$SMPROGRAMS\dia2code"
DeleteRegValue HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\dia2code" "UninstallString"
DeleteRegValue HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\dia2code" "DisplayName"
DeleteRegKey HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\dia2code"
SectionEnd
|