in additon to topic : install external MSI- or exe-setups
In my setup I use the function "Run Program" to install the Microsoft.NET framework.
I found out that if the setup is succesful it returns value 0.
If the setup failes or is cancelled it returns value 1602.
But, before the installation will start a windows security warning appears, it look something like this:

If I choose "Cancel" the windows security warning will popup once again althought i only have set the run program command once in my setup.
This is not really an issue, But the next problem is!
If you press "cancel" in the second warning window, the result value of the "run program" will also be 0.
So my setup will think the setup has run properly!!
I've tried to set variable to -1 before I run the Run Program command, hoping the value would not change if you press "cancel" but that did not work.
Because my setup has to run on client computers inside a big coörparation it is not possible to disable the warning message!
any idea's how to solve this ?
It is very common that installation packages will first install other applications before it continue's.