Important Notice: On February 29th, this community was put into read-only mode. All existing posts will remain but customers are unable to add new posts or comment on existing. Please feel to join our Community Discord for any questions and discussions.

Why not uninstall the software from my pc?

 Hi , i have software what was installed in C:\Users\long_zhao\AppData\Local\Youdao\Dict,  now i need to uninstall it from my PC.  but i encountered an issue.

when i was using command  "C:\Users\long_zhao\AppData\Local\Youdao\Dict\uninst.exe /s", i can uninstall it bassically,  but when i was using another command "%localappdata%\Youdao\Dict\uninst.exe \s",  the uninstallation failed. you know , i am managing one hundred PC in MY company.  i do not know the difference of both.

 

0

Comments

4 comments
Date Votes
  • %LOCALAPPDATA% is a user level variable. When you run a remote command (which is what the Uninstall feature uses) it will expand %LOCALAPPDATA% as the user running the command, not as any local user that is logged on. This means if the application is installed in "C:\Users\Jon.Jones\AppData\local..." but you run the Remote Command using the credentials long_zhao, the command would expand %LocalAppData% as "C:\Users\long_zhao\AppData\local..."

    Also, you had a forward slash in the first example and a back slash in the second. You want to use the forward slash /s for your parameter. 

    Below is an example of a remote command expanding the LocalAppData variable. 

    LocalAppData.png

    0
  • thank you.

    in order to  uninstall the software what was installed  in "C:\Users\firstname_lastname\AppData\local\.."  of  many PC ,   which command should be appropriate?

     

    0
  • unique way is to uninstall one by one?

    0
  • You wouldn't want to use PDQ Inventory for this. You have three options:

    1) When the user's are logged on to their computers deploy a package that contains one Command step.

    2) Write a script which traverses the C:\Users directory and runs this command on all the uninst.exe files it finds under the dict directory.

    3) Place the uninstall string a .bat file that is executed in a User level Group Policy.

    Here are some screenshots to illustrate option 1. Remember that the user needs to be logged on for this to work. This is also assuming that the command, path and uninstall parameter are all correct.

    Uninstall_User_App_Details.png

     

    Uninstall_User_App_Conditions.png

     

    Uninstall_User_App_Options.png

     

     

     

    0