mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.6 KiB
58 lines
1.6 KiB
|
|
|
|
rem
|
|
rem 根据机器类型设置 __ProgramFiles 变量
|
|
rem
|
|
Set __ProgramFiles=%ProgramFiles%
|
|
If Not "%PROCESSOR_ARCHITECTURE%"=="ALPHA" goto acsrCont1
|
|
If Not Exist "%ProgramFiles(x86)%" goto acsrCont1
|
|
Set __ProgramFiles=%Program Files(x86)%
|
|
:acsrCont1
|
|
Rem
|
|
Rem 在用户的主目录中为应用程序特有数据
|
|
Rem 创建目录。
|
|
Rem
|
|
|
|
call TsMkUDir "%RootDrive%\Office95"
|
|
call TsMkuDir "%RootDrive%\Office95\Startup"
|
|
|
|
|
|
|
|
|
|
|
|
call TsMkUDir "%RootDrive%\Office95\Templates"
|
|
|
|
|
|
call TsMkuDir "%RootDrive%\Office95\XLStart"
|
|
|
|
Rem
|
|
Rem 将系统工具栏复制到用户的主目录,除非
|
|
Rem 已经存在。
|
|
Rem
|
|
|
|
If Exist "%RootDrive%\Office95\ShortCut Bar" Goto Skip1
|
|
If Not Exist "#INSTDIR#\Office\ShortCut Bar" Goto Skip1
|
|
Xcopy "#INSTDIR#\Office\ShortCut Bar" "%RootDrive%\Office95\ShortCut Bar" /E /I >Nul: 2>&1
|
|
:Skip1
|
|
|
|
Rem
|
|
Rem 将 ClipArt Gallery 文件复制到用户的目录
|
|
Rem
|
|
|
|
If Exist "%RootDrive%\Windows\ArtGalry.Cag" Goto Skip2
|
|
If Not Exist "%__ProgramFiles%\Common Files\Microsoft Shared\Artgalry\ArtGalry.cag" Goto Skip2
|
|
Copy "%__ProgramFiles%\Common Files\Microsoft Shared\Artgalry\ArtGalry.cag" "%RootDrive%\Windows\ArtGalry.Cag" >Nul: 2>&1
|
|
:Skip2
|
|
|
|
Rem
|
|
Rem 在用户的目录中创建 Custom.dic 文件
|
|
Rem
|
|
|
|
If Not Exist "%RootDrive%\Office95\Custom.Dic" Copy Nul: "%RootDrive%\Office95\Custom.Dic" >Nul: 2>&1
|
|
|
|
Rem
|
|
Rem 将 PowerPoint 和 Binder 文件复制到用户的目录
|
|
Rem
|
|
|
|
If Not Exist "%UserProfile%\%TEMPLATES%\BINDER70.OBD" copy "%ALLUSERSPROFILE%\%TEMPLATES%\BINDER70.OBD" "%UserProfile%\%TEMPLATES%\" /Y >Nul: 2>&1
|
|
If Not Exist "%UserProfile%\%TEMPLATES%\PPT70.PPT" copy "%ALLUSERSPROFILE%\%TEMPLATES%\PPT70.PPT" "%UserProfile%\%TEMPLATES%\" /Y >Nul: 2>&1
|