Skip to content

Commit 085e9d5

Browse files
committed
Ajuste icone e setup creator
1 parent 10df09a commit 085e9d5

File tree

2 files changed

+55
-1
lines changed

2 files changed

+55
-1
lines changed

ViscaControllerPtz/ViscaControllerPtz.csproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
1212
<FileAlignment>512</FileAlignment>
1313
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
14+
<IsWebBootstrapper>false</IsWebBootstrapper>
1415
<PublishUrl>publish\</PublishUrl>
1516
<Install>true</Install>
1617
<InstallFrom>Disk</InstallFrom>
@@ -23,7 +24,6 @@
2324
<MapFileExtensions>true</MapFileExtensions>
2425
<ApplicationRevision>0</ApplicationRevision>
2526
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
26-
<IsWebBootstrapper>false</IsWebBootstrapper>
2727
<UseApplicationTrust>false</UseApplicationTrust>
2828
<BootstrapperEnabled>true</BootstrapperEnabled>
2929
</PropertyGroup>
@@ -46,6 +46,9 @@
4646
<ErrorReport>prompt</ErrorReport>
4747
<WarningLevel>4</WarningLevel>
4848
</PropertyGroup>
49+
<PropertyGroup>
50+
<ApplicationIcon>icon.ico</ApplicationIcon>
51+
</PropertyGroup>
4952
<ItemGroup>
5053
<Reference Include="System" />
5154
<Reference Include="System.Core" />

setupCreator.iss

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
; Script generated by the Inno Script Studio Wizard.
2+
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
3+
4+
#define MyAppName "PTZ Controller"
5+
#define MyAppVersion "1.0.0.0"
6+
#define MyAppPublisher "Rodrigo Bueno"
7+
#define MyAppURL "https://rodrigobueno.dev"
8+
#define MyAppExeName "ViscaControllerPtz.exe"
9+
10+
[Setup]
11+
; NOTE: The value of AppId uniquely identifies this application.
12+
; Do not use the same AppId value in installers for other applications.
13+
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
14+
AppId={{6D877FEC-0CBD-455C-94FC-82EF19BA5BAD}
15+
AppName={#MyAppName}
16+
AppVersion={#MyAppVersion}
17+
;AppVerName={#MyAppName} {#MyAppVersion}
18+
AppPublisher={#MyAppPublisher}
19+
AppPublisherURL={#MyAppURL}
20+
AppSupportURL={#MyAppURL}
21+
AppUpdatesURL={#MyAppURL}
22+
DefaultDirName={pf}\{#MyAppName}
23+
DefaultGroupName={#MyAppName}
24+
OutputDir=C:\Projetos\ViscaControllerPtz\ViscaControllerPtz\bin\Release\SETUP
25+
OutputBaseFilename=SetupPtzController
26+
SetupIconFile=C:\Projetos\ViscaControllerPtz\ViscaControllerPtz\icon.ico
27+
Compression=lzma
28+
SolidCompression=yes
29+
30+
[Languages]
31+
Name: "english"; MessagesFile: "compiler:Default.isl"
32+
33+
[Tasks]
34+
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
35+
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked; OnlyBelowVersion: 0,6.1
36+
37+
[Files]
38+
Source: "C:\Projetos\ViscaControllerPtz\ViscaControllerPtz\bin\Release\ViscaControllerPtz.exe"; DestDir: "{app}"; Flags: ignoreversion
39+
Source: "C:\Projetos\ViscaControllerPtz\ViscaControllerPtz\bin\Release\ViscaControllerPtz.exe.config"; DestDir: "{app}"; Flags: ignoreversion
40+
Source: "C:\Projetos\ViscaControllerPtz\ViscaControllerPtz\bin\Release\ViscaControllerPtz.pdb"; DestDir: "{app}"; Flags: ignoreversion
41+
Source: "C:\Projetos\ViscaControllerPtz\ViscaControllerPtz\bin\Release\websocket-sharp.dll"; DestDir: "{app}"; Flags: ignoreversion
42+
Source: "C:\Projetos\ViscaControllerPtz\ViscaControllerPtz\bin\Release\websocket-sharp.xml"; DestDir: "{app}"; Flags: ignoreversion
43+
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
44+
45+
[Icons]
46+
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
47+
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
48+
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: quicklaunchicon
49+
50+
[Run]
51+
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent

0 commit comments

Comments
 (0)