1 /* Resources.Designer.cs $
\r
3 This file is part of the HandBrake source code.
\r
4 Homepage: <http://handbrake.fr/>.
\r
5 It may be used under the terms of the GNU General Public License. */
\r
8 * This file come from HandBrake source code by http://handbrake.fr/ ,
\r
9 * and modified by hylom <hylomm@gmail.com> for HandBrake Japanese version.
\r
10 * It may be used under the terms of the GNU General Public License.
\r
11 * last modified date: $Format:%cd$
\r
15 ; Script generated by the HM NIS Edit Script Wizard.
\r
17 ; HM NIS Edit Wizard helper defines
\r
18 !define PRODUCT_NAME "Handbrake
\93ú
\96{
\8cê
\94Å"
\r
19 !define PRODUCT_VERSION "0.9.4"
\r
20 !define PRODUCT_VERSION_NUMBER "0.9.4jp-r2"
\r
21 !define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\Handbrake.exe"
\r
22 !define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
\r
23 !define PRODUCT_UNINST_ROOT_KEY "HKLM"
\r
27 ; MUI 1.67 compatible ------
\r
31 !define MUI_ABORTWARNING
\r
32 !define MUI_ICON "handbrakepineapple.ico"
\r
33 !define MUI_UNICON "handbrakepineapple.ico"
\r
36 !insertmacro MUI_PAGE_WELCOME
\r
38 !insertmacro MUI_PAGE_LICENSE "doc\COPYING"
\r
40 !insertmacro MUI_PAGE_DIRECTORY
\r
42 !insertmacro MUI_PAGE_INSTFILES
\r
44 !define MUI_FINISHPAGE_RUN "$INSTDIR\Handbrake.exe"
\r
45 !insertmacro MUI_PAGE_FINISH
\r
48 !insertmacro MUI_UNPAGE_INSTFILES
\r
51 ;!insertmacro MUI_LANGUAGE "English"
\r
52 !insertmacro MUI_LANGUAGE "Japanese"
\r
56 Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
\r
57 OutFile "HandBrake-${PRODUCT_VERSION_NUMBER}-Win_GUI.exe"
\r
59 !include WordFunc.nsh
\r
60 !insertmacro VersionCompare
\r
61 !include LogicLib.nsh
\r
63 ; Check to see if .NET Framework 2.0 or above is Installed.
\r
65 Call GetDotNETVersion
\r
67 ${If} $0 == "not found"
\r
68 MessageBox MB_OK|MB_ICONSTOP ".NET runtime library is not installed. $\r$\n You can download .Net Framework 2.0 redistributable from the microsoft website. $\r$\n Alternatively you can use google for a direct download URL"
\r
72 StrCpy $0 $0 "" 1 # skip "v"
\r
74 ${VersionCompare} $0 "2.0" $1
\r
76 MessageBox MB_OK|MB_ICONSTOP ".NET runtime library v2.0 or newer is required. You have $0. $\r$\n You can download .Net Framework 2.0 redistributable from the Microsoft website. $\r$\n Alternatively you can use google for a direct download URL"
\r
81 Function GetDotNETVersion
\r
85 System::Call "mscoree::GetCORVersion(w .r0, i ${NSIS_MAX_STRLEN}, *i) i .r1 ?u"
\r
86 StrCmp $1 "error" 0 +2
\r
87 StrCpy $0 "not found"
\r
94 InstallDir "$PROGRAMFILES\Handbrake"
\r
95 InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" ""
\r
96 ShowInstDetails show
\r
97 ShowUnInstDetails show
\r
99 Section "Handbrake" SEC01
\r
100 SetOutPath "$INSTDIR"
\r
101 SetOverwrite ifnewer
\r
102 File "Handbrake.exe"
\r
103 CreateDirectory "$SMPROGRAMS\Handbrake"
\r
104 CreateShortCut "$SMPROGRAMS\Handbrake\Handbrake.lnk" "$INSTDIR\Handbrake.exe"
\r
105 CreateShortCut "$DESKTOP\Handbrake.lnk" "$INSTDIR\Handbrake.exe"
\r
106 File "Interop.QTOLibrary.dll"
\r
107 File "Interop.QTOControlLib.dll"
\r
108 File "AxInterop.QTOControlLib.dll"
\r
109 File "Growl.Connector.dll"
\r
110 File "Growl.CoreLibrary.dll"
\r
111 File "libgcc_s_sjlj-1.dll"
\r
112 File "HandBrakeCLI.exe"
\r
113 File "Handbrake.exe.config"
\r
114 File "handbrakepineapple.ico"
\r
116 SetOutPath "$INSTDIR\doc"
\r
117 SetOverwrite ifnewer
\r
123 File "doc\TRANSLATIONS"
\r
124 File "doc\readme_jp.txt"
\r
125 File "doc\changelog_jp.txt"
\r
128 Section -AdditionalIcons
\r
129 CreateShortCut "$SMPROGRAMS\Handbrake\Uninstall.lnk" "$INSTDIR\uninst.exe"
\r
133 WriteUninstaller "$INSTDIR\uninst.exe"
\r
134 WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR\Handbrake.exe"
\r
135 WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
\r
136 WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe"
\r
137 WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\Handbrake.exe"
\r
138 WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
\r
142 Function un.onUninstSuccess
\r
144 MessageBox MB_ICONINFORMATION|MB_OK "$(^Name) was successfully removed from your computer."
\r
148 MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "Are you sure you want to completely remove $(^Name) and all of its components?" IDYES +2
\r
153 Delete "$INSTDIR\uninst.exe"
\r
155 Delete "$INSTDIR\Interop.QTOLibrary.dll"
\r
156 Delete "$INSTDIR\Interop.QTOControlLib.dll"
\r
157 Delete "$INSTDIR\AxInterop.QTOControlLib.dll"
\r
158 Delete "$INSTDIR\HandBrakeCLI.exe"
\r
159 Delete "$INSTDIR\handbrakepineapple.ico"
\r
160 Delete "$INSTDIR\Handbrake.exe"
\r
161 Delete "$INSTDIR\Handbrake.exe.config"
\r
162 Delete "$INSTDIR\Growl.Connector.dll"
\r
163 Delete "$INSTDIR\Growl.CoreLibrary.dll"
\r
164 Delete "$INSTDIR\libgcc_s_sjlj-1.dll"
\r
165 Delete "$INSTDIR\doc\AUTHORS"
\r
166 Delete "$INSTDIR\doc\COPYING"
\r
167 Delete "$INSTDIR\doc\CREDITS"
\r
168 Delete "$INSTDIR\doc\NEWS"
\r
169 Delete "$INSTDIR\doc\THANKS"
\r
170 Delete "$INSTDIR\doc\TRANSLATIONS"
\r
171 Delete "$INSTDIR\doc\readme_jp.txt"
\r
172 Delete "$INSTDIR\doc\changelog_jp.txt"
\r
173 RMDir "$INSTDIR\doc"
\r
174 Delete "$SMPROGRAMS\Handbrake\Uninstall.lnk"
\r
175 Delete "$DESKTOP\Handbrake.lnk"
\r
176 Delete "$SMPROGRAMS\Handbrake\Handbrake.lnk"
\r
177 RMDir "$SMPROGRAMS\Handbrake"
\r
180 DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
\r
181 DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}"
\r