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

mkdir ..\BackupSCA22_200722_Studio


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

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

regsvr32 /u /s ..\bin\BBCA20QueryParser.dll
move  ..\bin\BBCA20QueryParser.dll ..\BackupSCA22_200722_Studio\.
copy bin\BBCA20QueryParser.dll ..\bin\.
regsvr32 /s ..\bin\BBCA20QueryParser.dll

move  ..\bin\bbca20recoding.exe ..\BackupSCA22_200722_Studio\.
copy bin\bbca20recoding.exe ..\bin\.

move ..\home\ConversionObjects\showmappingobjects.asp  ..\BackupSCA22_200722_Studio\.
copy home\ConversionObjects\showmappingobjects.asp ..\home\ConversionObjects\.

move ..\home\ConversionObjects\copytocurrentVRC.asp  ..\BackupSCA22_200722_Studio\.
copy home\ConversionObjects\copytocurrentVRC.asp ..\home\ConversionObjects\.

move ..\home\ConversionObjects\ShowMOControl.asp  ..\BackupSCA22_200722_Studio\.
copy home\ConversionObjects\ShowMOControl.asp ..\home\ConversionObjects\.

move ..\home\ConversionObjects\ShowLGMOControl.asp  ..\BackupSCA22_200722_Studio\.
copy home\ConversionObjects\ShowLGMOControl.asp ..\home\ConversionObjects\.

move ..\home\ConversionObjects\CheckInProgress.asp  ..\BackupSCA22_200722_Studio\.
copy home\ConversionObjects\CheckInProgress.asp ..\home\ConversionObjects\.

move ..\home\ConversionObjects\maprules.asp  ..\BackupSCA22_200722_Studio\.
copy home\ConversionObjects\maprules.asp ..\home\ConversionObjects\.

move ..\home\ConversionObjects\mscript.asp  ..\BackupSCA22_200722_Studio\.
copy home\ConversionObjects\mscript.asp ..\home\ConversionObjects\.

move ..\home\ConversionObjects\query.asp  ..\BackupSCA22_200722_Studio\.
copy home\ConversionObjects\query.asp ..\home\ConversionObjects\.

move ..\home\ConversionObjects_legacy\functionbldr.asp  ..\BackupSCA22_200722_Studio\.
copy home\ConversionObjects_legacy\functionbldr.asp ..\home\ConversionObjects_legacy\.

move ..\home\ConversionObjects_legacy\maprules.asp  ..\BackupSCA22_200722_Studio\.
copy home\ConversionObjects_legacy\maprules.asp ..\home\ConversionObjects_legacy\.

move ..\home\ConversionObjects_legacy\query.asp  ..\BackupSCA22_200722_Studio\.
copy home\ConversionObjects_legacy\query.asp ..\home\ConversionObjects_legacy\.

move ..\home\Applications\ADetails.asp  ..\BackupSCA22_200722_Studio\.
copy home\Applications\ADetails.asp ..\home\Applications\.

move ..\home\CompareMigrationProfiles\MPCCompare.asp  ..\BackupSCA22_200722_Studio\.
copy home\CompareMigrationProfiles\MPCCompare.asp ..\home\CompareMigrationProfiles\.


move ..\home\ConversionBuild\Build.asp  ..\BackupSCA22_200722_Studio\.
copy home\ConversionBuild\Build.asp ..\home\ConversionBuild\.

move ..\home\ConversionBuild\SettingInfo.asp  ..\BackupSCA22_200722_Studio\.
copy home\ConversionBuild\SettingInfo.asp ..\home\ConversionBuild\.

move ..\home\DDImport_Legacy\MDcreator.asp  ..\BackupSCA22_200722_Studio\.
copy home\DDImport_Legacy\MDcreator.asp ..\home\DDImport_Legacy\.

move ..\home\DDImport_Legacy\querybldr.asp  ..\BackupSCA22_200722_Studio\.
copy home\DDImport_Legacy\querybldr.asp ..\home\DDImport_Legacy\.

move ..\home\Applications\filesperapp.asp  ..\BackupSCA22_200722_Studio\.
copy home\Applications\filesperapp.asp ..\home\Applications\.

move ..\home\ExportImportPatches\expPatch.asp  ..\BackupSCA22_200722_Studio\.
copy home\ExportImportPatches\expPatch.asp ..\home\ExportImportPatches\.

move ..\home\FunctionRepository\showfunctions.asp  ..\BackupSCA22_200722_Studio\.
copy home\FunctionRepository\showfunctions.asp ..\home\FunctionRepository\.

move ..\home\MigrationProfiles\MetaDetail.asp  ..\BackupSCA22_200722_Studio\.
copy home\MigrationProfiles\MetaDetail.asp ..\home\MigrationProfiles\.

move ..\home\MigrationProfiles\MPRFDetails.ASP  ..\BackupSCA22_200722_Studio\.
copy home\MigrationProfiles\MPRFDetails.ASP ..\home\MigrationProfiles\.

move ..\home\MigrationProfiles\LegMetaDetail.asp  ..\BackupSCA22_200722_Studio\.
copy home\MigrationProfiles\LegMetaDetail.asp ..\home\MigrationProfiles\.

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

move ..\home\library\controls\BBCALGYMappingControl.CAB ..\BackupSCA22_200722_Studio\.
copy home\library\controls\BBCALGYMappingControl.CAB ..\home\library\controls\.


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