95 lines
4.6 KiB
Plaintext
95 lines
4.6 KiB
Plaintext
|
; Script generated by the Inno Setup Script Wizard.
|
|||
|
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
|
|||
|
|
|||
|
#define MyAppName "DwoodAuto"
|
|||
|
#define MyAppVersion "1.0.2.8"
|
|||
|
#define MyAppPublisher "<22><><EFBFBD>յ<EFBFBD>ľ<EFBFBD><C4BE>Ӧ<EFBFBD><D3A6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˾, Inc."
|
|||
|
#define MyAppURL "https://www.example.com/"
|
|||
|
#define MyAppExeName "mes-admin-win.exe"
|
|||
|
#define MyAppAssocName MyAppName + " File"
|
|||
|
#define MyAppAssocExt ".myp"
|
|||
|
#define MyAppAssocKey StringChange(MyAppAssocName, " ", "") + MyAppAssocExt
|
|||
|
|
|||
|
[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={{5FB14BED-AC62-4022-A224-396FDE9D9B99}
|
|||
|
AppName={#MyAppName}{#MyAppVersion}
|
|||
|
AppVersion={#MyAppVersion}
|
|||
|
;AppVerName={#MyAppName} {#MyAppVersion}
|
|||
|
AppPublisher={#MyAppPublisher}
|
|||
|
AppPublisherURL={#MyAppURL}
|
|||
|
AppSupportURL={#MyAppURL}
|
|||
|
AppUpdatesURL={#MyAppURL}
|
|||
|
DefaultDirName=D:\Program Files\{#MyAppName}
|
|||
|
ChangesAssociations=yes
|
|||
|
DisableProgramGroupPage=yes
|
|||
|
PrivilegesRequired=admin
|
|||
|
;<3B>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD> TODO
|
|||
|
LicenseFile=C:\Users\11964\Desktop\<5C><>ľ<EFBFBD><C4BE>\<5C><><EFBFBD><EFBFBD>\DwoodOutput\DwoodOutput\default.txt
|
|||
|
|
|||
|
; Uncomment the following line to run in non administrative install mode (install for current user only.)
|
|||
|
;PrivilegesRequired=lowest
|
|||
|
UninstallDisplayName=<3D><>Ҫж<D2AA><D0B6>{#MyAppName}
|
|||
|
;<3B><>װ<EFBFBD><D7B0>ͼ<EFBFBD><CDBC> TODO
|
|||
|
UninstallDisplayIcon=C:\Users\11964\Desktop\<5C><>ľ<EFBFBD><C4BE>\<5C><><EFBFBD><EFBFBD>\DwoodOutput\DwoodOutput\logo.ico
|
|||
|
;<3B><><EFBFBD><EFBFBD>Ŀ¼ TODO
|
|||
|
OutputDir=C:\Users\11964\Desktop\<5C><>ľ<EFBFBD><C4BE>\<5C><><EFBFBD><EFBFBD>\DwoodOutput\DwoodOutput
|
|||
|
OutputBaseFilename=DwoodAutoSetup
|
|||
|
Compression=zip
|
|||
|
SolidCompression=yes
|
|||
|
WizardStyle=modern
|
|||
|
|
|||
|
[Code]
|
|||
|
procedure TaskKill(FileName: String);
|
|||
|
var
|
|||
|
ResultCode: Integer;
|
|||
|
begin
|
|||
|
Exec('taskkill.exe', '/f /im ' + '"' + FileName + '"', '', SW_HIDE,
|
|||
|
ewWaitUntilTerminated, ResultCode);
|
|||
|
end;
|
|||
|
|
|||
|
function InitializeSetup: Boolean;
|
|||
|
begin
|
|||
|
// MsgBox('<27><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>', mbInformation, MB_OK);
|
|||
|
TaskKill('mes-admin-win.exe');
|
|||
|
Result := true;
|
|||
|
end;
|
|||
|
|
|||
|
|
|||
|
[Languages]
|
|||
|
Name: "chinesesimplified"; MessagesFile: "compiler:Languages\ChineseSimplified.isl"
|
|||
|
|
|||
|
[Tasks]
|
|||
|
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
|
|||
|
|
|||
|
;TODO <20><><EFBFBD><EFBFBD>Release<73>ļ<EFBFBD>
|
|||
|
[Files]
|
|||
|
Source: "C:\demuProject\jason\mes-admin-windows.git\Files\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
|
|||
|
Source: "C:\demuProject\jason\mes-admin-windows.git\Common\bin\Release\Common.dll"; DestDir: "{app}"; Flags: ignoreversion
|
|||
|
Source: "C:\demuProject\jason\mes-admin-windows.git\mes_admin_win-Controls\bin\Release\mes_admin_win-Controls.dll"; DestDir: "{app}"; Flags: ignoreversion
|
|||
|
Source: "C:\demuProject\jason\mes-admin-windows.git\mes-admin-win-pullrtsp\bin\x64\Release\mes-admin-win-pullrtsp.exe"; DestDir: "{app}"; Flags: ignoreversion
|
|||
|
Source: "C:\demuProject\jason\mes-admin-windows.git\mes-admin-win\bin\x64\Release\mes-admin-win.exe"; DestDir: "{app}"; Flags: ignoreversion
|
|||
|
Source: "C:\demuProject\jason\mes-admin-windows.git\mes-admin-win\bin\x64\Release\mes-admin-win.exe.config"; DestDir: "{app}"; Flags: ignoreversion
|
|||
|
Source: "C:\demuProject\jason\mes-admin-windows.git\mes-admin-win\bin\x64\Release\log4net.config"; DestDir: "{app}"; Flags: ignoreversion
|
|||
|
|
|||
|
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
|
|||
|
|
|||
|
[Registry]
|
|||
|
Root: HKA; Subkey: "Software\Classes\{#MyAppAssocExt}\OpenWithProgids"; ValueType: string; ValueName: "{#MyAppAssocKey}"; ValueData: ""; Flags: uninsdeletevalue
|
|||
|
Root: HKA; Subkey: "Software\Classes\{#MyAppAssocKey}"; ValueType: string; ValueName: ""; ValueData: "{#MyAppAssocName}"; Flags: uninsdeletekey
|
|||
|
Root: HKA; Subkey: "Software\Classes\{#MyAppAssocKey}\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\{#MyAppExeName},0"
|
|||
|
Root: HKA; Subkey: "Software\Classes\{#MyAppAssocKey}\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#MyAppExeName}"" ""%1"""
|
|||
|
Root: HKA; Subkey: "Software\Classes\Applications\{#MyAppExeName}\SupportedTypes"; ValueType: string; ValueName: ".myp"; ValueData: ""
|
|||
|
;дע<D0B4><D7A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֹ<EFBFBD><D6B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʹ<EFBFBD>ã<EFBFBD>ֻ<EFBFBD><D6BB>ͨ<EFBFBD><CDA8><EFBFBD><EFBFBD>װʹ<D7B0><CAB9> ,<2C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>жԴ<D0B6>ע<EFBFBD><D7A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>֤
|
|||
|
Root:HKLM;Subkey:SOFTWARE\Classes\{#MyAppName};ValueType: string; ValueName:"Version";ValueData:"{#MyAppVersion}";Flags: uninsdeletevalue
|
|||
|
|
|||
|
[Icons]
|
|||
|
Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}";IconFilename:"{app}\logo.ico"
|
|||
|
Name: "{autodesktop}\<5C><>ľ<EFBFBD>Զ<EFBFBD><D4B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵͳ"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon;IconFilename:"{app}\logo.ico"
|
|||
|
|
|||
|
[Run]
|
|||
|
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
|
|||
|
|