The “Insert Sample Data” checkbox is only displayed if the SampleScriptsPath is set.
Once enabled, it uses the values stored in SampleDatabaseName and IsSampleDatabaseNameEnforced to set the name of the database.
Enforced names cannot be changed by the user.