-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
766b0b8
commit 34d87a8
Showing
1 changed file
with
26 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
#define MyAppVersion "0.3.3" | ||
#define MyAppPublisher "zhiliao007 <[email protected]> QQxiaoming <[email protected]>" | ||
#define MyAppURL "https://github.com/zhiliao007/YUVviewer" | ||
#define MyAppExeName "YUVviewer_setup.exe" | ||
#define MyAppExeName "YUVviewer.exe" | ||
#define MyAppOutputName "YUVviewer_setup" | ||
|
||
[Setup] | ||
|
@@ -18,33 +18,47 @@ AppPublisher={#MyAppPublisher} | |
AppPublisherURL={#MyAppURL} | ||
AppSupportURL={#MyAppURL} | ||
AppUpdatesURL={#MyAppURL} | ||
VersionInfoVersion=0.3.3.000 | ||
DefaultDirName={pf}\{#MyAppName} | ||
DisableProgramGroupPage=yes | ||
InfoBeforeFile=..\InnoSetup\Info.txt | ||
DefaultDirName={autopf}\{#MyAppName} | ||
DefaultGroupName={#MyAppName} | ||
OutputBaseFilename={#MyAppOutputName} | ||
OutPutdir=..\InnoSetup | ||
SetupIconFile=..\img\ico.ico | ||
Compression=lzma | ||
SolidCompression=yes | ||
|
||
UninstallDisplayIcon={app}/{#MyAppExeName} | ||
InfoBeforeFile=..\InnoSetup\Info.txt | ||
OutPutdir=..\InnoSetup | ||
SetupIconFile=..\img\ico.ico | ||
PrivilegesRequired=admin | ||
VersionInfoVersion=0.3.3.000 | ||
AllowNoIcons=no | ||
DisableProgramGroupPage=yes | ||
WizardStyle=modern | ||
|
||
[Languages] | ||
Name: "chinesesimp"; MessagesFile: "compiler:Default.isl" | ||
Name: "english"; MessagesFile: "compiler:Default.isl" | ||
|
||
[Tasks] | ||
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked; OnlyBelowVersion: 0,6.1 | ||
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked | ||
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked | ||
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked; OnlyBelowVersion: 6.1; Check: not IsAdminInstallMode | ||
|
||
[Files] | ||
Source: "..\InnoSetup\build\YUVviewer.exe"; DestDir: "{app}"; Flags: ignoreversion | ||
Source: "..\InnoSetup\build\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs | ||
; 注意: 不要在任何共享系统文件上使用“Flags: ignoreversion” | ||
|
||
[Icons] | ||
Name: "{commonprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}" | ||
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon | ||
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}" | ||
Name: "{group}\{cm:ProgramOnTheWeb,{#MyAppName}}"; Filename: "{#MyAppURL}" | ||
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}" | ||
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon | ||
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: quicklaunchicon | ||
|
||
[Run] | ||
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent | ||
|
||
[Code] | ||
procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep); | ||
begin | ||
if CurUninstallStep = usUninstall then | ||
DeleteFile(ExpandConstant('{app}\YUVviewer.ini')); | ||
end; |