Sentillion Vergence 6.2 install

Topics: Archive - Deployment Scripts
Dec 19, 2014 at 4:06 PM
I doubt someone will use this for a while, but this was how the vendor showed us how to set it up for shared workstation. Normally you would use GPO for the reg settings...
    ## Show Progress Message (with the default message)
    Show-InstallationProgress

    ## <Perform Pre-Installation tasks here>
    [scriptblock]$HKCURegistrySettings = {
    Set-registrykey -key 'HKCU\Software\Microsoft\Windows\CurrentVersion\Group Policy Objects\{101F7B18-B5A8-4634-BDAD-25D83D5A7591}Machine\Software\Microsoft\Windows\CurrentVersion\Policies\Ext\CLSID' -name '{40D06884-38E3-44A6-85AF-1FCF1F42553D}' -Value 1 -type string -SID $UserProfile.SID
    #Set-registrykey -key 'HKCU\Software\Microsoft\Windows\CurrentVersion\Group Policy Objects\{21463834-98F5-4E0E-882A-A59294FB1E98}Machine\Software\Microsoft\Windows\CurrentVersion\Policies\System' -name 'HideFastUserSwitching' -Value 1 -type dword -SID $UserProfile.SID
    #Set-registrykey -key 'HKCU\Microsoft\Windows\CurrentVersion\Group Policy Objects\{21463834-98F5-4E0E-882A-A59294FB1E98}User\Software\Policies\Microsoft\Internet Explorer\Recovery' -name 'NoReopenLastSession' -Value 1 -type dword -SID $UserProfile.SID
    #Set-registrykey -key 'HKCU\Microsoft\Windows\CurrentVersion\Group Policy Objects\{21463834-98F5-4E0E-882A-A59294FB1E98}User\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer' -name 'NoLogoff' -Value 1 -type dword -SID $UserProfile.SID
    }
    Invoke-HKCURegistrySettingsForAllUsers -RegistrySettings $HKCURegistrySettings

    #allowing permissions for the Bridgeworks Runtime add-on if using IE Protected Mode
    Set-registrykey -key 'HKLM\Software\Wow6432Node\Microsoft\Internet Explorer\Low Rights\ElevationPolicy\{B65DE272-3AD9-45D4-801E-9E3F5E602140}' -name 'AppPath' -Value 'C:\Program Files (X86)\Sentillion\Vergence BridgeWorks' -type string
    Set-registrykey -key 'HKLM\Software\Wow6432Node\Microsoft\Internet Explorer\Low Rights\ElevationPolicy\{B65DE272-3AD9-45D4-801E-9E3F5E602140}' -name 'AppName' -Value BridgeWorksRuntime.exe -type string
    Set-registrykey -key 'HKLM\Software\Wow6432Node\Microsoft\Internet Explorer\Low Rights\ElevationPolicy\{B65DE272-3AD9-45D4-801E-9E3F5E602140}' -name 'Policy' -Value 3 -type dword

    #servicepipe timeout
    Set-registrykey -key 'HKLM\System\CurrentControlSet\Control' -name 'ServicesPipeTimeout' -Value 60000 -type dword

    #disable interactive logon
    Set-registrykey -key 'HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon' -name 'DisableCAD' -Value 1 -type dword
    Set-registrykey -key 'HKLM\Software\Microsoft\Windows\CurrentVersion\policies\systembli79' -name 'DisableCAD' -Value 1 -type dword

    #detect .NET 3.5
    #$app = get-installedApplication -Name "Microsoft .NET Framework 3.5"
    #If ($app = $true) {write-log "found .net"} elseif($app = $false) {Execute-Process -FilePath "dotNetFx35setup.exe" -Arguments '/q'}

    #detect C++ 2010 redistributable
    Execute-Process -FilePath "vcredist_x64.exe" -Arguments '/quiet' -continueonerror $true

    ##*===============================================
    ##* INSTALLATION 
    ##*===============================================
    [string]$installPhase = 'Installation'

    ## <Perform Installation tasks here>
    Execute-MSI -Action Install -Path SSOandCM-x64.msi -parameters '/qb ADDLOCAL=DesktopComponents,Authenticator,BridgeWorks,ConfigService VAULTADDRESS=your company's vault address here VAULTSECURITYTOKEN=yourcompany token here ALLOWBHOSETTING=YES DISABLESSLCERTVALIDATION=YES Reboot="ReallySupress"'
    sleep -Seconds 30
    cmd /c shutdown -r -t 10