Skip to content

Commit 356be62

Browse files
committed
feat: Added setup
1 parent 99ff91a commit 356be62

2 files changed

Lines changed: 81 additions & 0 deletions

File tree

MailPrinter/MailPrinter.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@
154154
<Content Include="PrintHtml\ssleay32.dll">
155155
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
156156
</Content>
157+
<Content Include="Setup.iss" />
157158
<None Include="Sounds\sound.wav">
158159
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
159160
</None>

MailPrinter/Setup.iss

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
; Script generated by the Inno Setup Script Wizard.
2+
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
3+
4+
#define MyAppName "MailPrinter"
5+
#define MyAppVersion "1.0"
6+
#define MyAppExeName "MailPrinter.exe"
7+
8+
[Setup]
9+
; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications.
10+
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
11+
AppId={{DE6F9E28-6599-4202-9DDD-A5BECEFE7B38}
12+
AppName={#MyAppName}
13+
AppVersion={#MyAppVersion}
14+
;AppVerName={#MyAppName} {#MyAppVersion}
15+
DefaultDirName={autopf}\{#MyAppName}
16+
DisableProgramGroupPage=yes
17+
; Remove the following line to run in administrative install mode (install for all users.)
18+
PrivilegesRequired=lowest
19+
Compression=lzma
20+
SolidCompression=yes
21+
WizardStyle=modern
22+
OutputDir=bin\Debug\
23+
OutputBaseFilename=MailPrinterSetup
24+
SetupIconFile=icon.ico
25+
26+
27+
[Languages]
28+
Name: "english"; MessagesFile: "compiler:Default.isl"
29+
Name: "german"; MessagesFile: "compiler:Languages\German.isl"
30+
31+
[Tasks]
32+
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
33+
Name: "StartMenuEntry" ; Description: "Start my app when Windows starts" ; GroupDescription: "Windows Startup"; MinVersion: 4,4;
34+
35+
36+
[Files]
37+
Source: "bin\Debug\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
38+
Source: "bin\Debug\BouncyCastle.Crypto.dll"; DestDir: "{app}"; Flags: ignoreversion
39+
Source: "bin\Debug\BouncyCastle.Crypto.xml"; DestDir: "{app}"; Flags: ignoreversion
40+
Source: "bin\Debug\MailKit.dll"; DestDir: "{app}"; Flags: ignoreversion
41+
Source: "bin\Debug\MailKit.pdb"; DestDir: "{app}"; Flags: ignoreversion
42+
Source: "bin\Debug\MailKit.xml"; DestDir: "{app}"; Flags: ignoreversion
43+
Source: "bin\Debug\MailPrinter.exe"; DestDir: "{app}"; Flags: ignoreversion
44+
Source: "bin\Debug\MailPrinter.exe.config"; DestDir: "{app}"; Flags: ignoreversion
45+
Source: "bin\Debug\MailPrinter.pdb"; DestDir: "{app}"; Flags: ignoreversion
46+
Source: "bin\Debug\Microsoft.Bcl.AsyncInterfaces.dll"; DestDir: "{app}"; Flags: ignoreversion
47+
Source: "bin\Debug\Microsoft.Bcl.AsyncInterfaces.xml"; DestDir: "{app}"; Flags: ignoreversion
48+
Source: "bin\Debug\MimeKit.dll"; DestDir: "{app}"; Flags: ignoreversion
49+
Source: "bin\Debug\MimeKit.pdb"; DestDir: "{app}"; Flags: ignoreversion
50+
Source: "bin\Debug\MimeKit.xml"; DestDir: "{app}"; Flags: ignoreversion
51+
Source: "bin\Debug\System.Buffers.dll"; DestDir: "{app}"; Flags: ignoreversion
52+
Source: "bin\Debug\System.Buffers.xml"; DestDir: "{app}"; Flags: ignoreversion
53+
Source: "bin\Debug\System.Memory.dll"; DestDir: "{app}"; Flags: ignoreversion
54+
Source: "bin\Debug\System.Memory.xml"; DestDir: "{app}"; Flags: ignoreversion
55+
Source: "bin\Debug\System.Numerics.Vectors.dll"; DestDir: "{app}"; Flags: ignoreversion
56+
Source: "bin\Debug\System.Numerics.Vectors.xml"; DestDir: "{app}"; Flags: ignoreversion
57+
Source: "bin\Debug\System.Runtime.CompilerServices.Unsafe.dll"; DestDir: "{app}"; Flags: ignoreversion
58+
Source: "bin\Debug\System.Runtime.CompilerServices.Unsafe.xml"; DestDir: "{app}"; Flags: ignoreversion
59+
Source: "bin\Debug\System.Text.Encoding.CodePages.dll"; DestDir: "{app}"; Flags: ignoreversion
60+
Source: "bin\Debug\System.Text.Encodings.Web.dll"; DestDir: "{app}"; Flags: ignoreversion
61+
Source: "bin\Debug\System.Text.Encodings.Web.xml"; DestDir: "{app}"; Flags: ignoreversion
62+
Source: "bin\Debug\System.Text.Json.dll"; DestDir: "{app}"; Flags: ignoreversion
63+
Source: "bin\Debug\System.Text.Json.xml"; DestDir: "{app}"; Flags: ignoreversion
64+
Source: "bin\Debug\System.Threading.Tasks.Extensions.dll"; DestDir: "{app}"; Flags: ignoreversion
65+
Source: "bin\Debug\System.Threading.Tasks.Extensions.xml"; DestDir: "{app}"; Flags: ignoreversion
66+
Source: "bin\Debug\System.ValueTuple.dll"; DestDir: "{app}"; Flags: ignoreversion
67+
Source: "bin\Debug\System.ValueTuple.xml"; DestDir: "{app}"; Flags: ignoreversion
68+
Source: "bin\Debug\de\*"; DestDir: "{app}\de"; Flags: ignoreversion recursesubdirs createallsubdirs
69+
Source: "bin\Debug\Sounds\*"; DestDir: "{app}\Sounds"; Flags: ignoreversion recursesubdirs createallsubdirs
70+
Source: "bin\Debug\PrintHtml\*"; DestDir: "{app}\PrintHtml"; Flags: ignoreversion recursesubdirs createallsubdirs
71+
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
72+
73+
[Icons]
74+
Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
75+
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
76+
Name: "{userstartup}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: ;
77+
78+
[Run]
79+
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
80+

0 commit comments

Comments
 (0)