Hello,
We don't have predefined support to detect those versions of operating systems but you can create your own custom action.
In order to detect
Domain Controller context you can create your custom action which will search for computer role and will set a property (e.g.
CUSTOM_COMAND) accordingly. You can take a look on
"How can I tell if my program is running on a Domain Controller?" article which could be useful for you.
In order to detect the Operating Systems Version you can use a custom action that will set a property (e.g.
CUSTOM_COMAND) accordingly. You can take a look on
getting the system version MSDN article describing probing the operating system version, including whether the system is a small business product (PRODUCT_SMALLBUSINESS_SERVER enumeration).
You can go in the “Install Parameters” page and
create a new property like this:
Name field:
CUSTOM_COMAND
Value field:
/SQLSVCACCOUNT="NT AUTHORITY\Network Service"
Now, you can go in the “Prerequisites” page, select your prerequisite(e.g. SQL Server 2008 R2 Express ) and in the
“Setup Files” tab , in the “Install Command Lines” you can use a reference to your previous property( e.g.
[CUSTOM_COMAND] ).
Please note that This field supports
Formatted type only if the prerequisite is
feature-based.
If your prerequisite is a “pre-install” one you can duplicate it (use a copy-paste operation) in the "Prerequisites" page. We will use the copy of the prerequisite package in case when the target OS is a SBS or DC and in the “Install Command Lines” use the appropriate command lines. You should also add a new
“Search done by a custom executable” install condition using a custom .exe that will detect if the OS is SBS or DC and will return accordingly a return code.
The original prerequisite package will be used in case when the target OS is NOT a SBS or DC and in the “Install Command Lines” use the appropriate command lines. You should also add a new “Search done by a custom executable” install condition using a custom .exe that will detect if the OS is NOT a SBS or DC and will return accordingly a return code.
If you have any more questions please let us know.
Best regards,
Dan