/build/static/layout/Breadcrumb_cap_w.png

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.


0 Comments   [ + ] Show comments

Answers (1)

Posted by: rock_star 2 years ago
4th Degree Black Belt
0

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





 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ