Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
C
cpas6-install
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李金钢
cpas6-install
Commits
4eafd00f
Commit
4eafd00f
authored
Mar 30, 2026
by
Auto Backup
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: build
parent
4c6671c9
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
495 additions
and
32 deletions
+495
-32
CPAS6Setup_IAS.iss
CPAS6Setup_IAS.iss
+6
-32
CPAS6Setup_IASWithBom.iss
CPAS6Setup_IASWithBom.iss
+489
-0
No files found.
CPAS6Setup_IAS.iss
View file @
4eafd00f
...
@@ -20,6 +20,8 @@
...
@@ -20,6 +20,8 @@
#define CurDateString GetDateTimeString('yyMMdd', '-', ':');
#define CurDateString GetDateTimeString('yyMMdd', '-', ':');
[Setup]
[Setup]
; 告知编译器使用 Unicode 模式处理字符
; 注: AppId的值为单独标识该应用程序。
; 注: AppId的值为单独标识该应用程序。
; 不要为其他安装程序使用相同的AppId值。
; 不要为其他安装程序使用相同的AppId值。
; (生成新的GUID,点击 工具|在IDE中生成GUID。)
; (生成新的GUID,点击 工具|在IDE中生成GUID。)
...
@@ -232,8 +234,8 @@ Name: "{group}\卸载{#MyAppName}"; Filename: "{uninstallexe}"
...
@@ -232,8 +234,8 @@ Name: "{group}\卸载{#MyAppName}"; Filename: "{uninstallexe}"
;Name: "{app}\UFCPAS4Office\取消注册Office加载项6"; Filename: "{app}\UFCPAS4Office\注册Office加载项6.exe";Parameters: "/u"
;Name: "{app}\UFCPAS4Office\取消注册Office加载项6"; Filename: "{app}\UFCPAS4Office\注册Office加载项6.exe";Parameters: "/u"
[Code]
[Code]
function KillExe(Exename: PChar):integer; external 'KillExe@files:UFCPASSetupDll.dll stdcall setuponly';
function KillExe(Exename: P
Ansi
Char):integer; external 'KillExe@files:UFCPASSetupDll.dll stdcall setuponly';
function ProcessIsRun(Exename: PChar):boolean; external 'ProcessIsRun@files:UFCPASSetupDll.dll stdcall setuponly';
function ProcessIsRun(Exename: P
Ansi
Char):boolean; external 'ProcessIsRun@files:UFCPASSetupDll.dll stdcall setuponly';
function GetExcelIsWin64(): Boolean; external 'GetExcelIsWin64@files:UFCPASSetupDll.dll stdcall setuponly';
function GetExcelIsWin64(): Boolean; external 'GetExcelIsWin64@files:UFCPASSetupDll.dll stdcall setuponly';
procedure ClearTargetDir(TargetDir: string);
procedure ClearTargetDir(TargetDir: string);
begin
begin
...
@@ -325,7 +327,7 @@ begin
...
@@ -325,7 +327,7 @@ begin
if bInsForAllUser then
if bInsForAllUser then
bRetValue := RegQueryStringValue(HKEY_LOCAL_MACHINE, 'SYSTEM\CurrentControlSet\Control\Session Manager\Environment', aEnvName, sOrgValue)
bRetValue := RegQueryStringValue(HKEY_LOCAL_MACHINE, 'SYSTEM\CurrentControlSet\Control\Session Manager\Environment', aEnvName, sOrgValue)
else
else
bRetValue := RegQueryStringValue(HKEY_CURRENT_USER, 'Environment', aEnvName, sOrgValue)
bRetValue := RegQueryStringValue(HKEY_CURRENT_USER, 'Environment', aEnvName, sOrgValue)
;
sOrgValue := Trim(sOrgValue);
sOrgValue := Trim(sOrgValue);
begin
begin
S1 := aEnvValue;
S1 := aEnvValue;
...
@@ -359,35 +361,7 @@ begin
...
@@ -359,35 +361,7 @@ begin
end;
end;
end else //非NT 系统,如Win98
end else //非NT 系统,如Win98
begin
begin
SL := TStringList.Create;
try
sFileName := ExpandConstant('{sd}\autoexec.bat');
LoadStringFromFile(sFileName, S1);
SL.Text := s1;
s1 := '"' + aEnvValue + '"';
s1 := 'set '+aEnvName +'=%path%;' + s1 ;
bRetValue := False;
x := SL.IndexOf(s1);
if x = -1 then
begin
if aIsInstall then
begin
SL.Add(s1);
bRetValue := True;
end;
end else //还没添加
if not aIsInstall then
begin
SL.Delete(x);
bRetValue := True;
end;
if bRetValue then
SL.SaveToFile(sFileName);
finally
SL.free;
end;
end;
end;
end;
end;
...
...
CPAS6Setup_IASWithBom.iss
0 → 100644
View file @
4eafd00f
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment