This project has moved. For the latest updates, please go here.

Return Codes

Topics: Configuration Issue
Feb 20, 2014 at 6:51 PM
Hello guys,

I have a couple of questions about the return codes...

Can you please give me more information about return code and how they work and how I make them some use of them ?

Let say this scenario:

I create a custom upgrade with following structure:
  1. Create a variable - int var1
  2. Create a variable - int var2
  3. Run PowerShell scripts - Store Retrun Code to: var1
  4. Defire the return code for this Custom Upgrade - Return Code to var2
At the final page of the wizzard I have Vendor Name, Product name ... etc ... and Return Codes what are they about and what they have to do with the variables of Return Code I set in custom upgrade block.

And my second question os:

How can I put in use the Return Code from the PowerShell script and the Return Code variable from the whole Custom Upgrade where are they stored, how can i see them ?

Thanks guys,
Best Regards,
Feb 21, 2014 at 11:02 AM
Hi mnikolaev,

First, a custom update can return only one 'Return Code', so you don't have to declare two variables.

In the update Wizard, the return code section allow you to define the meaning of the return code. For example, let's say your powershell script return -1 if success, 255 if success but a reboot is required and 254 if failed. Then you can create these return codes here.
Marked as answer by mnikolaev on 2/26/2014 at 3:54 AM