星火微课系统客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Inno Setup星火微课.iss 3.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. ; ű Inno Setup ű ɣ
  2. ; йش Inno Setup űļϸİĵ
  3. #define MyAppName "ǻ΢"
  4. #define MyAppDir "xhwk"
  5. #define MyAppVersion "2.6.1"
  6. #define MyAppPublisher "ǻԭƼ޹˾"
  7. #define MyAppURL "http://www.xhkjedu.com/"
  8. #define MySourcePath "D:\Project\C#\xhwkclient\XHWK.WKTool\bin\x86\Debug\"
  9. #define MyAppExeName "ǻ΢.exe"
  10. #define MyIcoName "256.ico"
  11. #define MyTargetPath "D:\\ǻ΢\"
  12. [Setup]
  13. ; ע: AppIdֵΪʶӦó
  14. ; ҪΪװʹͬAppIdֵ
  15. ; (Ҫµ GUIDڲ˵е "| GUID")
  16. AppId={{5869900A-3BE4-463E-B0A6-462AA7454AE2}
  17. AppName={#MyAppName}
  18. AppVersion={#MyAppVersion}
  19. ;AppVerName={#MyAppName} {#MyAppVersion}
  20. AppPublisher={#MyAppPublisher}
  21. AppPublisherURL={#MyAppURL}
  22. AppSupportURL={#MyAppURL}
  23. AppUpdatesURL={#MyAppURL}
  24. DefaultDirName={autopf}\{#MyAppDir}
  25. DisableProgramGroupPage=yes
  26. ; [Icons] ġquicklaunchiconĿʹ {userappdata} [Tasks] Ŀʺ IsAdminInstallMode ļ顣
  27. UsedUserAreasWarning=no
  28. ; ȡעͣڷǹװģʽУΪǰûװ
  29. ;PrivilegesRequired=lowest
  30. OutputDir={#MyTargetPath}
  31. OutputBaseFilename="{#MyAppName} v{#MyAppVersion}"
  32. SetupIconFile="{#MySourcePath}{#MyIcoName}"
  33. Compression=lzma
  34. SolidCompression=yes
  35. WizardStyle=modern
  36. [Languages]
  37. Name: "chinesesimp"; MessagesFile: "compiler:Default.isl"
  38. [Tasks]
  39. Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: checkablealone
  40. Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: checkablealone; OnlyBelowVersion: 6.1; Check: not IsAdminInstallMode
  41. [Files]
  42. Source: "{#MySourcePath}{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
  43. Source: "{#MySourcePath}*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
  44. ; ע: ҪκιϵͳļʹáFlags: ignoreversion
  45. [Icons]
  46. Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
  47. Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
  48. Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: quicklaunchicon
  49. [Run]
  50. Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
  51. [Code]
  52. function InitializeSetup: Boolean;
  53. var Path:string;
  54. ResultCode: Integer;
  55. begin
  56. if RegValueExists(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Screen Capturer Recorder_is1', 'DisplayName') then
  57. begin
  58. Result := true;
  59. end
  60. else
  61. begin
  62. if MsgBox('ϵͳ⵽ûаװ¼ƻǷزװ', mbConfirmation, MB_YESNO) = idYes then
  63. begin
  64. Path := ExpandConstant('{pf}/Internet Explorer/iexplore.exe');
  65. Exec(Path, 'https://xhkjedu.oss-cn-huhehaote.aliyuncs.com/runtime/Setup%20Screen%20Capturer%20Recorder%20v0.12.10.exe', '', SW_SHOWNORMAL, ewWaitUntilTerminated, ResultCode);
  66. MsgBox('밲װ¼ƻбװ',mbInformation,MB_OK);
  67. Result := false;
  68. end
  69. else
  70. begin
  71. MsgBox('ȡֶװ¼ƻ',mbInformation,MB_OK);
  72. Result := true;
  73. end;
  74. end;
  75. end;