Hi,
I pushed a registry key with set-registrykey to HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall!Vcredist2005_Frv1 as uninstallstring.
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.
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.
- What should I do to make it work from control panel?
-
Do I need to add the "" at start and end of then commandline? If so, how may I do it with set-registrykey?