1616; --------------------------------
1717; Constants
1818 !define PRODUCT_NAME " SQLite Compare"
19- !define COMPANY_NAME " Liron Levi"
2019 !define PRODUCT_DISPLAY_NAME " SQLite Compare - Diff/Merge Utility"
2120
2221; --------------------------------
2726 OutFile " SQLiteCompareSetup.exe"
2827
2928 ; Default installation folder
30- InstallDir " $PROGRAMFILES\${COMPANY_NAME}\ SQLiteCompare"
29+ InstallDir " $PROGRAMFILES\SQLiteCompare"
3130
3231 ; Request application privileges for Windows Vista
3332 RequestExecutionLevel admin
6059 !define MUI_FINISHPAGE_RUN_FUNCTION " LaunchLink"
6160 !define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED
6261 !define MUI_FINISHPAGE_SHOWREADME " $INSTDIR\readme.txt"
63- !define MUI_FINISHPAGE_LINK " http ://www.linkedin. com/pub/liron-levy/1/578/ab5 "
64- !define MUI_FINISHPAGE_LINK_LOCATION " http ://www.linkedin. com/pub/liron-levy/1/578/ab5 "
62+ !define MUI_FINISHPAGE_LINK " https ://github. com/shuebener/SQLiteCompare "
63+ !define MUI_FINISHPAGE_LINK_LOCATION " https ://github. com/shuebener/SQLiteCompare "
6564 !insertmacro MUI_PAGE_FINISH
6665
6766 !insertmacro MUI_UNPAGE_CONFIRM
@@ -111,7 +110,8 @@ Section "Install" Install
111110 ; Get .NET if required
112111 ${If} $InstallDotNET == " Yes"
113112 SetDetailsView hide
114- inetc::get /caption " Downloading .NET Framework 2.0" /canceltext " Cancel" " http://download.microsoft.com/download/5/6/7/567758a3-759e-473e-bf8f-52154438565a/dotnetfx.exe" " $INSTDIR\dotnetfx.exe" /end
113+ ; ;inetc::get /caption "Downloading .NET Framework 2.0" /canceltext "Cancel" "http://download.microsoft.com/download/5/6/7/567758a3-759e-473e-bf8f-52154438565a/dotnetfx.exe" "$INSTDIR\dotnetfx.exe" /end
114+ inetc::get /caption " Downloading .NET Framework 4.6.2" /canceltext " Cancel" " https://download.microsoft.com/download/F/9/4/F942F07D-F26F-4F30-B4E3-EBD54FABA377/NDP462-KB3151800-x86-x64-AllOS-ENU.exe" " $INSTDIR\dotnetfx.exe" /end
115115 Pop $1
116116 ${If} $1 != " OK"
117117 Delete " $INSTDIR\dotnetfx.exe"
@@ -145,21 +145,32 @@ Section "Install" Install
145145 SetShellVarContext all
146146
147147 ; Add the application files
148- File " ..\SQLiteTurbo\bin\x86\Release\Puzzle.SyntaxBox.NET3.5.dll"
149- File " ..\SQLiteTurbo\bin\x86\Release\System.Data.SQLite.dll"
150- File " ..\SQLiteTurbo\bin\x86\Release\SQLiteCompare.exe.config"
151- File " ..\SQLiteTurbo\bin\x86\Release\SQLiteCompare.exe"
152- File " ..\SQLiteTurbo\bin\x86\Release\AutomaticUpdates.dll"
153- File " ..\SQLiteTurbo\bin\x86\Release\Be.Windows.Forms.HexBox.dll"
154- File " ..\SQLiteTurbo\bin\x86\Release\Common.dll"
155- File " ..\SQLiteTurbo\bin\x86\Release\DiffControl.dll"
156- File " ..\SQLiteTurbo\bin\x86\Release\FastGrid.dll"
157- File " ..\SQLiteTurbo\bin\x86\Release\Liron.Windows.Forms.dll"
158- File " ..\SQLiteTurbo\bin\x86\Release\log4net.dll"
159- File " ..\SQLiteTurbo\bin\x86\Release\ShiftReduceParser.dll"
160- File " ..\SQLiteTurbo\bin\x86\Release\SQLiteParser.dll"
161- File " ..\SQLiteTurbo\bin\x86\Release\UndoRedo.dll"
148+ File " ..\SQLiteTurbo\bin\Release\Alsing.SyntaxBox.dll"
149+ File " ..\SQLiteTurbo\bin\Release\System.Data.SQLite.dll"
150+ File " ..\SQLiteTurbo\bin\Release\System.Data.SQLite.EF6.dll"
151+ File " ..\SQLiteTurbo\bin\Release\System.Data.SQLite.Linq.dll"
152+ File " ..\SQLiteTurbo\bin\Release\SQLiteCompare.exe.config"
153+ File " ..\SQLiteTurbo\bin\Release\SQLiteCompare.exe"
154+ File " ..\SQLiteTurbo\bin\Release\AutomaticUpdates.dll"
155+ File " ..\SQLiteTurbo\bin\Release\Be.Windows.Forms.HexBox.dll"
156+ File " ..\SQLiteTurbo\bin\Release\Common.dll"
157+ File " ..\SQLiteTurbo\bin\Release\DiffControl.dll"
158+ File " ..\SQLiteTurbo\bin\Release\FastGrid.dll"
159+ File " ..\SQLiteTurbo\bin\Release\MultiPanelControl.dll"
160+ File " ..\SQLiteTurbo\bin\Release\log4net.dll"
161+ File " ..\SQLiteTurbo\bin\Release\ShiftReduceParser.dll"
162+ File " ..\SQLiteTurbo\bin\Release\SQLiteParser.dll"
163+ File " ..\SQLiteTurbo\bin\Release\UndoRedo.dll"
164+ File " ..\SQLiteTurbo\bin\Release\EntityFramework.dll"
165+ File " ..\SQLiteTurbo\bin\Release\EntityFramework.SqlServer.dll"
162166 File " ..\readme.txt"
167+ File " ..\LICENSE"
168+
169+ SetOutPath " $INSTDIR\x64"
170+ File " ..\SQLiteTurbo\bin\Release\x64\SQLite.Interop.dll"
171+ SetOutPath " $INSTDIR\x86"
172+ File " ..\SQLiteTurbo\bin\Release\x86\SQLite.Interop.dll"
173+ SetOutPath " $INSTDIR"
163174
164175 ; Turn ON/OFF the check-updates flag
165176 WriteRegDWORD HKCU " SOFTWARE\SQLiteCompare" " CheckUpdatesOnStartup" 1
@@ -170,22 +181,22 @@ Section "Install" Install
170181 WriteRegStr HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\SQLiteCompare" \
171182 " DisplayIcon" " $\" $INSTDIR\uninstall.exe$\" "
172183 WriteRegStr HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\SQLiteCompare" \
173- " Publisher" " Liron Levi "
184+ " Publisher" " Sebastian Huebener "
174185 WriteRegStr HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\SQLiteCompare" \
175- " URLInfoAbout" " http ://www.linkedin. com/pub/liron-levy/1/578/ab5 "
186+ " URLInfoAbout" " https ://github. com/shuebener/SQLiteCompare "
176187 WriteRegStr HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\SQLiteCompare" \
177- " HelpLink" " http ://www.linkedin. com/pub/liron-levy/1/578/ab5 "
188+ " HelpLink" " https ://github. com/shuebener/SQLiteCompare "
178189 WriteRegStr HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\SQLiteCompare" \
179190 " UninstallString" " $\" $INSTDIR\uninstall.exe$\" "
180191
181192 ; Create uninstaller
182193 WriteUninstaller " $INSTDIR\Uninstall.exe"
183194
184195 ; Create start menu shortcuts
185- CreateDirectory " $SMPROGRAMS\Liron Levi "
186- CreateShortCut " $SMPROGRAMS\Liron Levi \SQLite Compare.lnk" " $INSTDIR\SQLiteCompare.exe" \
196+ CreateDirectory " $SMPROGRAMS\${PRODUCT_NAME} "
197+ CreateShortCut " $SMPROGRAMS\${PRODUCT_NAME} \SQLite Compare.lnk" " $INSTDIR\SQLiteCompare.exe" \
187198 " " " $INSTDIR\SQLiteCompare.exe"
188- CreateShortCut " $SMPROGRAMS\Liron Levi \Uninstall.lnk" " $INSTDIR\Uninstall.exe" \
199+ CreateShortCut " $SMPROGRAMS\${PRODUCT_NAME} \Uninstall.lnk" " $INSTDIR\Uninstall.exe" \
189200 " " " $INSTDIR\Uninstall.exe"
190201
191202 ; Create desktop shortcut
@@ -216,28 +227,35 @@ Section "Uninstall"
216227 SetShellVarContext all
217228
218229 Delete " $INSTDIR\Uninstall.exe"
219- Delete " $INSTDIR\SQLiteCompare.exe"
220- Delete " $INSTDIR\Puzzle.SyntaxBox.NET3.5.dll"
230+ Delete " $INSTDIR\Alsing.SyntaxBox.dll"
221231 Delete " $INSTDIR\System.Data.SQLite.dll"
222- Delete " $INSTDIR\readme.txt"
232+ Delete " $INSTDIR\System.Data.SQLite.EF6.dll"
233+ Delete " $INSTDIR\System.Data.SQLite.Linq.dll"
234+ Delete " $INSTDIR\x64\SQLite.Interop.dll"
235+ Delete " $INSTDIR\x86\SQLite.Interop.dll"
223236 Delete " $INSTDIR\SQLiteCompare.exe.config"
237+ Delete " $INSTDIR\SQLiteCompare.exe"
224238 Delete " $INSTDIR\AutomaticUpdates.dll"
225239 Delete " $INSTDIR\Be.Windows.Forms.HexBox.dll"
226240 Delete " $INSTDIR\Common.dll"
227241 Delete " $INSTDIR\DiffControl.dll"
228242 Delete " $INSTDIR\FastGrid.dll"
229- Delete " $INSTDIR\Liron.Windows.Forms .dll"
243+ Delete " $INSTDIR\MultiPanelControl .dll"
230244 Delete " $INSTDIR\log4net.dll"
231245 Delete " $INSTDIR\ShiftReduceParser.dll"
232246 Delete " $INSTDIR\SQLiteParser.dll"
233247 Delete " $INSTDIR\UndoRedo.dll"
248+ Delete " $INSTDIR\EntityFramework.dll"
249+ Delete " $INSTDIR\EntityFramework.SqlServer.dll"
250+ Delete " $INSTDIR\readme.txt"
251+ Delete " $INSTDIR\LICENSE"
234252
235253 DeleteRegKey HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\SQLiteCompare"
236254
237255 ; Delete start menu shortcuts
238- Delete " $SMPROGRAMS\Liron Levi \SQLite Compare.lnk"
239- Delete " $SMPROGRAMS\Liron Levi \Uninstall.lnk"
240- RMDir " $SMPROGRAMS\Liron Levi "
256+ Delete " $SMPROGRAMS\${PRODUCT_NAME} \SQLite Compare.lnk"
257+ Delete " $SMPROGRAMS\${PRODUCT_NAME} \Uninstall.lnk"
258+ RMDir " $SMPROGRAMS\${PRODUCT_NAME} "
241259
242260 ; Delete "$DESKTOP\SQLite Compare.lnk"
243261
@@ -337,20 +355,21 @@ Label_ItIsWindowsNtPlatform:
337355 ; Check .NET version
338356 Call CheckDotNet
339357 ${If} $InstallDotNet == " Yes"
340- MessageBox MB_OK |MB_ICONINFORMATION " ${PRODUCT_NAME} requires that the .NET Framework 2.0 is installed. The .NET Framework will be downloaded and installed automatically during installation of ${PRODUCT_NAME}."
358+ MessageBox MB_OK |MB_ICONINFORMATION " ${PRODUCT_NAME} requires that the .NET Framework 4.6 is installed. The .NET Framework will be downloaded and installed automatically during installation of ${PRODUCT_NAME}."
341359 Return
342360 ${EndIf}
343361FunctionEnd
344362
345363Function CheckDotNet
346364 StrCpy $InstallDotNET " No"
347- ReadRegDWORD $0 HKLM ' SOFTWARE\Microsoft\NET Framework Setup\NDP\v2.0.50727' Install
365+ ; ReadRegDWORD $0 HKLM 'SOFTWARE\Microsoft\NET Framework Setup\NDP\v2.0.50727' Install
366+ ReadRegDWORD $0 HKLM ' SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full' Install
348367 ${If} $0 == ' '
349368 StrCpy $InstallDotNET " Yes"
350369 ${EndIf}
351370
352371FunctionEnd
353372
354373Function LaunchLink
355- ExecShell " " " $SMPROGRAMS\Liron Levi \SQLite Compare.lnk"
374+ ExecShell " " " $SMPROGRAMS\${PRODUCT_NAME} \SQLite Compare.lnk"
356375FunctionEnd
0 commit comments