At the moment I'm offering both a attended and unattended version of the installer I'm creating. As part of the initializationActionList I'm detecting the version of .NET installed and using the dotnet_autodetected variable to display a page later on to prompt the user to install .NET if it isn't present. This of-course doesn't work in the unattended mode, so I've added the following to my initializationActionList to throw an error when we're doing the installation on Windows, in an unattended mode, without .NET present.
This works fine as it stands, but part of the reason for the unattended installation is for use via Group Policy. So my question is instead of throwing the error message can I simply log this message out to the installation log and still abort the installation?
I've had a look through the questions but can't find anything to help at the moment.
asked 23 Jan '13, 06:17
You could use the below code:
Please also note I change the check used to determine if the installer is running in unattended mode so it also works when using
answered 23 Jan '13, 07:07