(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?