windows-nt/Source/XPSP1/NT/termsrv/admtools/appcmpt/cht/outlk98.cmd

156 lines
3.9 KiB
Batchfile
Raw Normal View History

2020-09-26 03:20:57 -05:00
@Echo Off
Rem #########################################################################
Rem
Rem <20>ˬd %RootDrive% <20>O<EFBFBD>_<EFBFBD>w<EFBFBD>g<EFBFBD>]<5D>w<EFBFBD>A<EFBFBD>ñN<C3B1><4E><EFBFBD>]<5D>w<EFBFBD><77><EFBFBD><EFBFBD><EFBFBD>O<EFBFBD>ɡC
Rem
Call "%SystemRoot%\Application Compatibility Scripts\ChkRoot.Cmd"
If "%_CHKROOT%" == "FAIL" Goto Done
Call "%SystemRoot%\Application Compatibility Scripts\SetPaths.Cmd"
If "%_SETPATHS%" == "FAIL" Goto Done
Rem #########################################################################
Rem
Rem <20>q<EFBFBD>n<EFBFBD><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>o Outlook 98 <20>w<EFBFBD>˦<EFBFBD><CBA6>m<EFBFBD>C
Rem <20>p<EFBFBD>G<EFBFBD><EFBFBD><E4A4A3><EFBFBD>A<EFBFBD>N<EFBFBD><4E><EFBFBD>] Outlook 98 <20>å<EFBFBD><C3A5>w<EFBFBD>˨<EFBFBD><CBA8><EFBFBD><EFBFBD>ܿ<EFBFBD><DCBF>~<7E>T<EFBFBD><54><EFBFBD>C
Rem
..\ACRegL %Temp%\O98.Cmd O98INST "HKLM\Software\Microsoft\Office\8.0\Common\InstallRoot" "OfficeBin" "Stripchar\1"
If Not ErrorLevel 1 Goto Cont0
Echo.
Echo <20>L<EFBFBD>k<EFBFBD>q<EFBFBD>n<EFBFBD><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Outlook 98 <20><><EFBFBD>w<EFBFBD>˦<EFBFBD><CBA6>m<EFBFBD>C
Echo <20>нT<D0BD>{ Outlook 98 <20>O<EFBFBD>_<EFBFBD>w<EFBFBD>w<EFBFBD>ˡA<CBA1>M<EFBFBD><EFBFBD>s
Echo <20><><EFBFBD><EFBFBD><EFBFBD>o<EFBFBD>ӫ<EFBFBD><D3AB>O<EFBFBD>ɡC
Echo.
Pause
Goto Done
:Cont0
Call %Temp%\O98.Cmd
Del %Temp%\O98.Cmd >Nul: 2>&1
Rem #########################################################################
Rem
Rem <20>ܧ<EFBFBD><DCA7>n<EFBFBD><6E><EFBFBD><EFBFBD><EFBFBD>X<EFBFBD>A<EFBFBD>N<EFBFBD><4E><EFBFBD>|<7C><><EFBFBD>V<EFBFBD>ϥΪ̩ҫ<CCA9><D2AB>w<EFBFBD><77>
Rem <20>ؿ<EFBFBD><D8BF>C
Rem
Rem <20>p<EFBFBD>G<EFBFBD>ثe<D8AB><65><EFBFBD>O<EFBFBD>w<EFBFBD>˼Ҧ<CBBC><D2A6>A<EFBFBD>N<EFBFBD>ܧ󦨦w<F3A6A8A6>˼Ҧ<CBBC><D2A6>C
Set __OrigMode=Install
ChgUsr /query > Nul:
if Not ErrorLevel 101 Goto Begin
Set __OrigMode=Exec
Change User /Install > Nul:
:Begin
REM
REM <20>p<EFBFBD>G<EFBFBD>w<EFBFBD>w<EFBFBD><77> Office97 <20>Ψå<CEA8><C3A5>w<EFBFBD><77> Office <20>A<EFBFBD>N<EFBFBD>ϥ<EFBFBD> Office97 per-user dir
REM <20>p<EFBFBD>G<EFBFBD>w<EFBFBD>w<EFBFBD><77> Office95<39>A<EFBFBD>N<EFBFBD>ϥ<EFBFBD> Office95 per-user dir
REM
Set OffUDir=Office97
..\ACRegL %Temp%\Off.Cmd OFFINST "HKLM\Software\Microsoft\Office\8.0\Common\InstallRoot" "" ""
If Not ErrorLevel 1 Goto OffChk
..\ACRegL %Temp%\Off.Cmd OFFINST "HKLM\Software\Microsoft\Microsoft Office\95\InstallRoot" "" ""
If Not ErrorLevel 1 Goto Off95
..\ACRegL %Temp%\Off.Cmd OFFINST "HKLM\Software\Microsoft\Microsoft Office\95\InstallRootPro" "" ""
If Not ErrorLevel 1 Goto Off95
set OFFINST=%O98INST%
goto Cont1
:Off95
Set OffUDir=Office95
:OffChk
Call %Temp%\Off.Cmd
Del %Temp%\Off.Cmd >Nul: 2>&1
:Cont1
..\acsr "#ROOTDRIVE#" "%RootDrive%" Template\Outlk98.Key Outlk98.Tmp
..\acsr "#INSTDIR#" "%OFFINST%" Outlk98.Tmp Outlk98.Tmp2
..\acsr "#OFFUDIR#" "%OffUDir%" Outlk98.Tmp2 Outlk98.Tmp3
..\acsr "#MY_DOCUMENTS#" "%MY_DOCUMENTS%" Outlk98.Tmp3 Outlk98.Key
Del Outlk98.Tmp >Nul: 2>&1
Del Outlk98.Tmp2 >Nul: 2>&1
Del Outlk98.Tmp3 >Nul: 2>&1
regini Outlk98.key > Nul:
Rem <20>p<EFBFBD>G<EFBFBD><47><EFBFBD>ӬO<D3AC><4F><EFBFBD><EFBFBD><EFBFBD>Ҧ<EFBFBD><D2A6>A<EFBFBD>N<EFBFBD>ܦ^<5E><><EFBFBD><EFBFBD><EFBFBD>Ҧ<EFBFBD><D2A6>C
If "%__OrigMode%" == "Exec" Change User /Execute > Nul:
Set __OrigMode=
Rem #########################################################################
Rem
Rem <20><><EFBFBD>s Olk98Usr.Cmd <20>ӤϬM<CFAC><4D><EFBFBD>ڪ<EFBFBD><DAAA>w<EFBFBD>˥ؿ<CBA5><D8BF>A
Rem <20>ñN<C3B1><4E><EFBFBD>[<5B>J UsrLogn2.Cmd <20><><EFBFBD>O<EFBFBD>ɡC
Rem
..\acsr "#INSTDIR#" "%OFFINST%" ..\Logon\Template\Olk98Usr.Cmd Olk98Usr.Tmp
..\acsr "#OFFUDIR#" "%OffUDir%" Olk98Usr.Tmp ..\Logon\Olk98Usr.Cmd
Del Olk98Usr.Tmp
FindStr /I Olk98Usr %SystemRoot%\System32\UsrLogn2.Cmd >Nul: 2>&1
If Not ErrorLevel 1 Goto Skip1
Echo Call Olk98Usr.Cmd >> %SystemRoot%\System32\UsrLogn2.Cmd
:Skip1
Rem #########################################################################
Rem
Rem <20>b SystemRoot <20>U<EFBFBD>إ<EFBFBD> msremote.sfs <20>ؿ<EFBFBD><D8BF>C<EFBFBD>o<EFBFBD>|<7C><><EFBFBD>\<5C>ϥΪ<CFA5>
Rem <20>ϥ<EFBFBD> [<5B><><EFBFBD><EFBFBD><EFBFBD>x] [<5B>l<EFBFBD><6C><EFBFBD>ζǯu] <20>ϥܨӫإ߳]<5D>w<EFBFBD>ɡC
Rem
md %systemroot%\msremote.sfs > Nul: 2>&1
Rem #########################################################################
Rem
Rem <20><><EFBFBD>\ TS Users <20>b frmcache.dat <20>ɮפ<C9AE><D7A4>ܧ<EFBFBD> outlook <20>s<EFBFBD><73><EFBFBD>v<EFBFBD>C
Rem
If Exist %SystemRoot%\Forms\frmcache.dat cacls %SystemRoot%\forms\frmcache.dat /E /G "Terminal Server User":C >NUL: 2>&1
Rem #########################################################################
Rem #########################################################################
Rem
Rem <20>b SystemRoot <20>U<EFBFBD>إ<EFBFBD> msfslog.txt <20>ɮסA<D7A1>ñ»P Terminal Server <20>ϥΪ<CFA5>
Rem <20><><EFBFBD>o<EFBFBD><6F><EFBFBD>ɮת<C9AE><D7AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>s<EFBFBD><73><EFBFBD>v<EFBFBD>C
Rem
If Exist %systemroot%\MSFSLOG.TXT Goto MsfsACLS
Copy Nul: %systemroot%\MSFSLOG.TXT >Nul: 2>&1
:MsfsACLS
Cacls %systemroot%\MSFSLOG.TXT /E /P "Terminal Server User":F >Nul: 2>&1
Echo.
Echo <20><><EFBFBD>F<EFBFBD><46><EFBFBD><EFBFBD> Outlook 98 <20><><EFBFBD>T<EFBFBD>ާ@<40>A<EFBFBD>ثe<D8AB>w<EFBFBD>n<EFBFBD>J
Echo <20><><EFBFBD>ϥΪ̥<CEAA><CCA5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>n<EFBFBD>X<EFBFBD>A<EFBFBD>A<EFBFBD><41><EFBFBD>s<EFBFBD>n<EFBFBD>J<EFBFBD>A<EFBFBD>~<7E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
Echo Outlook 98<39>C
Echo.
Echo Microsoft Outlook 98 <20>h<EFBFBD>ϥΪ<CFA5><CEAA><EFBFBD><EFBFBD>ε{<7B><><EFBFBD>վ<EFBFBD><D5BE>B<EFBFBD>z<EFBFBD><7A><EFBFBD><EFBFBD>
Pause
:done