Action based on exit code of action

(imported topic written by sinucus)

I’m trying to work around an issue that I’m having with a patch. I’m trying to write action script that will check exit codes of commands and modify the fixlet based on that return code but it doesn’t seem to work. My sistuation is as follows

waithidden __Download\mscomctlocx2007-kb2598041-fullfile-x86-glb.exe /quiet /norestart

continue if {exit code of action = 17028}

regset "

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\KB2598041

" “NotRelevant”=“1”

What that allows is for me to check for “ONE” exit code, and do the following step if that code was found. If any other exit code was detected then it completes. I’d like the ability to check for additional exit codes. The problem with “continue if” commands is that the entire action will exit if it evaluates as false. So I tried just normal if but the code fails as “relevance error”. The code below fails.

waithidden __Download\mscomctlocx2007-kb2598041-fullfile-x86-glb.exe /quiet /norestart

if {exit code of action = 17028}

regset "

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\KB2598041

" “NotRelevant”=“1”

endif

The other issue that I had was that I was unable to test this in the FixletDebugger. The first code that I pasted in works as a fixlet, but not as an action within the fixlet debugger.

Does anyone have any good, working example code for checking exit codes?

(imported comment written by sinucus)

bump…

Does anyone know why I am unable to use the following code?

if {exit code of action = 17028}

(imported comment written by SystemAdmin)

According to http://www-01.ibm.com/support/docview.wss?uid=swg21506222

it is supposed to output the exit code to the log as well.

Is the log reporting the 17028 exit code you are expecting?