Eject any loaded DVD media (like xs-tools.iso) so the virtual DVD drive is empty.
Snapshot VM before starting so you can roll back in case of problems.
Added Registry key so that MSIServer (handles MSI install/uninstall) can run in Safe Mode using command: REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\SafeBoot\Minimal\MSIServer" /VE /T REG_SZ /F /D "Service"
Run msconfig and set computer to boot in Safe Mode with the Minimal option.
Reboot computer.
When Windows starts in Safe Mode, login using a local administrator account.
Using the Programs and Features Control Panel applet, remove the following items. Do not reboot yet, even if you are prompted.
Citrix Xen Windows x64 PV Drivers
Citrix XenServer Tools Installer
Citrix XenServer VSS Provider
Citrix XenServer Windows Guest Agent
?Go into Device Manager and look for an Unknown Device. Delete it.
Reboot computer.
Computer will still be in Safe Mode. Again, login with local admin account.
Run msconfig. In Services tab, disable all
non-Microsoft services. If you have SQL Server or Exchange on this VM,
you should also disable those services from what I understand.
Open a command prompt (it should have administrator privileges) and
run the following commands to stop/delete Xen-related services and
remove Xen-related files.
net stop xenlite
sc delete xenlite
sc delete xeniface
sc delete xendisk
sc delete xennet
sc delete xenvbd
sc delete XENVIF
sc delete XENFILT
sc delete XENBUS
sc delete xenpvinstall
DEL /q "%SystemRoot%\system32\liteagent.exe"
del /q "%systemroot%\system32\drivers\xen*"
del /q "%systemroot%\system32\xen*"
Delete any folders named Citrix under C:\ProgramData, C:\Program Files (x86), and C:\Program Files.
Run regedit. Search for Xen and delete any keys containing it under HKCR\Installer\Products in case there are any leftover installs hanging around.
Also remove HKCU\Software\Citrix and HKLM\Software\Citrix keys from the Registry.
Run msconfig and set the system back to normal booting.
Shut down the VM.
In XenServer Console, change the device_id parameter for the VM using the command xe vm-param-set uuid={your uuid} platform:device_id=0001 . I had issues with the system going into endless reboots when trying to install the client if I didn‘t do this.
Snapshot the VM again so you have a clean version without XenServer Tools in case you need to roll back.
Start the VM.
Windows will start in normal mode. Login with administrator credentials.
Insert the current version of xs-tools.iso into the virtual DVD drive.
Run the XenServer Tools Install Wizard. The install should go as
normal. You‘ll be asked to reboot once or twice. Be sure to log back in
to Windows each time after reboot so it can finish the install.
When XenServer Tools is installed, go back into msconfig and reenable any services you disabled previously.
You might want to snapshot the VM when done and you have a final upgraded installation.