Deployment and Imaging Group

 View Only
  • 1.  DS 7.1 - Ignore Error when installing 1 package?

    Trusted Advisor
    Posted Jul 05, 2011 05:54 PM

    In 6.x DS, you could ignore certain error codes when installing a package - is there a way to do this in 7.1?

    I have a package (Dell touchpad) that errors with 1641 which I googled to mean successful install but installer requesting reboot. 

    After reboot, software seems to work fine.  I can't figure out if the setup.exe I pulled from Dell's site has other command line switches available other than /s (nothing I tried works) to tell it to ignore restart (or set installer to reboot later).

    Is there a way I can get DS to ignore this error in order to consider it successfully installed within the console - I have a restart scheduled later in the deploy task anyway?



  • 2.  RE: DS 7.1 - Ignore Error when installing 1 package?

    Posted Jul 06, 2011 09:50 AM
      |   view attached

    If it's a DS job, can't you just put in a new Condition "Where" Task Name - Return Value equals 1641, and then have it continue after the task?



  • 3.  RE: DS 7.1 - Ignore Error when installing 1 package?

    Trusted Advisor
    Posted Jul 06, 2011 12:25 PM

    Dustin - thanks never used conditions before, but it worked great.. I had to move the task up on my job list because otherwise the condition list wouldn't give it as an option (weird).  I tried manually typing it thinking it would be available in search but no dice.

    Once I had the condition I was able to move that job back down the list.



  • 4.  RE: DS 7.1 - Ignore Error when installing 1 package?

    Trusted Advisor
    Posted Jul 06, 2011 04:00 PM

    Spoke too soon again - this only works if you uncheck the box "fail job if any task fails" - if you don't, it fails on that task and never gets to the next step to check for failure.

    In my case, condition doesn't make sense I guess, I should just uncheck that box.

    To be clear I have

    deploy package

    then condition, if package returns 1641 error, then do this, otherwise do that

    Problem is job isn't getting to condition task unless I uncheck the fail job checkbox.

    Am I doing anything wrong?  Any way to make it see the 1641 error as success i guess is really what I'm trying to do?



  • 5.  RE: DS 7.1 - Ignore Error when installing 1 package?
    Best Answer

    Posted Jul 06, 2011 04:34 PM

    Hey Sally,

     

    What you need to do is set the return codes at the package level itself.

     

    Do the following:

     

    Open the package resource, and fine the command line install string.. Double click on the string you have selected to run during the job. Once there you need to set the success return codes to 1641 in order for it not to fail the job. Once you do this it won't fail the job when the 1641 occurs and it will move onto your condition task. Here is an example of what I'm talking about.. see towards the bottom where it says "Success Codes" you need to specify 1641 there.

     



  • 6.  RE: DS 7.1 - Ignore Error when installing 1 package?

    Trusted Advisor
    Posted Jul 07, 2011 08:19 AM

    worked perfectly - thanks so much for posting.  For anyone else doing this, I had to set the failure code as well (to something else obviously).



  • 7.  RE: DS 7.1 - Ignore Error when installing 1 package?

    Posted Jul 07, 2011 09:18 AM

    You are quite welcome, glad I could be of assistance :)