Bläddra i källkod

安装包文件优化

lixiang 3 veckor sedan
förälder
incheckning
21ea7e1dd2
2 ändrade filer med 26 tillägg och 6 borttagningar
  1. 24 4
      Venus/Venus_Setup/Venus_RT.iss
  2. 2 2
      Venus/Venus_Setup/Venus_UI.iss

+ 24 - 4
Venus/Venus_Setup/Venus_RT.iss

@@ -2,7 +2,7 @@
 ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
 
 #define MyAppName "Venus_RT"
-#define MyAppVersion "2.0"
+#define MyAppVersion "1.0.0.1"
 #define MyAppPublisher "JET PLASMA"
 #define MyAppURL "http://www.jetplasma.com/"
 
@@ -21,7 +21,7 @@ DefaultDirName=C:\Venus\{#MyAppName}
 DefaultGroupName={#MyAppName}
 ; Uncomment the following line to run in non administrative install mode (install for current user only.)
 ;PrivilegesRequired=lowest
-OutputBaseFilename=Kepler2200_RT_V1.0.0.4
+OutputBaseFilename=Kepler2300_RT_V1.0.0.1
 Compression=lzma
 SolidCompression=yes
 WizardStyle=modern
@@ -32,10 +32,30 @@ UsePreviousAppDir=no
 [Languages]
 Name: "chinesesimp"; MessagesFile: "compiler:Default.isl"
 
+[Code]
+function ShouldSkipFile(FileName: String): Boolean;
+begin
+  // 如果文件已存在,则跳过
+  Result := FileExists(ExpandConstant('{app}\' + FileName));
+end;
+
+ function ShouldSkipConfigFile(FileName: String): Boolean;
+begin
+  // 如果文件已存在,则跳过
+  Result := FileExists(ExpandConstant('{app}\Config\' + FileName));
+end;
+
+
+[Languages]
+Name: "chinesesimp"; MessagesFile: "compiler:Default.isl"
+
 
 [Files]
-Source: "..\Venus_RT\bin\Release\*";Excludes:"Config,Recipes,Logs,Objects,PartialPressureResult,VATPerformanceResult"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
-Source: "..\Venus_RT\bin\Release\Config\*"; Excludes:"*.data,*.bak,IoProviderConfig.xml";DestDir: "{app}\Config";  Flags: recursesubdirs
+Source: "..\Venus_RT\bin\Release\*";Excludes:"Venus_RT.exe.config,Config,Recipes,Logs,Objects,PartialPressureResult,VATPerformanceResult"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
+Source: "..\Venus_RT\bin\Release\Config\*"; Excludes:"*.data,*.bak,IoProviderConfig.xml,EquipmentVariables.xml";DestDir: "{app}\Config";  Flags: recursesubdirs
+Source: "..\Venus_RT\bin\Release\Venus_RT.exe.config";           DestDir: "{app}";        Check: not ShouldSkipFile('Venus_RT.exe.config')
+Source: "..\Venus_RT\bin\Release\Config\EquipmentVariables.xml"; DestDir: "{app}\Config"; Check: not ShouldSkipConfigFile('EquipmentVariables.xml')
+Source: "..\Venus_RT\bin\Release\Config\IoProviderConfig.xml";   DestDir: "{app}\Config"; Check: not ShouldSkipConfigFile('IoProviderConfig.xml')
 
 
 [Icons]

+ 2 - 2
Venus/Venus_Setup/Venus_UI.iss

@@ -2,7 +2,7 @@
 ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
 
 #define MyAppName "Venus_UI"
-#define MyAppVersion "1.0"
+#define MyAppVersion "1.0.0.1"
 #define MyAppPublisher "JET PLASMA"
 #define MyAppURL "http://www.jetplasma.com/"
 
@@ -21,7 +21,7 @@ DefaultDirName=C:\Venus\{#MyAppName}
 DefaultGroupName={#MyAppName}
 ; Uncomment the following line to run in non administrative install mode (install for current user only.)
 ;PrivilegesRequired=lowest
-OutputBaseFilename=Kepler2200_UI_V1.0.0.4
+OutputBaseFilename=Kepler2300_UI_V1.0.0.1
 Compression=lzma
 SolidCompression=yes
 WizardStyle=modern