; Script generated by the Inno Setup Script Wizard. ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES! #define MyAppName "JusMeetingApp" #define MyAppExeName "JusMeeting.exe" #define MyAppTitle "焦米" #define MyAppGroup "Juphoon" #define MyAppVersion "6.8.1-rc15(04290)" #define MyAppPublisher "Juphoon System Software Co,Ltd" #define MyAppURL "http://www.juphoon.com/" #define MyAppProtocol "Juphoon.JusMeeting.1" [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={{CE33AAD1-17F8-4F5A-94C0-0F8B038663BA} AppName={#MyAppName} AppVersion={#MyAppVersion} ;AppVerName={#MyAppName} {#MyAppVersion} AppPublisher={#MyAppPublisher} AppPublisherURL={#MyAppURL} AppSupportURL={#MyAppURL} AppUpdatesURL={#MyAppURL} DefaultDirName={pf}\{#MyAppGroup}\{#MyAppName} DefaultGroupName={#MyAppGroup} AllowNoIcons=yes OutputBaseFilename={#MyAppTitle} Compression=lzma SolidCompression=yes OutputDir=. SignTool=SignSha1 [Languages] Name: "english"; MessagesFile: "compiler:Default.isl" [Tasks] Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}" [Files] Source: "..\bin\JusMeetingApp.exe"; DestDir: "{app}"; DestName: "{#MyAppExeName}"; Flags: ignoreversion Source: "..\bin\mtc.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "..\bin\mtcmanaged.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "..\bin\hpmpdll.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "..\bin\mtcwrap.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "..\bin\signer.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "..\bin\sqlite3.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "..\bin\zmf.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "..\bin\zmfmanaged.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "..\bin\JusMeeting.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "..\bin\JusDoc.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "..\bin\dumper.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "..\bin\count.amr"; DestDir: "{app}"; Flags: ignoreversion Source: "..\bin\NetOffice.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "..\bin\OfficeApi.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "..\bin\PowerPointApi.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "..\bin\VBIDEApi.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "{#MyAppTitle}.ico"; DestDir: "{app}"; DestName: "icon.ico"; Flags: ignoreversion ;Source: "ring\*"; DestDir: "{app}\ring"; Flags: ignoreversion recursesubdirs createallsubdirs ; NOTE: Don't use "Flags: ignoreversion" on any shared system files [Icons] Name: "{group}\{#MyAppTitle}"; Filename: "{app}\{#MyAppExeName}"; IconFilename:"{app}\icon.ico" Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}" Name: "{commondesktop}\{#MyAppTitle}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon; IconFilename:"{app}\icon.ico" [Run] Filename: "{app}\{#MyAppExeName}"; Flags: nowait postinstall skipifsilent; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}" [registry] ;本段处理程序在注册表中的"Software\Juphoon\Jusmeeting\Title"键值用于程序内标题 Root:HKCU;Subkey:"Software\Juphoon";Flags: uninsdeletekey Root:HKCU;Subkey:"Software\Juphoon\Jusmeeting";Flags: uninsdeletevalue Root:HKCU;Subkey:"Software\Juphoon\Jusmeeting";ValueType: string; ValueName:"AppTitle";ValueData:"{#MyAppTitle}" Root:HKCU;Subkey:"Software\Juphoon\Jusmeeting";ValueType: string; ValueName:"AppGroup";ValueData:"{#MyAppGroup}" ;;本段处理由网页启动程序 Root:HKCR;Subkey:"{#MyAppProtocol}";Flags: uninsdeletekey Root:HKCR;Subkey:"{#MyAppProtocol}";ValueType: string; ValueName:;ValueData:"JusmeetingProtocol" Root:HKCR;Subkey:"{#MyAppProtocol}";ValueType: string; ValueName:"URL Protocol";ValueData:"{app}\{#MyAppExeName}" Root:HKCR;Subkey:"{#MyAppProtocol}\DefaultIcon";ValueType: string; ValueName:;ValueData:"{app}\icon.ico" Root:HKCR;Subkey:"{#MyAppProtocol}\shell\open\command";ValueType: string; ValueName:;ValueData:"{app}\{#MyAppExeName} %1 %2 %3 %4 %5 %6 %7 %8 %9" [CustomMessages] english.dotNetNeeded=Our program needs Microsoft .NET Framework 4 at least. Would you like to download and install it now? [Code] function IsFrameworkSatisfied: boolean; // Indicates whether the specified version and service pack of the .NET Framework is installed. // // version -- Specify one of these strings for the required .NET Framework version: // 'v1.1.4322' .NET Framework 1.1 // 'v2.0.50727' .NET Framework 2.0 // 'v3.0' .NET Framework 3.0 // 'v3.5' .NET Framework 3.5 // 'v4\Client' .NET Framework 4.0 Client Profile // 'v4\Full' .NET Framework 4.0 Full Installation // // service -- Specify any non-negative integer for the required service pack level: // 0 No service packs required // 1, 2, etc. Service pack 1, 2, etc. required var key: string; install, servicePack: cardinal; success: boolean; begin key := 'SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Client'; success := RegQueryDWordValue(HKLM, key, 'Install', install); result := success and (install = 1); end; function InitializeSetup(): Boolean; var ErrorCode: Integer; begin if not IsFrameworkSatisfied() then begin if(idYes = MsgBox(ExpandConstant('{cm:dotNetNeeded}'), mbConfirmation, MB_YESNO)) then begin ShellExec('open', 'http://www.microsoft.com/zh-cn/download/details.aspx?id=17718', '', '', SW_SHOWNORMAL, ewNoWait, ErrorCode); end; result := false; end else result := true; end;