CA Client Automation

Expand all | Collapse all

how to uninstall software that has not been installed through ITCM

  • 1.  how to uninstall software that has not been installed through ITCM

    Posted 01-03-2018 06:12 PM

    Hi

     

    I am currently working on massively desistalar multiple software such as Winamp, VLC, others but they were not deployed in the teams through ITCM any suggestions on how to proceed. I tried to create a query but only the Winamp design took me 25 minutes for the multiple versions and then I did not identify how to silently uninstall it.

     

    ITCM 14.0.2000.255

     

    thanks

     


  • 2.  Re:  how to uninstall software that has not been installed through ITCM

    Broadcom Employee
    Posted 01-03-2018 06:24 PM

    You need to create an uninstall script  if application is built properly it should be in the registry and it should have the uninstall string.  Extract it from the registry then run the command.  If it is not there then create an SD install package that deletes the product in question.  Or a cleaner approach would be build an install package that detects the software and creates an install record.  Then create an uninstall procedure

     

    Richard Lechner

    Principal Engineering Services Architect

     

    CA Technologies

    Mobile: +1 703 655 7161 | Richard.Lechner@ca.com

     

    <mailto:Richard.Lechner@ca.com>[CA]<http://www.ca.com/us/default.aspx>[Twitter]<http://twitter.com/CAInc>[Slideshare]<http://www.slideshare.net/cainc>[Facebook]<https://www.facebook.com/CATechnologies>[YouTube]<http://www.youtube.com/user/catechnologies>[LinkedIn]<http://www.linkedin.com/company/1372?goback=.cps_1244823420724_1>[Google]<https://plus.google.com/CATechnologies>[Google+]<http://www.ca.com/us/rss.aspx?intcmp=footernav>



  • 3.  Re:  how to uninstall software that has not been installed through ITCM

    Broadcom Employee
    Posted 01-03-2018 06:57 PM

    If the application is installed using an MSI then use the "Scan MSI" procedure on the SD agent to get a list of all MSI installations and allow using the uninstall procedure to remove the application.

     

    If not installed using MSI then as Richard as said you need to create a package to execute the uninstallation commands.  I believe for winamp this is ""C:\Program Files\Winamp\uninstwa.exe" /S" (assuming installation in in the default directory).



  • 4.  Re:  how to uninstall software that has not been installed through ITCM

    Broadcom Employee
    Posted 01-03-2018 07:08 PM

    If file is not at default location then  either look in the registry for its path or do a wmic get list of drives then  parse the list of drives the do a dir [Google]<https://plus.google.com/CATechnologies>[Google+]<http://www.ca.com/us/rss.aspx?intcmp=footernav>



  • 5.  Re:  how to uninstall software that has not been installed through ITCM

    Posted 01-04-2018 09:04 AM

    Also, to help with identifying machines that have unwanted software installed on them using queries, you can first create one or more custom Software Categories and copy the relevant titles into the Software Category and then write a query to identify all machine for which software has been detected that are in that Software Category. You could either create one big Software Category for all the unwanted titles, or create more specific individual ones, like for WinAmp, that could then be used to create Software Groups for targeting machines using the previously described uninstall packages.



  • 6.  Re:  how to uninstall software that has not been installed through ITCM

    Posted 01-05-2018 12:47 PM

    Hi Mike thanks for idea to create a Query, is excellent now check uninstall process 



  • 7.  Re:  how to uninstall software that has not been installed through ITCM

    Posted 01-05-2018 09:24 AM

    There is an easy way to handle this if you have install packages for these software items. You can push out a simple batch script that executes the SD_ACMD AddInstallRecord command to add install records into ITCM for the software and then use the existing ITCM packages to uninstall the software even though it was not originally installed via ITCM.

     

    Here is the context of the command:

     

    AddInstallRecord { <item>
    <version>
    <procedure>
    <date> | current
    <time> | current
    <orderedby>
    <comment>
    [<target>] }

     

    And here is a sample command line. The important thing to remember is to make sure the SW package name, version and install procedure match the existing package:

     

    sd_acmd AddInstallRecord "McAfee VirusScan Enterprise" "8.5.0-A" "Local Install" "current" "current" "" "%Computername%"

     

    NOTE: The last two items are intentionally like that so no comment has to be added and the computer name is automatically populated.

     

    Hope this helps.



  • 8.  Re:  how to uninstall software that has not been installed through ITCM

    Posted 01-05-2018 09:32 AM

    You can also check this utility:

     

    https://communities.ca.com/docs/DOC-231174722-mapping-discovered-software-to-installed-packages

     

    It provides a method to map ‘discovered’ software titles to ‘Installed Packages’. It needs to be configured with the correct mappings but once that is done it will add the discovered software titles as Installed Packages using the method Joe mentioned.

     

    Steve McCormick, ITIL

    CA Technologies

    Principal Services Consultant

    Stephen.McCormick@ca.com

    <mailto:Stephen.McCormick@ca.com>



  • 9.  Re:  how to uninstall software that has not been installed through ITCM

    Posted 01-05-2018 09:37 AM

    Good idea Steve.

        I thought of that too but it might be more work intensive as a detection script has to be configured with all the same information but also has to be given files to search for and initiates a scan of the system which uses more resources. However on the good side, once set up Software Detection will much more easily pick up installations on machines that were previously offline or otherwise not on the network initially.

     

     

    Thanks,

    Joe Puccio

    Principle Engineer, Software Support

    CA Technologies

    Pucjo01@ca.com<mailto:Pucjo01@ca.com>

    C:1-631-987-8512



  • 10.  Re:  how to uninstall software that has not been installed through ITCM

    Posted 01-05-2018 09:42 AM

    Hi Joe,

     

    Please actually read the article I linked. This is NOT using the old detection scripts, this method actually uses our AM software inventory records to do the mapping. It runs as an AM job on the targets so it can run every day.

     

    Steve McCormick, ITIL

    CA Technologies

    Principal Services Consultant

    Tel: +1-731-676-4223

    Stephen.McCormick@ca.com

    <mailto:Stephen.McCormick@ca.com>



  • 11.  Re:  how to uninstall software that has not been installed through ITCM

    Posted 01-05-2018 09:45 AM

    Gotcha…given that information, my comments remain the same ☺ SW Detection can be set up at the ES/DM and automatically run every X SD agent runs as well. Same benefits etc…

     

    But thanks for setting me straight ☺