Ejemplo n.º 1
0
 def reinstall(branch,buildid,latest,kind,buildtype,ipversion):
     viewclient.uninstall()
     if latest == 'true':
         buildid = ''
     viewclient.install('viewclientwin',branch,buildtype,buildid,kind,ipversion)
     #restart system
     windows.delay_reboot(5)
Ejemplo n.º 2
0
 def reinstall(branch,buildid,latest,kind,buildtype,ipversion):
     #uninstall existing build
     viewbroker.uninstall()
     #install new build
     if latest == 'true':
         buildid = ''
     viewbroker.install('view',branch,buildtype,buildid,kind,ipversion)
     #restore automation config for broker
     os.system('C:\\autotool\\scripts\\Wincdk_BATs_config_broker.bat')
     #restart system
     windows.delay_reboot(5)
Ejemplo n.º 3
0
def agent_install(branch,buildid,latest,kind,buildtype,ipversion,rds,broker):
    #install driver certification for USB
    current_dir = os.path.abspath('.')
    base_dir = os.sep.join(current_dir.split(os.sep)[:-1])
    res_dir = os.path.join(base_dir,'res')
    view_agent_usb_cer_file = os.path.join(res_dir,'ViewAgentUSB.cer')
    # you can use certmgr.msc to check it
    os.system('certutil -addstore "TrustedPublisher" {}'.format(view_agent_usb_cer_file))
    #install new build
    if latest == 'true':
        buildid = ''
    if 'Server' in platform.release():
        viewagent.install('view',branch,buildtype,buildid,kind,ipversion,True,broker)
    else:
        viewagent.install('view',branch,buildtype,buildid,kind,ipversion)
    #restart system
    windows.delay_reboot(10)
Ejemplo n.º 4
0
def agent_uninstall():
    if viewagent.view_agent_installed():
        viewagent.uninstall()
    #restart system
    windows.delay_reboot(10)
Ejemplo n.º 5
0
def agent_reboot():
    #restart system
    windows.delay_reboot(10)