ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/ns_dev/Python/NinoCode/Active_prgs/MCP/MCP_Install.cmd
Revision: 491
Committed: Tue Dec 10 16:02:03 2013 UTC (12 years, 3 months ago) by nino.borges
File size: 2720 byte(s)
Log Message:
Updated to copy to c drive.

File Contents

# User Rev Content
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     xcopy \\bstads01\app\Manny\MCP\Shortcuts\%MCPshortcuts%\MCP\* "%MCPdocs%\MCP" /Q /C /Y
43     IF EXIST "\\bstads01\app\Manny\MCP\UserProfiles\%USERNAME%\Settings.sys" GOTO SETTINGSOK
44     ECHO ERROR: You don't have a settings file, contact Manny Borges (x53968)
45     ECHO Install Failed with Errors
46     GOTO QUITEARLY
47     :SETTINGSOK
48     xcopy "\\bstads01\app\Manny\MCP\UserProfiles\%USERNAME%\Settings.sys" "%MCPprogram%\MCP\MCP_AddCase_UI\" /Q /C /Y
49     xcopy "%MCPprogram%\MCP\MCP_AddCase_UI\Settings.sys" "%MCPprogram%\MCP\MCP_Case_Scan_UI\" /Q /C /Y
50     xcopy "%MCPprogram%\MCP\MCP_AddCase_UI\Settings.sys" "%MCPprogram%\MCP\MCP_CopyUp_Request_UI\" /Q /C /Y
51     xcopy "%MCPprogram%\MCP\MCP_AddCase_UI\Settings.sys" "%MCPprogram%\MCP\MCP_ViewEdit_UI\" /Q /C /Y
52     REM Make case folder shortcut to location in settings file.
53     xcopy "\\bstads01\app\Manny\MCP\UserProfiles\%USERNAME%\Case Folder.lnk" "%MCPdocs%\MCP\" /Q /C /Y
54 nino.borges 491 xcopy "\\bstads01\app\Manny\MCP\UserProfiles\%USERNAME%\Case Folder.lnk" "H:\" /Q /C /Y
55 nino.borges 488
56     ECHO Finished Install
57     ECHO.
58     ECHO To setup the toolbar shortcuts:
59     ECHO Right-click on the task bar
60     ECHO Select Toolbars, New Toolbar...
61     ECHO Navitgate to My Documents\MCP
62     ECHO Click OK
63     :QUITEARLY
64     PAUSE