Venus_RT.iss 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. ; Script generated by the Inno Setup Script Wizard.
  2. ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
  3. #define MyAppName "Venus_RT"
  4. #define MyAppVersion "1.0.0.1"
  5. #define MyAppPublisher "JET PLASMA"
  6. #define MyAppURL "http://www.jetplasma.com/"
  7. [Setup]
  8. ; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications.
  9. ; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
  10. AppId={{56BC97AA-FAE3-4809-8D12-58DF2FEFD19A}
  11. AppName={#MyAppName}
  12. AppVersion={#MyAppVersion}
  13. ;AppVerName={#MyAppName} {#MyAppVersion}
  14. AppPublisher={#MyAppPublisher}
  15. AppPublisherURL={#MyAppURL}
  16. AppSupportURL={#MyAppURL}
  17. AppUpdatesURL={#MyAppURL}
  18. DefaultDirName=C:\Venus\{#MyAppName}
  19. DefaultGroupName={#MyAppName}
  20. ; Uncomment the following line to run in non administrative install mode (install for current user only.)
  21. ;PrivilegesRequired=lowest
  22. OutputBaseFilename=Kepler2300_RT_V1.0.0.1
  23. Compression=lzma
  24. SolidCompression=yes
  25. WizardStyle=modern
  26. LicenseFile=License.txt
  27. UsePreviousAppDir=no
  28. [Languages]
  29. Name: "chinesesimp"; MessagesFile: "compiler:Default.isl"
  30. [Code]
  31. function ShouldSkipFile(FileName: String): Boolean;
  32. begin
  33. // 如果文件已存在,则跳过
  34. Result := FileExists(ExpandConstant('{app}\' + FileName));
  35. end;
  36. function ShouldSkipConfigFile(FileName: String): Boolean;
  37. begin
  38. // 如果文件已存在,则跳过
  39. Result := FileExists(ExpandConstant('{app}\Config\' + FileName));
  40. end;
  41. [Languages]
  42. Name: "chinesesimp"; MessagesFile: "compiler:Default.isl"
  43. [Files]
  44. Source: "..\Venus_RT\bin\Release\*";Excludes:"Venus_RT.exe.config,Config,Recipes,Logs,Objects,PartialPressureResult,VATPerformanceResult"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
  45. Source: "..\Venus_RT\bin\Release\Config\*"; Excludes:"*.data,*.bak,IoProviderConfig.xml,EquipmentVariables.xml";DestDir: "{app}\Config"; Flags: recursesubdirs
  46. Source: "..\Venus_RT\bin\Release\Venus_RT.exe.config"; DestDir: "{app}"; Check: not ShouldSkipFile('Venus_RT.exe.config')
  47. Source: "..\Venus_RT\bin\Release\Config\EquipmentVariables.xml"; DestDir: "{app}\Config"; Check: not ShouldSkipConfigFile('EquipmentVariables.xml')
  48. Source: "..\Venus_RT\bin\Release\Config\IoProviderConfig.xml"; DestDir: "{app}\Config"; Check: not ShouldSkipConfigFile('IoProviderConfig.xml')
  49. [Icons]
  50. Name: "{userdesktop}\Kepler_RT";Filename: "{app}\{#MyAppName}.exe"; WorkingDir: "{app}"