Topic
5 replies Latest Post - ‏2014-06-01T20:29:22Z by jgstew
Pravin_A
Pravin_A
3 Posts
ACCEPTED ANSWER

Pinned topic Uninstallation

‏2014-05-15T10:50:44Z |
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)}
 
 
2) 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?
Updated on 2014-05-15T10:51:02Z at 2014-05-15T10:51:02Z by Pravin_A
  • jgstew
    jgstew
    409 Posts
    ACCEPTED ANSWER

    Re: Uninstallation

    ‏2014-05-15T13:56:40Z  in response to Pravin_A

     

    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.

    Updated on 2014-05-15T13:58:01Z at 2014-05-15T13:58:01Z by jgstew
    • Pravin_A
      Pravin_A
      3 Posts
      ACCEPTED ANSWER

      Re: Uninstallation

      ‏2014-05-15T14:06:15Z  in response to jgstew

      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?

      Updated on 2014-05-15T14:06:33Z at 2014-05-15T14:06:33Z by Pravin_A