Uninstallation

(imported topic written by Pravin_A)

  1. i want to remove a software by using Uninstall String registry value of the installed application so i created below fixlet . I tested it locally by using fixlet debugger and it uninstalling but when i tried to create fixlet and test using IEM its failed to uninstall. It is not removing the software.

My action script commands are as below

wait {(values “UninstallString” of key whose (value “DisplayName” of it as string as lowercase contains (“Adobe Reader XI (11.0.06)” as string as lowercase)) of key “HKEY_LOCAL_MACHINE\SOFTWARE\ Microsoft\Windows\ CurrentVersion\Uninstall” of x32 registry as string)}

  1. I need to check existance of file under userprofile, appdata and program files folder.

    how should i resolve appdata and program files folder path without using hardcoded values like “C:\Users\rasalp\AppData\ Roaming” and 'c:\program files"

    is there any environment variable fore %appdata% or programfiles so that van avoid harcoded paths?

(imported comment written by jgstew)

What is in the uninstallstring for the app in the registry? It could be that it is not correct for what is required for silent uninstallation.

Usually I’d do something like (this is not tested, just the general form)

waithidden msiexec /X { name of key whose (value “DisplayName” of it as string as lowercase contains (“Adobe Reader XI (11.0.06)” as string as lowercase)) of key “HKEY_LOCAL_MACHINE\SOFTWARE\ Microsoft\Windows\ CurrentVersion\Uninstall” of x32 registry } /qn

As for the 2nd part… you can query the location of the program in program files dynamically… usually based upon the Icon location in the uninstall key.

(imported comment written by Pravin_A)

Thanks for reply,

i will test above action using fixlet,

My uninstallation string is MsiExec.exe /I{AC76BA86-7AD7-1033-7B44-AB0000000001} but sometime we have to uninstall string will not a product code.It could be setup.exe with some parameters.

for my second query, i just wanted to know how to resolve appdata and programfiles path to chekc if any files of folder exists. Is there any variable like %appdata% we can use in fixlet action?

(imported comment written by jgstew)

This may not work the way you expect when run through the console, so make sure to test it:

value of variable “appdata” of environment

(imported comment written by Pravin_A)

Thanks a lot for your support :slight_smile:

(imported comment written by jgstew)

Here are some examples of uninstall tasks that are for products that do not use MSI based uninstallation:

http://bigfix.me/fixlet/details/3762

http://bigfix.me/fixlet/details/3761

http://bigfix.me/fixlet/details/775