Wilco van Bragt - LinkeIn Wilco van Bragt - Twitter rssa 

Unattended Installation scripts XenDesktop 7.x Part 6

In the earlier articles I wrote down how to install unattended the XenDesktop components. The article was based on the versions of XenDesktop 7.6 till XenDesktop 7.13 (dependent of the article). Currently Citrix is releasing every quarter a new version, so it’s time to update the articles with the new installation information of later release(s) based on XenDesktop/XenApp 7.14 and XenDesktop/XenApp 7.15.

XenDesktop 7.14 / 7.15 Delivery Controller

Before starting with the article it’s good to quickly touch the release of XenDesktop/XenApp 7.14. Shortly after the release Citrix was notified of some issues in this release. Citrix decided on a brave (but also painful) action and pulled the release back. After some time the improved bits were released again. In this article I will use the re-released version, which is called 7.14.1. Please be sure that you have this version downloaded, otherwise you need to do the upgrade twice. Citrix really want you to run version 7.14.1. I also will use the version numbers belonging to version 7.14.1 and will not notify the 7.14 initial version numbers.




XenDesktop 7.14 still has a requirement for .Net Framework 4.5.2. However new versions are also supported now including .Net Framework 4.7 as well. In part 4 <<LINK>> is described the installation parameters for .Net Framework if you are interested for that part of the unattended installation.

I added in part 4 a check which version is actually installed, so the script could be used for upgrades as well. Luckily/Logically Citrix has not changed to this part within XenDesktop 7.14.1

For the script this will be the variables defined for XenDesktop 7.14.1

#Define Variables
#---------------------------------
$DCUninstall="HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Citrix Desktop Delivery Controller”
$XDVersion=”7.14.1.14098”


For XenDesktop 7.15 the variable need to be defined with these values.

#Define Variables
#---------------------------------
$DCUninstall="HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Citrix Desktop Delivery Controller”
$XDVersion=”7.15.0.15097”


The rest of the code don’t need to changed, so please refer to one of the earlier articles to fetch the whole code.

XenDesktop VDA 7.14 and 7.15

For the VDA it’s pretty simple again. Just as with the earlier releases a new GUID is added to the uninstall key. For de XenDesktop/XenApp 7.14 VDA the key is {3A3F03B3-F167-43F3-AC0A-1593C9E5DA69}

$VDAUninstall="HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{3A3F03B3-F167-43F3-AC0A-1593C9E5DA69}

For the XenDesktop/XenApp 7.15 VDA the following key need to be used:

$VDAUninstall="HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{146834D4-4C90-4D2D-B93A-78209EC8DF9D}


I’m not sure when it was actually introduced, but for the VDA now also a key is available pretty comparable with the Delivery Controller key check I’m already using the script. It really does not matter which way you are using, depending which you like more. For the convenience I will display the code below both for 7.14.1 and 7.15.

7.14.1

#Define Variables
#---------------------------------
$VDAUninstall="HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Citrix Virtual Desktop Agent”
$VDAVersion=”7.14.1.14098”

7.15

#Define Variables
#---------------------------------
$VDAUninstall="HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Citrix Virtual Desktop Agent”
$VDAVersion=”7.15.0.15097”


Both for 7.14.1 and 7.15

#Pre-Checking VDA software is already installed
#---------------------------------

If ((Test-Path -path "$VDAUninstall") -ne $True)
                    { Write-Host "The checked uninstall key $VDAUninstall does not exit. Delivery Controller software is not yet installed, software will be installed."}
                    else
                    {Write-Host "Uninstall Delivery Controller Key defined as $VDAUninstall found. Check if the version is already installed or the software should be upgrade."
                    $var=Get-Itemproperty "$VDAUninstall"
                    if ($var.Displayversion -ne "$VDAVersion")
                    {write-host "Another VDA version is installed. Software will try to update this version" }
                    else
                    {write-host "Version $VDAVersion is already installed. Installation will be cancelled" -ForegroundColor Yellow
                    Exit}
}


#Checking VDA software installation is successful
#---------------------------------

Write-Host "Checking Delivery Controller software installation is succesful"

$var=Get-Itemproperty "$VDAUninstall"
                    if ($var.Displayversion -ne "$VDAVersion")
                    {write-host "$VDAVersion not found. Installation failed." -ForegroundColor Red}
                    else
                    {write-host "Version $VDAVersion found. Installation succesful." -ForegroundColor Green}

 

PVS Target Device 7.14/7.15

For the Target Device of Citrix Provisioning Services 7.14 released two weeks after  XenDesktop/XenApp 7.14. No changes to the installation procedures with this release, so again we only need to add the correct GUID to the installation script. For 7.14 PVS Target Device the GUID is {34E3A82B-CBE1-4D2E-920B-11B3E1F872C3}.

$PVSTDUninstall="HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{34E3A82B-CBE1-4D2E-920B-11B3E1F872C3}”


For 7.15 PVS Target Device the GUID is {03648ECA-5281-48F7-B83F-58A15A4FC8B4}.

$PVSTDUninstall="HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{03648ECA-5281-48F7-B83F-58A15A4FC8B4}”

Citrix StoreFront 3.11/3.12

With the release of XenDesktop 7.14 Citrix also released Citrix StoreFront 3.11. Yes they skipped version 3.10. I guess for the same reason XenDesktop 7.10 is not used as well (naming confusion).  For the unattended installation of StoreFront we only need to change the GUID at Define Variables. The story is still a bit boring especially when you have read the previous articles, isn’t it?

For StoreFront 3.11 the key is {001B1F80-A60E-4FEA-B2D9-125A6AA9301F}.

$StoreFrontUninstall="HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{001B1F80-A60E-4FEA-B2D9-125A6AA9301F}"

Nothing has been changed for StoreFront 3.12, which is delivered together with XenDesktop/XenApp 7.15. So we only need to fill in another key which is {07525AC1-87D9-4343-8F08-661A015E608E}.

$StoreFrontUninstall="HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{07525AC1-87D9-4343-8F08-661A015E608E}"

Citrix Director 7.14

In part 5 I already found out that the Director uninstall information is back again in Wow6432Node for 7.13, while 7.12 was in the default 64bit part. For 7.14 it is still in the Wow6432Node written. So we need to use the variable as shown below, with the new key for Citrix Director 7.14 {C1DA9F51-BC9C-4E2D-85A4-B0B35D015EED}.

$DirectorUninstall="HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{C1DA9F51-BC9C-4E2D-85A4-B0B35D015EED}"


Citrix Director 7.15 part of the XenDesktop/XenApp 7.15 release is also still registering in Wow6432Node as well. So you only need to use another key, which is {A4AB4A7D-8632-4A2B-947F-C9D748B85421}.

$DirectorUninstall="HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{A4AB4A7D-8632-4A2B-947F-C9D748B85421}"


Summarization

In this article I updated the installation scripts with the latest version of XenDesktop, StoreFront and PVS versions 7.14.1 and 7.15. For the full scripts, check the earlier articles in this series.