ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/ns_dev/Python/NinoCode/Active_prgs/MCP/MCP_Install.cmd
Revision: 488
Committed: Thu Dec 5 15:57:17 2013 UTC (12 years, 3 months ago) by nino.borges
File size: 2636 byte(s)
Log Message:
Adding the installer to the repository.

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     SET MCPprogram=%USERPROFILE%\appdata\local
6     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    
55     ECHO Finished Install
56     ECHO.
57     ECHO To setup the toolbar shortcuts:
58     ECHO Right-click on the task bar
59     ECHO Select Toolbars, New Toolbar...
60     ECHO Navitgate to My Documents\MCP
61     ECHO Click OK
62     :QUITEARLY
63     PAUSE