Hi Steve,
The "Detect Previous Version" function returns the path of a previously distributed version of your product.
If the function succeeds, %_SB_RETURNEX% contains the installed version number (if available).
I have attached a screenshot with a code snippet on how to handle it.
Does this help?
Friedrich