Failed to uninstall/install PVS target device software via SCCM or command line.

Failed to uninstall/install PVS target device software via SCCM or command line.

book

Article ID: CTX296730

calendar_today

Updated On:

Description

When using SCCM or using a command line, PVS target device installation failed due to filesystem filter driver CFsDep2.inf is not installed error. 

Resolution

The behavior of installation has been modified to use mode value 128 (non-interactive mode) instead of 132 (interactive mode) from PVS version 7.15 CU7 and 1912 CU2.

[Fixed issues]
https://docs.citrix.com/en-us/provisioning/7-15/whats-new/fixed-issues.html
With this fix, you can install Citrix Provisioning target devices by using Microsoft System Center Configuration Manager (SCCM). [CVADHELP-15749]

[Workaround for uninstallation by using SCCM]

If you may add below command line into uninstallation script, it will remove cfsdep2 driver before uninstall PVS target device software.

----------------------------------------------------
RUNDLL32.EXE SETUPAPI.DLL,InstallHinfSection DefaultUninstall 128 c:\Program Files\Citrix\Provisioning Services\drivers\cfsdep2.inf
----------------------------------------------------

Problem Cause

PVS target device installer forces interactive mode by using the default behavior in the custom action which is mode value of 132 (128 + 4) which forces interactive by forcing someone to respond to a reboot message.
But if the installation is running by SCCM or command line, it is going to run as SYSTEM contect instead of interactive mode. 

Hence, cfsdep2 driver installation can not be finished when using SCCM or using a command line.

Additional Information

https://docs.microsoft.com/en-us/windows/win32/api/setupapi/nf-setupapi-installhinfsectiona