Advertisement
Guest User

Untitled

a guest
Jan 18th, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.45 KB | None | 0 0
  1. @echo off
  2. Set setupDir=%~dp0\bdms
  3. Set xtenderDir=C:\Windows\Temp\xtender
  4.  
  5. REM Extract to temp dir and remove archive
  6. "%~dp07z.exe" x "%~dp0bdms.zip" -o%setupDir% -aoa
  7.  
  8. REM Run setup file
  9. start "" /wait "%setupDir%\setup.exe" -responseFile "%setupDir%\client.rsp" -waitforcompletion -ignorePrereq
  10.  
  11. REM Set up folder permissions
  12. %~dp0subinacl.exe /subdirectories "C:\oracle" /grant="Users"=F /grant="Administrators"=F /grant="SYSTEM"=F
  13. %~dp0subinacl.exe /subdirectories "C:\oracle\*.*" /grant="Users"=F /grant="Administrators"=F /grant="SYSTEM"=F
  14. %~dp0subinacl.exe /subdirectories "C:\Program Files (x86)\oracle" /grant="Users"=F /grant="Administrators"=F /grant="SYSTEM"=F
  15. %~dp0subinacl.exe /subdirectories "C:\Program Files (x86)\oracle\*.*" /grant="Users"=F /grant="Administrators"=F /grant="SYSTEM"=F
  16. %~dp0subinacl.exe /subkeyreg HKEY_LOCAL_MACHINE\Software\Wow6432Node\Oracle /grant="Users"=F /grant="Administrators"=F /grant="SYSTEM"=F
  17.  
  18. REM Copy Files
  19. Copy "%setupDir%\sqlnet.ora" "C:\oracle\product\11.2.0\client_1\network\admin\sqlnet.ora" /Y
  20. Copy "%setupDir%\TNSNAMES.ORA" "C:\oracle\product\11.2.0\client_1\network\admin\TNSNAMES.ORA" /Y
  21.  
  22. REM Write Registry Entries
  23. reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v "Oracle_Home" /t REG_SZ /d "C:\oracle\product\11.2.0\client_1" /f
  24. reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v "TNS_ADMIN" /t REG_SZ /d "C:\oracle\product\11.2.0\client_1\network\admin" /f
  25.  
  26. REM Extract AppXtender Desktop
  27. "%~dp07z.exe" x "%~dp0AppXtenderDesktop.7z" -o%xtenderDir% -aoa
  28.  
  29. REM Install AppXtender Desktop and QuickScan
  30. msiexec -i "%xtenderDir%\quickscan\ISScript10.msi" /qn
  31. msiexec -i "%xtenderDir%\quickscan\QuickScan 4.7.msi" /qn INSTALLDIR="C:\Program Files (x86)\XtenderSolutions\Content Management\QSP" ISX_SERIALNUM=zxxxxxx REBOOT=ReallySuppress ALLUSERS=1
  32. msiexec -i "%xtenderDir%\ApplicationXtenderDesktop.msi" /qn
  33.  
  34. REM set QSP folder permissions
  35. %~dp0subinacl.exe /subdirectories "C:\Program Files (x86)\XtenderSolutions\Content Management\QSP" /grant="Everyone"=F /grant="Administrators"=F /grant="SYSTEM"=F
  36.  
  37. REM Install BDMS Addon MSIs
  38. msiexec -i "%~dp0BDMS_Addons\XSAdobeComponent91.msi" /qn ALLUSERS=1
  39. msiexec -i "%~dp0BDMS_Addons\KeyViewComponent1080.msi" /qn ALLUSERS=1
  40. msiexec -i "%~dp0BDMS_Addons\SpellCheckComponent.msi" /qn ALLUSERS=1
  41. msiexec -i "%~dp0BDMS_Addons\XSScanningComponent.msi" /qn ALLUSERS=1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement