halcom中国吧 关注:11贴子:147
  • 0回复贴,共1

Innosetup5打包代码

只看楼主收藏回复

; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
#define MyAppName "WITIAI_ASR"
#define MyAppVersion "1.5"
#define MyAppPublisher "WITIAI.CN版权所有"
#define MyAppURL "http://witiai.cn/"
#define MyAppExeName "WITIAI_ASR.exe"
[Setup]
; NOTE: The value of AppId uniquely identifies this application.
; Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
AppId={{47689375-C6ED-41E2-AD05-0F3332CC61F5}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName=C:\{#MyAppName}
DefaultGroupName={#MyAppName}
OutputDir=D:\2-LearningCode\902-ASR\WITIAI_ASR\Innosetup
OutputBaseFilename=WITIAI_ASR
SetupIconFile=D:\2-LearningCode\902-ASR\WITIAI_ASR\WITIAI_ASR\bin\x64\Release\WITIAI.ico
Compression=lzma
SolidCompression=yes
UninstallDisplayIcon="{app}\WITIAI.ico"
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: checkablealone
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked; OnlyBelowVersion: 0,6.1
[Code]
var
myLabel: TNewStaticText;
procedure InitializeWizard();
begin
WizardForm.FilenameLabel.Visible := false;
MyLabel := TNewStaticText.Create(WizardForm.InstallingPage);
MyLabel.Parent := WizardForm.InstallingPage;
MyLabel.Top := WizardForm.FilenameLabel.Top;
MyLabel.Left := WizardForm.FilenameLabel.Left;
MyLabel.Width := WizardForm.FilenameLabel.Width;
MyLabel.Visible := True;
MyLabel.Caption := '';
end;
procedure DisplayFileName();
begin
MyLabel.Caption := ExtractFileName(CurrentFileName);
end;
[Files]
Source: "D:\2-LearningCode\902-ASR\WITIAI_ASR\WITIAI_ASR\bin\x64\Release\WITIAI_ASR.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "D:\2-LearningCode\902-ASR\WITIAI_ASR\WITIAI_ASR\bin\x64\Release\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}";IconFilename:"{app}\WITIAI.ico"
Name: "{group}\{cm:ProgramOnTheWeb,{#MyAppName}}"; Filename: "{#MyAppURL}"
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon;IconFilename:"{app}\WITIAI.ico"
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


IP属地:广东1楼2024-03-15 19:10回复