Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Morganwan90 authored Mar 23, 2023
1 parent 2eced61 commit 6dca844
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 5 deletions.
16 changes: 16 additions & 0 deletions Change log.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,38 @@
### V2.82

**【优化】**

- 优化安装程序,避免出现选择文件或目录的问题,并添加注释。

### V2.81

**【修复】**

- 修复部分电脑安装失败的问题

### V2.8

**【修复】**

- 删减部分自动列宽调整代码,尝试解决出现部分表格重新开启后宽度异常的问题

### V2.7

**【优化】**

- 断开所有样式和正文的联系,避免本地修改正文样式导致的文档样式错乱
- 添加删除未使用样式,断开样式但保留格式代码,相关代码存在不稳定,可能会引起文档崩溃等问题,仅在宏列表,未添加至选择卡。

### V2.6.6

**【优化】**

修改表格样式二,修改部分表述

### V2.6.4

【优化】

行列检验调整为弹框显示

### V2.6.3
Expand Down
Binary file added 招股书排版工具2.82.dotm
Binary file not shown.
22 changes: 17 additions & 5 deletions 自动安装程序.bat
Original file line number Diff line number Diff line change
@@ -1,19 +1,31 @@
@echo off
echo 尝试匹配模板地址...
echo =========================================================================
echo =========================================================================
echo 本程序将采取直接替换默认模板方式安装,如用户曾【自定义标题格式】、【安装过其他类似插件】等将会被重置
choice /C YN /N /M "是否继续(按下Y)或退出程序(按下N)?"
if errorlevel 2 exit
echo 继续执行程序...
echo =========================================================================
echo 准备备份旧模板...
echo ===============如出现选择文件或目录,请选择文件(按F)======================
if exist "C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Templates" (
xcopy "C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Templates\Normal.dotm" "C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Templates\Normal-old.dotm"/y/f || goto error1
xcopy 招股书排版*.dotm "C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Templates\Normal.dotm"/y/f && (goto succeed1) || goto error2
xcopy "C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Templates\Normal.dotm" "C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Templates\Normal-old.*" /y/f || goto error1
echo =========旧模板备份成功============
echo 准备安装模板...
xcopy 招股书排版*.dotm "C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Templates\Normal.dotm" /y/f && (goto succeed1) || goto error2
) else (
echo 默认模板地址匹配失败,尝试匹配PA标装机模板地址...
echo 准备备份旧模板...
echo ===============如出现选择文件或目录,请选择文件(按F)======================
if exist "D:\Users\%USERNAME%\AppData\Roaming\Microsoft\Templates" (
xcopy "D:\Users\%USERNAME%\AppData\Roaming\Microsoft\Templates\Normal.dotm" "D:\Users\%USERNAME%\AppData\Roaming\Microsoft\Templates\Normal-old.dotm"/y/f || goto error1
xcopy "D:\Users\%USERNAME%\AppData\Roaming\Microsoft\Templates\Normal.dotm" "D:\Users\%USERNAME%\AppData\Roaming\Microsoft\Templates\Normal-old.*"/y/f || goto error1
echo =========旧模板备份成功============
echo 准备安装模板...
xcopy 招股书排版*.dotm "D:\Users\%USERNAME%\AppData\Roaming\Microsoft\Templates\Normal.dotm" /y/f && (goto succeed2) || goto error2
) else (
echo =========================================================================
echo =========================================================================
echo 【地址提取失败】未成功提取地址,请手动替换
echo 【地址提取失败】未成功提取地址,请参照README文件手动替换
)
)

Expand Down

0 comments on commit 6dca844

Please sign in to comment.