Remove the dependency to ViewModule
[master-thesis.git] / Parasitemia / Setup / setup.iss
1 [code]
2 #define ApplicationDir ".."
3
4 #define AppName "Parasitemia"
5 #define ExePath ApplicationDir + "/ParasitemiaUI/bin/Release/net5.0-windows/ParasitemiaUI.exe"
6 #define Version GetStringFileInfo(ExePath, 'ProductVersion')
7 #define BuildTime GetStringFileInfo(ExePath, 'BuildTime')
8
9 [Setup]
10 AppName={#AppName}
11 AppVersion={#Version}          
12 SetupIconFile={#ApplicationDir}/ParasitemiaUIControls/Resources/icon.ico 
13 DefaultDirName={pf}/{#AppName}
14 DefaultGroupName={#AppName}
15 UninstallDisplayIcon={app}/ParasitemiaUI.exe
16 Compression=lzma2
17 SolidCompression=yes
18 OutputBaseFilename={#AppName}-{#Version}-Setup
19 ChangesAssociations=yes
20
21 [Files]
22 Source: "{#ApplicationDir}/ParasitemiaUI/bin/Release/net5.0-windows/ParasitemiaUI.exe"; DestDir: "{app}"; Flags: comparetimestamp   
23 Source: "{#ApplicationDir}/ParasitemiaUI/bin/Release/net5.0-windows/ParasitemiaUI.dll"; DestDir: "{app}"; Flags: comparetimestamp
24 Source: "{#ApplicationDir}/ParasitemiaUI/bin/Release/net5.0-windows/ParasitemiaUI.runtimeconfig.json"; DestDir: "{app}"; Flags: comparetimestamp    
25 Source: "{#ApplicationDir}/ParasitemiaUI/bin/Release/net5.0-windows/ParasitemiaCore.dll"; DestDir: "{app}"; Flags: comparetimestamp   
26 Source: "{#ApplicationDir}/ParasitemiaUI/bin/Release/net5.0-windows/ParasitemiaUIControls.dll"; DestDir: "{app}"; Flags: comparetimestamp
27 Source: "{#ApplicationDir}/ParasitemiaUI/bin/Release/net5.0-windows/runtimes/*"; DestDir: "{app}/runtimes"; Flags: comparetimestamp recursesubdirs  
28 Source: "{#ApplicationDir}/ParasitemiaUI/bin/Release/net5.0-windows/Emgu.CV.Platform.NetStandard.dll"; DestDir: "{app}"; Flags: comparetimestamp
29 Source: "{#ApplicationDir}/ParasitemiaUI/bin/Release/net5.0-windows/Emgu.CV.Bitmap.dll"; DestDir: "{app}"; Flags: comparetimestamp
30 Source: "{#ApplicationDir}/ParasitemiaUI/bin/Release/net5.0-windows/FSharp.Collections.ParallelSeq.dll"; DestDir: "{app}"; Flags: comparetimestamp
31 Source: "{#ApplicationDir}/ParasitemiaUI/bin/Release/net5.0-windows/FSharp.Core.dll"; DestDir: "{app}"; Flags: comparetimestamp
32 Source: "{#ApplicationDir}/ParasitemiaUI/bin/Release/net5.0-windows/FSharp.ViewModule.dll"; DestDir: "{app}"; Flags: comparetimestamp
33 Source: "{#ApplicationDir}/ParasitemiaUI/bin/Release/net5.0-windows/Logger.dll"; DestDir: "{app}"; Flags: comparetimestamp
34 Source: "{#ApplicationDir}/ParasitemiaUI/bin/Release/net5.0-windows/MathNet.Numerics.dll"; DestDir: "{app}"; Flags: comparetimestamp
35 Source: "{#ApplicationDir}/ParasitemiaUI/bin/Release/net5.0-windows/MathNet.Numerics.FSharp.dll"; DestDir: "{app}"; Flags: comparetimestamp
36 Source: "{#ApplicationDir}/ParasitemiaUI/bin/Release/net5.0-windows/Newtonsoft.Json.dll"; DestDir: "{app}"; Flags: comparetimestamp
37 Source: "{#ApplicationDir}/ParasitemiaUI/bin/Release/net5.0-windows/System.Drawing.Common.dll"; DestDir: "{app}"; Flags: comparetimestamp
38
39 [Icons]     
40 Name: "{group}\Parasitemia"; Filename: "{app}/ParasitemiaUI.exe"; WorkingDir: "{app}"                      
41
42 [Tasks]
43 Name: ParasitemiaFileAssociation; Description: "Use Parasitemia to open ""piaz"" files"; GroupDescription: File extensions:
44
45 [Registry]
46 Root: HKCR; Subkey: ".piaz"; ValueType: string; ValueName: ""; ValueData: "Parasitemia"; Flags: uninsdeletevalue; Tasks: ParasitemiaFileAssociation 
47 Root: HKCR; Subkey: "Parasitemia"; ValueType: string; ValueName: ""; ValueData: "Parasitemia Prog"; Flags: uninsdeletekey
48 Root: HKCR; Subkey: "Parasitemia\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\ParasitemiaUI.exe,0"        
49 Root: HKCR; Subkey: "Parasitemia\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\ParasitemiaUI.exe"" ""%1"""
50
51 [Run]
52 Filename: "{app}/ParasitemiaUI.exe"; Flags: nowait postinstall runasoriginaluser; Description: "Launch Parasitemia"