; AppId
|
#define AppId = "PdmMsgAlert"
|
; AppName
|
#define AppName = "PdmMsgAlert"
|
; ´ò°üµÄÓ¦ÓÃÎļþ¼Ð·¾¶
|
#define AppDir = "C:\Main\Workspace\VisualStudio\PdmSwPlugin2\PdmAlert\bin\x64\Release\"
|
; ×Ô¶¯¸üгÌÐò·¾¶
|
#define AutoUpdaterDir = "C:\Main\Workspace\VisualStudio\PdmSwPlugin2\PdmAlert\bin\x64\Release\AutoUpdater\"
|
; °æ±¾
|
#define Version = "0.0.0.1"
|
|
; Éú³ÉµÄInstaller´æ·Å·¾¶
|
#define OutPutDir = "C:\Main\Workspace\Output"
|
|
|
[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={{{#AppId}}
|
AppName={#AppName}
|
AppVersion={#Version}
|
;AppVerName=Test 1.0
|
; °²×°Â·¾¶ C:\Program Files (x86)\LHJ\PdmSwPlugin
|
DefaultDirName={autopf}\HengXin\PdmMsgAlert
|
DisableDirPage=yes
|
DefaultGroupName=PdmMsgAlert
|
DisableProgramGroupPage=yes
|
; Uncomment the following line to run in non administrative install mode (install for current user only.)
|
;PrivilegesRequired=lowest
|
OutputDir={#OutputDir}
|
OutputBaseFilename=PdmMsgAlertInstaller_V{#Version}
|
Compression=lzma
|
SolidCompression=yes
|
WizardStyle=modern
|
PrivilegesRequired=admin
|
UsedUserAreasWarning=no
|
|
[Languages]
|
Name: "chinesesimplified"; MessagesFile: "compiler:Languages\ChineseSimplified.isl"
|
|
[Files]
|
Source: "{#AppDir}*"; DestDir: "{app}"; Excludes: "temp\*,Log\*"; Flags:recursesubdirs ignoreversion
|
;Source: "{#AutoUpdaterDir}*"; DestDir: "{app}\AutoUpdater"; Excludes: "download\*"; Flags: ignoreversion
|
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
|
|
[Dirs]
|
Name: {app}; Permissions: users-full
|
|
[Icons]
|
Name: "{group}\{cm:UninstallProgram,Test}"; Filename: "{uninstallexe}"
|
Name: "{userdesktop}\{#AppName}";Filename: "{app}\PdmAlert.exe"; WorkingDir: "{app}"
|
|
[code]
|
procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep);
|
begin
|
if CurUninstallStep = usDone then
|
begin
|
DelTree(ExpandConstant('{app}'), True, True, True);
|
end;
|
end;
|