Programs - Uninstall using Command Prompt in Windows

Page 7 of 7 FirstFirst ... 567

  1. Posts : 72,055
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #60

    In that case, see if using this below for your original idea may work.

    It was able to add it to my registry.

    Code:
    REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce /v "!UOO" /t REG_SZ /d "cmd /c wmic product where name=C:\Program Files\OO Software\Defrag call uninstall /nointeractive"
      My Computer


  2. Posts : 11
    Windows 7 Home Premium x64
       #61

    Yes, this ways works to be added to registry, but the spaces inside the command itself will make it useless. the " " and ' ' where needed for it to work. seems cmd has trouble figuring the starting " " and ' ' insde an expression
      My Computer


  3. Posts : 1
    Windows 10 Pro x64
       #62

    apoklyps3 said:
    Yes, this ways works to be added to registry, but the spaces inside the command itself will make it useless. the " " and ' ' where needed for it to work. seems cmd has trouble figuring the starting " " and ' ' insde an expression
    While I was looking for such a solution, I saw this thread and your remark about not able to use comma's inside the expression. You can do this by escaping them with \" or \', which seem to work fine (tested on Windows 7 Pro). Just wanted to share this, sorry if this thread is too old.
      My Computer


 
Page 7 of 7 FirstFirst ... 567

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 08:18.
Find Us