@Echo Off Rem ######################################################################### Rem Rem 从注册表项中获得 Lotus Wordpro 9 的安装位置 Rem ..\ACRegL "%Temp%\wordpro.Cmd" WP "HKLM\Software\Lotus\Wordpro\98.0" "Path" "" Call "%Temp%\wordpro.Cmd" Del "%Temp%\wordpro.Cmd" >Nul: 2>&1 Rem ######################################################################### Rem Rem 请验证 %RootDrive% 已经过配置,并为这个脚本设置该变量。 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 ######################################################################### If Exist ..\Logon\SS9Usr.Cmd Goto Skip1 Echo. Echo 找不到 SS9Usr.Cmd 登录脚本 Echo %Systemroot%\Application Compatibility Scripts\Logon. Echo. Echo Lotus SmartSuite 9 多用户应用程序调整被终止。 Echo. Pause Goto Done :Skip1 Rem ######################################################################### FindStr /I SS9Usr %SystemRoot%\System32\UsrLogn2.Cmd >Nul: 2>&1 If Not ErrorLevel 1 Goto Skip2 Echo Call SS9Usr.Cmd >> %SystemRoot%\System32\UsrLogn2.Cmd :Skip2 Rem ######################################################################### Rem 调整默认注册表权限,以便允许用户运行 Smart Suite regini ssuite9.key > Nul: Rem 如果没有安装 Lotus Wordpro,跳过这一步。 If "%WP%A" == "A" Goto Skip3 Rem 由于某种原因 wordpro 没有设置定义在以下文件中注册表项,在这里设置它们。 set List="%WP%\lwp.reg" "%WP%\lwpdcaft.reg" "%WP%\lwplabel.reg" "%WP%\lwptls.reg" regedit /s %List% :Skip3 Rem 创建用户注册表文件以便更新每用户注册表项 Echo Windows 注册表编辑器版本 5.00 >..\Logon\ss9usr.reg Echo. >>..\Logon\ss9usr.reg Echo. >>..\Logon\ss9usr.reg Echo [HKEY_CURRENT_USER\Software\Lotus\123\98.0\Paths\Work]>>..\Logon\ss9usr.reg Echo "EN"="%RootDrive%\\Lotus\\Work\\123\\" >>..\Logon\ss9usr.reg Echo. >>..\Logon\ss9usr.reg Echo [HKEY_CURRENT_USER\Software\Lotus\123\98.0\Paths\AutoOpen]>>..\Logon\ss9usr.reg Echo @="%RootDrive%\\Lotus\\Work\\123\\Auto\\" >>..\Logon\ss9usr.reg Echo. >>..\Logon\ss9usr.reg Echo [HKEY_CURRENT_USER\Software\Lotus\Approach\97.0\Paths\Work]>>..\Logon\ss9usr.reg Echo "EN"="%RootDrive%\\Lotus\\work\\approach\\">>..\Logon\ss9usr.reg Echo. >>..\Logon\ss9usr.reg Echo [HKEY_CURRENT_USER\Software\Lotus\Freelance\98.0\Freelance Graphics]>>..\Logon\ss9usr.reg Echo "Working Directory"="%RootDrive%\\Lotus\\work\\flg\\">>..\Logon\ss9usr.reg Echo "Backup Directory"="%RootDrive%\\Lotus\\backup\\flg\\">>..\Logon\ss9usr.reg Echo. >>..\Logon\ss9usr.reg Echo [HKEY_CURRENT_USER\Software\Lotus\Organizer\98.0\Paths]>>..\Logon\ss9usr.reg Echo "OrganizerFiles"="%RootDrive%\\Lotus\\work\\organize">>..\Logon\ss9usr.reg Echo "Backup"="%RootDrive%\\Lotus\\backup\\organize">>..\Logon\ss9usr.reg Echo. >>..\Logon\ss9usr.reg Echo [HKEY_CURRENT_USER\Software\Lotus\WordPro\98.0\Paths\Backup]>>..\Logon\ss9usr.reg Echo "EN"="%RootDrive%\\Lotus\\backup\\wordpro\\">>..\Logon\ss9usr.reg Echo. >>..\Logon\ss9usr.reg Echo [HKEY_CURRENT_USER\Software\Lotus\WordPro\98.0\Paths\Work]>>..\Logon\ss9usr.reg Echo "EN"="%RootDrive%\\Lotus\\work\\wordpro\\">>..\Logon\ss9usr.reg Echo. >>..\Logon\ss9usr.reg Echo [HKEY_CURRENT_USER\Software\Lotus\Components\Spell\4.1]>> ..\Logon\ss9usr.reg Echo "Multi User Path"="%RootDrive%\\Lotus" >> ..\Logon\ss9usr.reg Echo. >> ..\Logon\ss9usr.reg Echo [HKEY_CURRENT_USER\Software\Lotus\SmartCenter\98.0]>>..\Logon\ss9usr.reg Echo "Configure"=dword:00000001>>..\Logon\ss9usr.reg Echo [HKEY_CURRENT_USER\Software\Lotus\SmartCenter\98.0\Paths\Work]>>..\Logon\ss9usr.reg Echo "EN"="%RootDrive%\\Lotus\\Work\\SmartCtr">>..\Logon\ss9usr.reg Echo. >>..\Logon\ss9usr.reg Rem ######################################################################### Echo Lotus SmartSuite 9 多用户应用程序调整已结束 Pause :Done