67 lines
2.2 KiB
Plaintext
67 lines
2.2 KiB
Plaintext
#ifndef AppVersion
|
|
#error AppVersion must be provided by scripts/package_windows.ps1
|
|
#endif
|
|
#ifndef SourceDir
|
|
#error SourceDir must be provided by scripts/package_windows.ps1
|
|
#endif
|
|
#ifndef OutputDir
|
|
#error OutputDir must be provided by scripts/package_windows.ps1
|
|
#endif
|
|
#ifndef SetupBaseName
|
|
#error SetupBaseName must be provided by scripts/package_windows.ps1
|
|
#endif
|
|
#ifndef ChineseMessagesFile
|
|
#error ChineseMessagesFile must be provided by scripts/package_windows.ps1
|
|
#endif
|
|
#ifndef AppIconFile
|
|
#error AppIconFile must be provided by scripts/package_windows.ps1
|
|
#endif
|
|
|
|
#define AppName "甄养堂医生工作站"
|
|
#define AppPublisher "ZYT"
|
|
#define AppExecutableName "DoctorWorkstation.exe"
|
|
#define AppIdValue "{{07D97DE8-3DF5-492D-AB2A-BE58FC1A040D}"
|
|
|
|
[Setup]
|
|
AppId={#AppIdValue}
|
|
AppName={#AppName}
|
|
AppVersion={#AppVersion}
|
|
AppVerName={#AppName} {#AppVersion}
|
|
AppPublisher={#AppPublisher}
|
|
DefaultDirName={autopf}\ZYT\DoctorWorkstation
|
|
DefaultGroupName={#AppName}
|
|
DisableProgramGroupPage=yes
|
|
OutputDir={#OutputDir}
|
|
OutputBaseFilename={#SetupBaseName}
|
|
SetupIconFile={#AppIconFile}
|
|
Compression=lzma2/max
|
|
SolidCompression=yes
|
|
WizardStyle=modern
|
|
PrivilegesRequired=admin
|
|
PrivilegesRequiredOverridesAllowed=dialog commandline
|
|
UsePreviousAppDir=yes
|
|
UsePreviousPrivileges=yes
|
|
ArchitecturesAllowed=x64compatible
|
|
ArchitecturesInstallIn64BitMode=x64compatible
|
|
MinVersion=10.0.17763
|
|
UninstallDisplayIcon={app}\{#AppExecutableName},0
|
|
CloseApplications=yes
|
|
RestartApplications=no
|
|
SetupLogging=yes
|
|
|
|
[Languages]
|
|
Name: "chinesesimplified"; MessagesFile: "{#ChineseMessagesFile}"
|
|
|
|
[Tasks]
|
|
Name: "desktopicon"; Description: "创建桌面快捷方式"; GroupDescription: "附加快捷方式:"; Flags: unchecked
|
|
|
|
[Files]
|
|
Source: "{#SourceDir}\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
|
|
|
|
[Icons]
|
|
Name: "{autoprograms}\{#AppName}"; Filename: "{app}\{#AppExecutableName}"; WorkingDir: "{app}"; IconFilename: "{app}\{#AppExecutableName}"; IconIndex: 0
|
|
Name: "{autodesktop}\{#AppName}"; Filename: "{app}\{#AppExecutableName}"; WorkingDir: "{app}"; IconFilename: "{app}\{#AppExecutableName}"; IconIndex: 0; Tasks: desktopicon
|
|
|
|
[Run]
|
|
Filename: "{app}\{#AppExecutableName}"; Description: "启动 {#AppName}"; WorkingDir: "{app}"; Flags: nowait postinstall skipifsilent
|