58 lines
2.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

; 小壹安装程序(Inno Setup 7)。由 package-client.mjs 的发布模式调用 ISCC 编译,不单独维护版本号。
; 按用户安装到本人的程序目录,不需要管理员权限;在线更新要在安装目录里写入新版本,所以不装到 Program Files。
#ifndef AppVersion
#error 需要用 /DAppVersion 指定版本
#endif
[Setup]
AppId={{5B177B45-BE79-448E-92CA-576298A9F184}
AppName=小壹
AppVersion={#AppVersion}
AppVerName=小壹 {#AppVersion}
AppPublisher=由壹点品牌中心
DefaultDirName={localappdata}\Programs\小壹
DefaultGroupName=小壹
DisableProgramGroupPage=yes
PrivilegesRequired=lowest
ArchitecturesAllowed=x64compatible
ArchitecturesInstallIn64BitMode=x64compatible
MinVersion=10.0
OutputDir={#OutputDir}
OutputBaseFilename={#OutputBaseFilename}
SetupIconFile={#IconFile}
UninstallDisplayIcon={app}\小壹.exe
UninstallDisplayName=小壹
VersionInfoVersion={#AppVersion}
VersionInfoCompany=由壹点品牌中心
VersionInfoDescription=小壹安装程序
VersionInfoProductName=小壹
VersionInfoProductVersion={#AppVersion}
Compression=lzma2
SolidCompression=yes
WizardStyle=modern
CloseApplications=yes
RestartApplications=no
[Languages]
Name: "chinesesimplified"; MessagesFile: "compiler:Languages\ChineseSimplified.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"
[Files]
Source: "{#SourceDir}\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
[Icons]
Name: "{autoprograms}\小壹"; Filename: "{app}\小壹.exe"; WorkingDir: "{app}"
Name: "{autodesktop}\小壹"; Filename: "{app}\小壹.exe"; WorkingDir: "{app}"; Tasks: desktopicon
[Run]
Filename: "{app}\小壹.exe"; Description: "{cm:LaunchProgram,小壹}"; Flags: nowait postinstall skipifsilent
[UninstallDelete]
; 在线更新后来写入的版本和指针不在安装清单里,卸载时一并删除。用户资料保存在 Windows 用户配置里,不在这里。
Type: filesandordirs; Name: "{app}\versions"
Type: filesandordirs; Name: "{app}\.update"
Type: files; Name: "{app}\current.txt"
Type: files; Name: "{app}\previous.txt"