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

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?
  • jgstew
    jgstew
    410 Posts
    ACCEPTED ANSWER

    Re: Uninstallation

    ‏2014-05-15T13:56:40Z  

     

    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.

  • jgstew
    jgstew
    410 Posts
    ACCEPTED ANSWER

    Re: Uninstallation

    ‏2014-05-15T14:44:11Z  
    • Pravin_A
    • ‏2014-05-15T14:06:15Z

    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?

     

    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 

     

  • jgstew
    jgstew
    410 Posts

    Re: Uninstallation

    ‏2014-05-15T13:56:40Z  

     

    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.

  • Pravin_A
    Pravin_A
    3 Posts

    Re: Uninstallation

    ‏2014-05-15T14:06:15Z  
    • jgstew
    • ‏2014-05-15T13:56:40Z

     

    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.

    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?

  • jgstew
    jgstew
    410 Posts

    Re: Uninstallation

    ‏2014-05-15T14:44:11Z  
    • Pravin_A
    • ‏2014-05-15T14:06:15Z

    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?

     

    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 

     

  • Pravin_A
    Pravin_A
    3 Posts

    Re: Uninstallation

    ‏2014-05-15T14:54:27Z  
    • jgstew
    • ‏2014-05-15T14:44:11Z

     

    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 

     

    Thanks a lot for your support :)

  • jgstew
    jgstew
    410 Posts

    Re: Uninstallation

    ‏2014-06-01T20:29:22Z  
    • Pravin_A
    • ‏2014-05-15T14:06:15Z

    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?

     

    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