Quantcast
Channel: psappdeploytoolkit Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1769

New Post: Running powershell script to uninstall software from Control Panel

$
0
0
Hi,

I pushed a registry key with set-registrykey to HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall!Vcredist2005_Frv1 as uninstallstring.
C:\Program Files\xxx\yyyyyyyyyyyy\zzzzzzzz\Vcredist2005_Frv1Vcredist2005_Frv1_DesInstMan.ps1
But everytime I am trying to run the script from Control Panel, I get an error. I am sure the powershell script is working as I ran it from Powershell.

But from commandline, it is not working.

So I tried:
powershell.exe -executionPolicy bypass -noexit -file"C:\Program Files\xxx\yyyyyyyyyyyy\zzzzzzzz\Vcredist2005_Frv1Vcredist2005_Frv1_DesInstMan.ps1"

It is working from command prompt but not from control panel.
  1. What should I do to make it work from control panel?
  2. Do I need to add the "" at start and end of then commandline? If so, how may I do it with set-registrykey?
Thanks,

Viewing all articles
Browse latest Browse all 1769

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>