How to tell if the .Net 4 Framework installed or was cancelled.
How can I tell in my WSE where I'm trying to install the .Net 4 framework whether or not it installed or if the user cancelled? Here is my .WSE code...
If COUNT Equals "1" then
Set Variable COUNT to 3
Edit INI File %INIFILEPATH%
Set Variable FILEPATH1 to %WORKINGDIR%\FILEPATH1\RemoveOld.exe
Set Variable FILEPATH2 to %WORKINGDIR%\FILEPATH2\ dotNetFx40_Full_setup.exe
Install File .\Custom Actions\RemoveOld.exe to %FILEPATH1%
Install File C:\dotNetFx40_Full_setup.exe to %FILEPATH2%
Set Variable CMDLINE1 to
Execute %FILEPATH1% %CMDLINE1%(Wait)
Execute %FILEPATH2% %CMDLINE1%(Wait)
How can I tell after the Wait if the user cancelled the install or if it aborted? I found the error codes it can produce on the Microsoft site and there is one for cancelled and one for fatal error. I'd like to determine if either of those happened and then have it put up an appropriate message and cancel my install. I was testing this and right now if I cancel the .Net install then it just proceeds with installing the rest of my app from my WSI. Maybe I can't do this in the WSE and it has to be done in the WSI after this code in the WSE happens. I really don't know.
Any help would be greatly appreciated.