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.
73 lines
1.9 KiB
73 lines
1.9 KiB
@Echo off
|
|
|
|
Rem
|
|
Rem 在使用者主目錄中建立應用程式指定資料
|
|
Rem 所在目錄。
|
|
Rem
|
|
|
|
call TsMkUDir "%RootDrive%\Office43"
|
|
call TsMkUDir "%RootDrive%\Office43\Access"
|
|
call TsMkUDir "%RootDrive%\Office43\Winword"
|
|
|
|
Rem 刪除 Normal.dot 及 Winword.opt (如果這些目錄存在的話)
|
|
|
|
If Not Exist "#OFC43INST#\Winword\Normal.dot" Goto cont0
|
|
Del /F /Q "#OFC43INST#\Winword\Normal.dot" > NUL: 2>&1
|
|
:cont0
|
|
|
|
If Not Exist "#OFC43INST#\Winword\Winword.opt" Goto cont1
|
|
Del /F /Q "#OFC43INST#\Winword\Winword.opt" > NUL: 2>&1
|
|
:cont1
|
|
|
|
Rem
|
|
Rem 從 Access 精靈複製檔案。
|
|
Rem
|
|
|
|
If Exist "%RootDrive%\Office43\Access\wztable.mda" Goto skip1
|
|
If Not Exist "#OFC43INST#\Access\wztable.mda" Goto skip1
|
|
copy "#OFC43INST#\Access\wztable.mda" "%RootDrive%\Office43\Access\" > NUL: 2>&1
|
|
|
|
:skip1
|
|
|
|
If Exist "%RootDrive%\Office43\Access\wzlib.mda" Goto skip2
|
|
If Not Exist "#OFC43INST#\Access\wzlib.mda" Goto skip2
|
|
copy "#OFC43INST#\Access\wzlib.mda" "%RootDrive%\Office43\Access\" > NUL: 2>&1
|
|
|
|
:skip2
|
|
|
|
If Exist "%RootDrive%\Office43\Access\wzbldr.mda" Goto skip3
|
|
If Not Exist "#OFC43INST#\Access\wzbldr.mda" Goto skip3
|
|
copy "#OFC43INST#\Access\wzbldr.mda" "%RootDrive%\Office43\Access\" > NUL: 2>&1
|
|
|
|
:skip3
|
|
|
|
Rem
|
|
Rem 為每個使用者複製自訂目錄。
|
|
Rem
|
|
|
|
If Exist "%RootDrive%\Office43\Custom.dic" Goto skip4
|
|
If Not Exist "%SystemRoot%\Msapps\Proof\Custom.dic" Goto skip4
|
|
copy "%SystemRoot%\Msapps\Proof\Custom.dic" "%RootDrive%\Office43" > NUL: 2>&1
|
|
|
|
:skip4
|
|
|
|
Rem
|
|
Rem 將 Access 選項檔案複製到使用者的 office 目錄。
|
|
Rem
|
|
|
|
If Exist "%RootDrive%\Office43\Access\System.mda" Goto skip5
|
|
If Not Exist "#OFC43INST#\Access\System.mda" Goto skip5
|
|
copy "#OFC43INST#\Access\System.mda" "%RootDrive%\Office43\Access\" > NUL: 2>&1
|
|
|
|
:skip5
|
|
|
|
Rem
|
|
Rem 傳播登錄機碼。登錄對應無法套用。
|
|
|
|
If Exist "%RootDrive%\Windows\Ofc43usr.dmy" Goto skip6
|
|
regini ofc43usr.key > NUL:
|
|
copy NUL: "%RootDrive%\Windows\Ofc43usr.dmy" > NUL: 2>&1
|
|
attrib +h "%RootDrive%\Windows\Ofc43usr.dmy" > NUL: 2>&1
|
|
|
|
:skip6
|
|
|