| 1 |
nino.borges |
488 |
@ECHO OFF
|
| 2 |
|
|
for /f "tokens=4-6 delims=[. " %%i in ('ver') do set VERSION=%%i.%%j
|
| 3 |
|
|
IF "%VERSION%" == "Version.5" GOTO XPvariables
|
| 4 |
|
|
REM Windows 7 goes here
|
| 5 |
nino.borges |
491 |
SET MCPprogram=c:\McDermott-Discovery
|
| 6 |
nino.borges |
488 |
SET MCPdocs=%USERPROFILE%\Documents
|
| 7 |
|
|
SET MCPshortcuts=Win7
|
| 8 |
|
|
|
| 9 |
|
|
GOTO AfterVariables
|
| 10 |
|
|
:XPvariables
|
| 11 |
|
|
REM Windows XP goes here
|
| 12 |
|
|
SET MCPprogram=%ProgramFiles%
|
| 13 |
|
|
SET MCPdocs=%USERPROFILE%\My Documents
|
| 14 |
|
|
SET MCPshortcuts=XP
|
| 15 |
|
|
|
| 16 |
|
|
:AfterVariables
|
| 17 |
|
|
|
| 18 |
|
|
ECHO This program will install the latest version of the MCP.
|
| 19 |
|
|
ECHO.
|
| 20 |
|
|
\\bstads01\app\Manny\MCP\\req\choice "Do you want to continue?"
|
| 21 |
|
|
IF %ERRORLEVEL% == 2 EXIT /b
|
| 22 |
|
|
|
| 23 |
|
|
ECHO Installing MCP
|
| 24 |
|
|
MD "%MCPprogram%\MCP"
|
| 25 |
|
|
ECHO Copying MCP Files...
|
| 26 |
|
|
xcopy \\bstads01\app\Manny\MCP\Prgs\* "%MCPprogram%\MCP\" /E /Q /C /Y
|
| 27 |
|
|
|
| 28 |
|
|
IF not EXIST "%MCPprogram%\ExpDat\" (
|
| 29 |
|
|
ECHO Copying ExpeDat Files...
|
| 30 |
|
|
MD "%MCPprogram%\ExpDat"
|
| 31 |
|
|
xcopy \\bstads01\app\Manny\MCP\ExpDat\movedat-IDS-1.14\* "%MCPprogram%\ExpDat\" /Q /C /Y
|
| 32 |
|
|
"%MCPprogram%\ExpDat\movedat.exe" -R 7F29-15BC-6C0B-150E
|
| 33 |
|
|
)
|
| 34 |
|
|
|
| 35 |
|
|
ECHO Setting up shortcuts...
|
| 36 |
|
|
REM create new taskbar (deskbar) toolbar group for a folder? can't do programmatically add to quicklaunch
|
| 37 |
|
|
REM quicklaunch not good enough, just create shorcut folder under My Docs and user will manually add toolbar pointed to that folder
|
| 38 |
|
|
REM (Disabled) MD "%APPDATA%\Microsoft\Internet Explorer\Quick Launch\MCP"
|
| 39 |
|
|
REM (Disabled) xcopy \\bstads01\app\Manny\MCP\Shortcuts\MCP\* "%APPDATA%\Microsoft\Internet Explorer\Quick Launch\MCP" /Q /C /Y
|
| 40 |
|
|
MD "%USERPROFILE%\Desktop\Working"
|
| 41 |
|
|
MD "%MCPdocs%\MCP"
|
| 42 |
nino.borges |
492 |
IF EXIST "%MCPdocs%\MCP\MCP_AddCase.lnk" del "%MCPdocs%\MCP\MCP_AddCase.lnk"
|
| 43 |
|
|
IF EXIST "%MCPdocs%\MCP\MCP_ViewEdit.lnk" del "%MCPdocs%\MCP\MCP_ViewEdit.lnk"
|
| 44 |
nino.borges |
488 |
xcopy \\bstads01\app\Manny\MCP\Shortcuts\%MCPshortcuts%\MCP\* "%MCPdocs%\MCP" /Q /C /Y
|
| 45 |
|
|
IF EXIST "\\bstads01\app\Manny\MCP\UserProfiles\%USERNAME%\Settings.sys" GOTO SETTINGSOK
|
| 46 |
|
|
ECHO ERROR: You don't have a settings file, contact Manny Borges (x53968)
|
| 47 |
|
|
ECHO Install Failed with Errors
|
| 48 |
|
|
GOTO QUITEARLY
|
| 49 |
|
|
:SETTINGSOK
|
| 50 |
|
|
xcopy "\\bstads01\app\Manny\MCP\UserProfiles\%USERNAME%\Settings.sys" "%MCPprogram%\MCP\MCP_AddCase_UI\" /Q /C /Y
|
| 51 |
|
|
xcopy "%MCPprogram%\MCP\MCP_AddCase_UI\Settings.sys" "%MCPprogram%\MCP\MCP_Case_Scan_UI\" /Q /C /Y
|
| 52 |
|
|
xcopy "%MCPprogram%\MCP\MCP_AddCase_UI\Settings.sys" "%MCPprogram%\MCP\MCP_CopyUp_Request_UI\" /Q /C /Y
|
| 53 |
|
|
xcopy "%MCPprogram%\MCP\MCP_AddCase_UI\Settings.sys" "%MCPprogram%\MCP\MCP_ViewEdit_UI\" /Q /C /Y
|
| 54 |
|
|
REM Make case folder shortcut to location in settings file.
|
| 55 |
|
|
xcopy "\\bstads01\app\Manny\MCP\UserProfiles\%USERNAME%\Case Folder.lnk" "%MCPdocs%\MCP\" /Q /C /Y
|
| 56 |
nino.borges |
491 |
xcopy "\\bstads01\app\Manny\MCP\UserProfiles\%USERNAME%\Case Folder.lnk" "H:\" /Q /C /Y
|
| 57 |
nino.borges |
488 |
|
| 58 |
|
|
ECHO Finished Install
|
| 59 |
|
|
ECHO.
|
| 60 |
|
|
ECHO To setup the toolbar shortcuts:
|
| 61 |
|
|
ECHO Right-click on the task bar
|
| 62 |
|
|
ECHO Select Toolbars, New Toolbar...
|
| 63 |
|
|
ECHO Navitgate to My Documents\MCP
|
| 64 |
|
|
ECHO Click OK
|
| 65 |
|
|
:QUITEARLY
|
| 66 |
|
|
PAUSE |