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:
- Create a variable - int var1
- Create a variable - int var2
- Run PowerShell scripts - Store Retrun Code to: var1
- 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 ?
Feb 21, 2014 at 10:02 AM
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