Announcement

Collapse
No announcement yet.

SERVICEDOMAIN not consistent

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • SERVICEDOMAIN not consistent

    Customers are saying that a field in my MSI Factory installation dialog (which has as its "Property name" as SERVICEDOMAIN) sometimes puts in the computer name and NOT the NetBIOS name of the domain.

    How can I fix this?

  • #2
    Where did you retrieve this info from? SERVICEDOMAIN is not a standard MSI Property...
    https://docs.microsoft.com/en-us/win...erty-reference

    Ulrich

    Comment


    • #3
      A long, long time ago. What can I use, then, to pre-fill the field with the netbios domain name?

      Comment


      • #4
        I set property SERVICEDOMAIN = [%USERDOMAIN] under 'Custom Actions'

        Comment


        • #5
          Possibly you can use the solution found by this post's author, as long as the USERDOMAIN‚Äč environment variable is properly set on the target system:
          https://stackoverflow.com/questions/...me-in-property

          Click image for larger version

Name:	SCRN-2022-09-12-01.png
Views:	36
Size:	15.0 KB
ID:	309282

          Ulrich

          Comment


          • #6
            That's filled in as to what the current user is logged into. If the user is logged in locally, it's the computer's name. It's not the domain the computer is joined to.

            Comment


            • #7
              I think I have the solution.

              Here's what I found in the Registry to use for retrieving the joined domain:

              Click image for larger version

Name:	lastfetch.jpg
Views:	29
Size:	26.0 KB
ID:	309378

              And you set the Default Value to [%USERDOMAIN] in case this value isn't there:
              Click image for larger version

Name:	last2.jpg
Views:	17
Size:	28.7 KB
ID:	309379

              Comment

              Working...
              X