Advertisement
pavel_ch

harvester_install

Apr 14th, 2016
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. & sc.exe config NetTcpPortSharing start= demand
  3.  
  4. $dirs = @("C:\Verne", "C:\Verne\Data", "C:\Verne\Bins")
  5.  
  6. foreach ($dir in $dirs) {
  7.     New-Item $dir -type directory
  8. }
  9.  
  10.  
  11. #Copy bins now
  12.  
  13. #Edit conf, if not local
  14.  
  15. $binsDir = 'C:\Verne\Bins\'
  16. & $binsDir'ApplicationServer.exe' -recreatedb
  17. $services = @('ApplicationServer.exe', 'ConfigManager.exe', 'RobotStore.exe', 'TaskManager.exe', 'StreamManager.exe')
  18. foreach ($service in $services) {
  19.     & $binsDir$service -install
  20. }
  21.  
  22. #update ConfigManagerConfig
  23.  
  24. & $binsDir'ConfigManager.exe' –createomcfg
  25.  
  26. #run in cmd
  27. $cmds = @(
  28.     'sc failure OM_Application_Server reset= 60 actions= restart/60000',
  29.     'sc config OM_Application_Server depend= OM_Configuration_Service',
  30.     'sc failure OM_Configuration_Service reset= 60 actions= restart/60000',
  31.     'sc failure OM_Robot_Store_Service reset= 60 actions= restart/60000',
  32.     'sc failure OM_Task_Manager_Service reset= 60 actions= restart/60000',
  33.     'sc failure OM_Steam_Manager_Service reset= 60 actions= restart/60000'
  34. )
  35.  
  36. foreach ($cmd in $cmds) {
  37.     & cmd.exe $cmd
  38. }
  39.  
  40. #Update SilentRobotsInstaller.exe.config with correct Bin path, Update MongoHostAddress
  41.  
  42. $temsRobos = @('CollectionTemplateInstaller.exe', 'SilentRobotsInstaller.exe')
  43. foreach ($tem in $temsRobos) {
  44.     & $binsDir$tem
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement