CA Client Automation

  • 1.  package creation via .BAT

    Posted Mar 14, 2018 05:14 PM
      |   view attached

    Hi
        I created a .bat to uninstall a software, it was normally executed by cmd and did the desistalação of the software, watched the video of the link https://www.youtube.com/watch?v=o1xQSw_6AL4 of how to create the package, I followed all the steps and the same did not work, help me?

     

    Note Bat:

    @ECHO OFF
    cls
    TITLE Uninstalling Office. . .

    wmic product where name="Microsoft Office Visio Professional 2007" call uninstall

    goto END

    :END
    pause
    exit

     

    thank you.

    Attachment(s)

    zip
    visio.bat.zip   270 B 1 version


  • 2.  Re: package creation via .BAT

    Broadcom Employee
    Posted Mar 14, 2018 05:30 PM

    First off you need the line to be

     

    wmic product where name="Microsoft Office Visio Professional 2007" call uninstall  /nointeractive

     

    second you hve a pause in the script the script will never finish.

     

     

     

    To test your script create a simple batch file

     

    Cmd /c wmic product where name="Microsoft Office Visio Professional 2007" call uninstall  /nointeractive

     

    Save the file

     

    Double click on the file it should open run and close when done with no prompts for the user to do anything.  When done  visio should be gone.  If that works that is the file to use.

     

    Create a new packge in the gui select crate source form file select the file drag the file to the procedure. Seal and run the package.

     

     

    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: package creation via .BAT

    Broadcom Employee
    Posted Mar 14, 2018 05:35 PM

    Hello,

     

    Maybe the problem is with the line :

     

    pause

     

    SD Agent executes the SD package under Local System Account without display on desktop.

    So maybe the batch is stopping at "pause" line waiting a key to be pressed but as nothing is displayed on desktop, the batch could never be terminated.

     

    Please try to remove the pause line and check if it works.

     

    Regards,

    Jean-Yves



  • 4.  Re: package creation via .BAT

    Posted Mar 15, 2018 10:29 AM

    Hello,

             I made the step by step of every procedure and the package does not execute the .Bat.

     

     

     

     

     

     

     

    The Job software does nothing and does not uninstall even updating.



  • 5.  Re: package creation via .BAT

    Broadcom Employee
    Posted Mar 15, 2018 10:39 AM

    Did you copy the file into the package.  Did you copy the file from source (in the package) into the procedure.  Export the package you created and post it.

     

    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>



  • 6.  Re: package creation via .BAT

    Broadcom Employee
    Posted Mar 15, 2018 12:16 PM

    Hello,

     

    It is strange because the SD job for Visio 1.4.1.4 does not appear under "Software Jobs" folder of machine.

     

    Do you see the Job Container for this job under "Jobs/Software Jobs/All Software Jobs" ?

    Is it in error ?

     

     

    Thanks.

    Regards,

    Jean-Yves



  • 7.  Re: package creation via .BAT

    Posted Mar 15, 2018 12:25 PM

    Verify that the System Delivery Engine is running, and the tasks in it are not in ‘delayed’ status. Could be one of the SD_Taskx processes is stopped or hung up.

     

    Steve McCormick, ITIL

    CA Technologies

    Principal Services Consultant

    Stephen.McCormick@ca.com

    <mailto:Stephen.McCormick@ca.com>



  • 8.  Re: package creation via .BAT

    Posted Mar 15, 2018 02:15 PM

       Do not say the wrong

     

     



  • 9.  Re: package creation via .BAT
    Best Answer

    Posted Mar 15, 2018 09:52 PM

    There's your problem, "job container build failed", in your last screenshot...

     

    Download WinOffline from here:

    Latest WinOffline -- 20 February 2018 

     

    Run the CleanApps tool, which cleans up duplicate records in usd_applic in the database...

     

    Interactively

    Note: If the cleanup finds and removes duplicates, there will be more output in the window.

     

    Command Line:

    Or you can run the cleanup via the command line:

     

    If you don't provide the password, you will be prompted to enter it.  Optionally you can provide the password inline.  For example: WinOffline.exe -cleanapps -dbuser ca_itrm -dbpw password

     

    -Brian