Hi, i create an application to deploy System Center Service Manager 2016 with all dependencies and supersedences but i want to deploy a reg file immediately after the setup is finished that contains the information about the server name.
is it possible to deploy it in the same application? it is to say somethig like "dependency tab" (here i deploy the preq) but after install because the server name is in a registry created during installation?
Dependency Tab

Supersedence

The application to set the server name is a powershell scrit like this:
ServiceManagerLogin.ps1
$regkey_property_name = 'SDKServiceMachine'
$regkey = get-item -Path Registry::'HKEY_CURRENT_USER\Software\Microsoft\System Center\2010\Service Manager\Console\User Settings'
$value = $regkey.GetValue($regkey_property_name)
#$valueType = $regkey.GetValueKind($regkey_property_name)
if ($value -ne 'xxx - SERVERNAME XXX'){
Set-ItemProperty -Path Registry::'HKEY_CURRENT_USER\Software\Microsoft\System Center\2010\Service Manager\Console\User Settings' -Name SDKServiceMachine -Type "STRING" -Value "xxx - SERVERNAME XXXr"
}
and i try to do all af those thinks in a whole application , without using task sequence
is it possible to deploy it in the same application? it is to say somethig like "dependency tab" (here i deploy the preq) but after install because the server name is in a registry created during installation?
Dependency Tab

Supersedence
The application to set the server name is a powershell scrit like this:
ServiceManagerLogin.ps1
$regkey_property_name = 'SDKServiceMachine'
$regkey = get-item -Path Registry::'HKEY_CURRENT_USER\Software\Microsoft\System Center\2010\Service Manager\Console\User Settings'
$value = $regkey.GetValue($regkey_property_name)
#$valueType = $regkey.GetValueKind($regkey_property_name)
if ($value -ne 'xxx - SERVERNAME XXX'){
Set-ItemProperty -Path Registry::'HKEY_CURRENT_USER\Software\Microsoft\System Center\2010\Service Manager\Console\User Settings' -Name SDKServiceMachine -Type "STRING" -Value "xxx - SERVERNAME XXXr"
}
and i try to do all af those thinks in a whole application , without using task sequence