How to write the uninstal command in powershell deploy tool kit?
C:\PROGRA~1\DIEX\E68CASB258901231 \setup_64bit.exe /u C:\WINDOWS\ system32\DriverStore\Fi leRepository \selvcp. inf_amd64_33c54b53dc504b4f\selvcp.inf
If try to give same path as uninstall command in PSDeploy tool kit it works but we should not give such a hard coded paths in script can anyone please help me how to give instead of this uninstall path.
Thanks in advance.
Answers (1)
You could break the command in below parts:
execute-process "$env:windir\PROGRA~1\DIEX\E68CASB258901231\setup_64bit.exe" -Parameters "/u $env:windir\ system32\DriverStore\Fi leRepository \selvcp. inf_amd64_33c54b53dc504b4f\selvcp.inf"
More on here :
http://allnewandimproved.psappdeploytoolkit.com/functions/Execute-Process.html