#define SetupAppName "Agent assistant" #define SetupAppPublisher "VINNO Technology (Suzhou) Co., Ltd ." #define SetupAppURL "http://www.ichaorenhui.com" #define SetupAppExeName "vCloud.Agent.exe" #define CopyRight "Copyright ©2015 VINNO Corporation. All rights reserved." ;#define SetupAppVersion "1.0.0.0" ;#define ProjectFolder "E:\NewCode\vCloudRefactor" [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={{45B8661D-B5CF-70B5-B8EA-26676A22AA79} AppName={cm:MyAppName} AppVersion={#SetupAppVersion} AppVerName={cm:MyAppName} {#SetupAppVersion} AppPublisher={#SetupAppPublisher} AppPublisherURL={#SetupAppURL} AppSupportURL={#SetupAppURL} AppUpdatesURL={#SetupAppURL} DefaultDirName={pf}\{cm:MyAppName} DefaultGroupName={cm:MyAppName} OutputDir={#ProjectFolder}\Distribution OutputBaseFilename=AgentSetup_{#SetupAppVersion} SetupIconFile={#ProjectFolder}\Build\Agent.ico WizardSmallImageFile={#ProjectFolder}\Build\Agent_Small.bmp ;WizardImageFile={#ProjectFolder}\Build\WizardSetup.bmp ArchitecturesInstallIn64BitMode=x64 Compression=lzma SolidCompression=yes PrivilegesRequired=admin UninstallDisplayIcon={app}\{#SetupAppExeName} UninstallDisplayName={cm:MyAppName} VersionInfoVersion={#SetupAppVersion} VersionInfoCompany={#SetupAppPublisher} VersionInfoCopyright={#CopyRight} VersionInfoDescription={#SetupAppName} VersionInfoProductName={#SetupAppName} DisableWelcomePage=no [Languages] Name: "english"; MessagesFile: "compiler:Default.isl" Name: "chinese"; MessagesFile: "{#ProjectFolder}\Build\Chinese.isl" [CustomMessages] english.MyAppName=Flyinsono Agent assistant chinese.MyAppName=杏聆荟代理助手 [Tasks] Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}" [Files] Source: "{#ProjectFolder}\Distribution\Agent\Accord.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "{#ProjectFolder}\Distribution\Agent\Accord.Video.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "{#ProjectFolder}\Distribution\Agent\Accord.Video.DirectShow.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "{#ProjectFolder}\Distribution\Agent\Dicom.Core.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "{#ProjectFolder}\Distribution\Agent\Dicom.Native.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "{#ProjectFolder}\Distribution\Agent\Dicom.Native64.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "{#ProjectFolder}\Distribution\Agent\System.Windows.Interactivity.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "{#ProjectFolder}\Distribution\Agent\Vinno.vCloud.Terminal.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "{#ProjectFolder}\Distribution\Agent\Vinno.vCloud.Base.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "{#ProjectFolder}\Distribution\Agent\SQLite.Net.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "{#ProjectFolder}\Distribution\Agent\SQLite.Net.Platform.Win32.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "{#ProjectFolder}\Distribution\Agent\x86\SQLite.Interop.dll"; DestDir: "{app}\x86"; Flags: ignoreversion Source: "{#ProjectFolder}\Distribution\Agent\x64\SQLite.Interop.dll"; DestDir: "{app}\x64"; Flags: ignoreversion Source: "{#ProjectFolder}\Distribution\Agent\Newtonsoft.Json.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "{#ProjectFolder}\Distribution\Agent\vCloud.Agent.exe"; DestDir: "{app}"; Flags: ignoreversion Source: "{#ProjectFolder}\Distribution\Agent\Newtonsoft.Json.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "{#ProjectFolder}\Distribution\Agent\Settings\Agent\*"; DestDir: "{app}\Settings\Agent"; Flags: ignoreversion recursesubdirs createallsubdirs Source: "{#ProjectFolder}\Distribution\Agent\vCloudPusher\*"; DestDir: "{app}\vCloudPusher"; Flags: ignoreversion Source: "{#ProjectFolder}\Distribution\Agent\vCloudPusher\x86\*"; DestDir: "{app}\vCloudPusher\x86"; Flags: ignoreversion recursesubdirs createallsubdirs Source: "{#ProjectFolder}\Distribution\Agent\vCloudPusher\x64\*"; DestDir: "{app}\vCloudPusher\x64"; Flags: ignoreversion recursesubdirs createallsubdirs Source: "{#ProjectFolder}\Distribution\Agent\UploadVidTags.conf"; DestDir: "{app}"; Flags: ignoreversion [Icons] Name: "{group}\{cm:MyAppName}"; Filename: "{app}\{#SetupAppExeName}" Name: "{commondesktop}\{cm:MyAppName}"; Filename: "{app}\{#SetupAppExeName}"; Tasks: desktopicon [Run] Filename: "{app}\{#SetupAppExeName}"; Description: "{cm:LaunchProgram,{cm:MyAppName}}"; Flags:runascurrentuser nowait postinstall skipifsilent Filename: "{app}\{#SetupAppExeName}"; Description: "{cm:LaunchProgram,{cm:MyAppName}}"; Flags:runascurrentuser nowait; Check:WizardSilent [Code] procedure KillAgent(); var ResultCode: Integer; ExePath: String; begin begin Exec('TASKKILL', '/IM vCloud.Agent.exe /F', '', SW_HIDE, ewWaitUntilTerminated, ResultCode); Exec('TASKKILL', '/IM PushApp.exe /F', '', SW_HIDE, ewWaitUntilTerminated, ResultCode); end; end; procedure CurStepChanged(CurStep: TSetupStep); begin if CurStep = ssinstall then begin KillAgent(); end; end;