|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- ; ű Inno Setup ű ɣ
- ; йش Inno Setup űļϸİĵ
-
- #define MyAppName "ǻ"
- #define MyAppDir "xhwk"
- #define MyAppVersion "2.6.1"
- #define MyAppPublisher "ǻԭƼ˾"
- #define MyAppURL "http://www.xhkjedu.com/"
- #define MySourcePath "D:\Project\C#\xhwkclient\XHWK.WKTool\bin\x86\Debug\"
- #define MyAppExeName "ǻ.exe"
- #define MyIcoName "256.ico"
- #define MyTargetPath "D:\\ǻ\"
-
- [Setup]
- ; ע: AppIdֵΪʶӦó
- ; ҪΪװʹͬAppIdֵ
- ; (Ҫµ GUIDڲ˵е "| GUID")
- AppId={{5869900A-3BE4-463E-B0A6-462AA7454AE2}
- AppName={#MyAppName}
- AppVersion={#MyAppVersion}
- ;AppVerName={#MyAppName} {#MyAppVersion}
- AppPublisher={#MyAppPublisher}
- AppPublisherURL={#MyAppURL}
- AppSupportURL={#MyAppURL}
- AppUpdatesURL={#MyAppURL}
- DefaultDirName={autopf}\{#MyAppDir}
- DisableProgramGroupPage=yes
- ; [Icons] ġquicklaunchiconĿʹ {userappdata} [Tasks] Ŀʺ IsAdminInstallMode ļ顣
- UsedUserAreasWarning=no
- ; ȡעͣڷǹװģʽУΪǰûװ
- ;PrivilegesRequired=lowest
- OutputDir={#MyTargetPath}
- OutputBaseFilename="{#MyAppName} v{#MyAppVersion}"
- SetupIconFile="{#MySourcePath}{#MyIcoName}"
- Compression=lzma
- SolidCompression=yes
- WizardStyle=modern
-
- [Languages]
- Name: "chinesesimp"; MessagesFile: "compiler:Default.isl"
-
- [Tasks]
- Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: checkablealone
- Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: checkablealone; OnlyBelowVersion: 6.1; Check: not IsAdminInstallMode
-
- [Files]
- Source: "{#MySourcePath}{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
- Source: "{#MySourcePath}*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
- ; ע: ҪκιϵͳļʹáFlags: ignoreversion
-
- [Icons]
- Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
- Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
- Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: quicklaunchicon
-
- [Run]
- Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
-
- [Code]
- function InitializeSetup: Boolean;
- var Path:string;
- ResultCode: Integer;
- begin
- if RegValueExists(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Screen Capturer Recorder_is1', 'DisplayName') then
- begin
- Result := true;
- end
- else
- begin
- if MsgBox('ϵͳûаװ¼ƻǷزװ', mbConfirmation, MB_YESNO) = idYes then
- begin
- Path := ExpandConstant('{pf}/Internet Explorer/iexplore.exe');
- Exec(Path, 'https://xhkjedu.oss-cn-huhehaote.aliyuncs.com/runtime/Setup%20Screen%20Capturer%20Recorder%20v0.12.10.exe', '', SW_SHOWNORMAL, ewWaitUntilTerminated, ResultCode);
- MsgBox('밲װ¼ƻбװ',mbInformation,MB_OK);
- Result := false;
- end
- else
- begin
- MsgBox('ȡֶװ¼ƻ',mbInformation,MB_OK);
- Result := true;
- end;
- end;
- end;
|