Then I would suggest to create an installer runtime variable to hold the "patch mode" status. For example, %IS_PATCHMODE%. You can set the variable value at installer compile time (from the command line).
For example, the following in your script:
#set compiler variable [PATCH_MODE] = "0"
Set Variable %IS_PATCHMODE% to "0"
#ifcompvar [PATCH_MODE] Equals "1" Then
Set Variable %IS_PATCHMODE% to "1"
#end
When you compile the setup.exe and you would like to "enable" your patch mode "identifier":
SBUILDER.EXE /C "C:\Development\Sample.sb6" /CV PATCH_MODE "1"
BTW, the ability to programmatically activate/deactivate patch generation is on the drawing board.
Friedrich