echo "Restarting IIS Server..."
iisreset
echo "Copying Files..."

mkdir ..\BackupSCA21_200605_Studio

move  ..\bin\BBCA20recoding.exe ..\BackupSCA21_200605_Studio\.
copy bin\BBCA20recoding.exe ..\bin\.

regsvr32 /u /s ..\bin\BBCA20MappingObjects.dll
move  ..\bin\BBCA20MappingObjects.dll ..\BackupSCA21_200605_Studio\.
copy bin\BBCA20MappingObjects.dll ..\bin\.
regsvr32 /s ..\bin\BBCA20MappingObjects.dll

regsvr32 /u /s ..\bin\BBCA20ConfigMgt.dll
move  ..\bin\BBCA20ConfigMgt.dll ..\BackupSCA21_200605_Studio\.
copy bin\BBCA20ConfigMgt.dll ..\bin\.
regsvr32 /s ..\bin\BBCA20ConfigMgt.dll

regsvr32 /u /s ..\bin\BBCA20DDCdll.dll
move  ..\bin\BBCA20DDCdll.dll ..\BackupSCA21_200605_Studio\.
copy bin\BBCA20DDCdll.dll ..\bin\.
regsvr32 /s ..\bin\BBCA20DDCdll.dll

regsvr32 /u /s ..\bin\BBCA20SourceDbase.dll
move  ..\bin\BBCA20SourceDbase.dll ..\BackupSCA21_200605_Studio\.
copy bin\BBCA20SourceDbase.dll ..\bin\.
regsvr32 /s ..\bin\BBCA20SourceDbase.dll

regsvr32 /u /s ..\bin\BBCA20MPCSummary.dll
move  ..\bin\BBCA20MPCSummary.dll ..\BackupSCA21_200605_Studio\.
copy bin\BBCA20MPCSummary.dll ..\bin\.
regsvr32 /s ..\bin\BBCA20MPCSummary.dll

regsvr32 /u /s ..\bin\BBCA20IDDLOADER.dll
move  ..\bin\BBCA20IDDLOADER.dll ..\BackupSCA21_200605_Studio\.
copy bin\BBCA20IDDLOADER.dll ..\bin\.
regsvr32 /s ..\bin\BBCA20IDDLOADER.dll

regsvr32 /u /s ..\bin\BBCA20ImpExp.dll
move  ..\bin\BBCA20ImpExp.dll ..\BackupSCA21_200605_Studio\.
copy bin\BBCA20ImpExp.dll ..\bin\.
regsvr32 /s ..\bin\BBCA20ImpExp.dll

regsvr32 /u /s ..\bin\BBCA20XMLGenerator.dll
move  ..\bin\BBCA20XMLGenerator.dll ..\BackupSCA21_200605_Studio\.
copy bin\BBCA20XMLGenerator.dll ..\bin\.
regsvr32 /s ..\bin\BBCA20XMLGenerator.dll


regsvr32 /u /s ..\..\shared\BBCA20ScriptGenerator.dll
move  ..\..\shared\BBCA20ScriptGenerator.dll ..\BackupSCA21_200605_Studio\.
copy bin\BBCA20ScriptGenerator.dll ..\..\shared\.
regsvr32 /s ..\..\shared\BBCA20ScriptGenerator.dll

regsvr32 /u /s ..\..\shared\BBCA20Convdll.dll
move  ..\..\shared\BBCA20Convdll.dll ..\BackupSCA21_200605_Studio\.
copy bin\BBCA20Convdll.dll ..\..\shared\.
regsvr32 /s ..\..\shared\BBCA20Convdll.dll

regsvr32 /u /s ..\..\shared\BBCA20LGYMappingObjects.dll
move  ..\..\shared\BBCA20LGYMappingObjects.dll ..\BackupSCA21_200605_Studio\.
copy bin\BBCA20LGYMappingObjects.dll ..\..\shared\.
regsvr32 /s ..\..\shared\BBCA20LGYMappingObjects.dll


regsvr32 /u /s ..\..\shared\BBCA20PrintMORules.dll
move  ..\..\shared\BBCA20PrintMORules.dll ..\BackupSCA21_200605_Studio\.
copy bin\BBCA20PrintMORules.dll ..\..\shared\.
regsvr32 /s ..\..\shared\BBCA20PrintMORules.dll

move ..\home\library\controls\BBCA20ShowMapObject.CAB ..\BackupSCA21_200605_Studio\.
copy home\library\controls\BBCA20ShowMapObject.CAB ..\home\library\controls\.

move ..\home\library\controls\PrjMappingControl.CAB ..\BackupSCA21_200605_Studio\.
copy home\library\controls\PrjMappingControl.CAB ..\home\library\controls\.

move ..\home\maintainmo\showmappingobjects.asp  ..\BackupSCA21_200605_Studio\.
copy home\maintainmo\showmappingobjects.asp ..\home\maintainmo\.

move ..\home\maintainmo\ShowMOControl.asp  ..\BackupSCA21_200605_Studio\.
copy home\maintainmo\ShowMOControl.asp ..\home\maintainmo\.

echo "Finished Copying files..."
echo "Restart IIS Server..."
iisreset
echo "Installation Complete. System ready to use..."
pause
