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)}
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?
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.
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?