Set RegistryErrorIndex = UNABLE_REMOVE_CONFIGURE_SERVICE
Goto RemoveSoftwareComponent_Return
Endif
RemoveSoftwareComponent_Return = +
Return $(RegistryErrorIndex)
[RemoveHardwareComponent]
Debug-Output "Remove Hardware Component..."
read-syms InitBaseVars
set RH_Manufacturer = $($0)
set RH_ProductName = $($1)
set RH_VersionNum = "CurrentVersion"
set RH_ProductKey = $(!NTN_SoftwareBase)"\"$($0)"\"$($1)"\"$(RH_VersionNum)
set RH_NetCardName = $($2)
Split-String $(RH_NetCardName), "\", CardInfo
set RH_NetCardNum = *($(CardInfo),11)
set RH_NetCardBase = *($(CardInfo),1)*($(CardInfo),2)*($(CardInfo),3)*($(CardInfo),4)*($(CardInfo),5)*($(CardInfo),6)*($(CardInfo),7)*($(CardInfo),8)*($(CardInfo),9)
set RegistryErrorIndex = NO_ERROR
Shell "", DecrementRefCount, $(RH_ProductKey)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
Debug-Output "UTILITY.INF: [AddHardwareComponent] IncrementRefCount returned "$(RegistryErrorIndex)