BTW, the following in your code snippet looks strange:
SET Variable %DOTNET_FRAMEWORK% to Function:Get System Info(.NET Status) for "$NET_FRAMEWORK_35$"
You have to use the "Get System Info..." script function and not a "Set Variable..." function. See attached screenshot.
Friedrich