Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- & sc.exe config NetTcpPortSharing start= demand
- $dirs = @("C:\Verne", "C:\Verne\Data", "C:\Verne\Bins")
- foreach ($dir in $dirs) {
- New-Item $dir -type directory
- }
- #Copy bins now
- #Edit conf, if not local
- $binsDir = 'C:\Verne\Bins\'
- & $binsDir'ApplicationServer.exe' -recreatedb
- $services = @('ApplicationServer.exe', 'ConfigManager.exe', 'RobotStore.exe', 'TaskManager.exe', 'StreamManager.exe')
- foreach ($service in $services) {
- & $binsDir$service -install
- }
- #update ConfigManagerConfig
- & $binsDir'ConfigManager.exe' –createomcfg
- #run in cmd
- $cmds = @(
- 'sc failure OM_Application_Server reset= 60 actions= restart/60000',
- 'sc config OM_Application_Server depend= OM_Configuration_Service',
- 'sc failure OM_Configuration_Service reset= 60 actions= restart/60000',
- 'sc failure OM_Robot_Store_Service reset= 60 actions= restart/60000',
- 'sc failure OM_Task_Manager_Service reset= 60 actions= restart/60000',
- 'sc failure OM_Steam_Manager_Service reset= 60 actions= restart/60000'
- )
- foreach ($cmd in $cmds) {
- & cmd.exe $cmd
- }
- #Update SilentRobotsInstaller.exe.config with correct Bin path, Update MongoHostAddress
- $temsRobos = @('CollectionTemplateInstaller.exe', 'SilentRobotsInstaller.exe')
- foreach ($tem in $temsRobos) {
- & $binsDir$tem
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement