Announcement

Collapse
No announcement yet.

How can i create a local user account?

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

  • How can i create a local user account?

    Hello everyone,

    I need to find a way to create a local user account... I didn't have any luck finding a good way to create a local user account during the installation... Any help would be appreciated...

    Thanks

    Tony

  • #2
    You can create a user account with the Wix "Util" extension. You can add a Wix fragment with the User Element using the Util extension to your source. Sample Wix code can be found here.

    Ulrich

    Comment


    • #3
      I am new to MSI in general. Lately I've been using Setup Factory 9.5.3.0, which is a great tool, however I have a need for an MSI installer too. Being new, to MSI Factory, I'm having difficulty understanding how to create a local user (e.g. "VCHybrid" with a password) and add them to the local Administrators group. I've read Ulrich's post here from 2015. Can someone provide a working example. I've posted the MSI Factory file here.
      Attached Files

      Comment


      • #4
        I attached a sample project I made at the time of the post. This is not something easy for a new user of Windows Installer and Wix...
        Also, I do no advise that you install the MSI installers for Zoom (ZoomInstallerFull.msi, ZoomRoomsInstaller.msi) as part of your product.

        Ulrich
        Attached Files

        Comment


        • #5
          Ulrich, that sample was very helpful. Thank you for your help.

          Comment


          • #6
            Well creating the account worked, however, adding it to the 'Users' group failed with "error CNDL0005 : The Component element contains an unexpected child element 'Group'". What am I doing wrong here?
            Attached Files

            Comment


            • #7
              Group can be a child of Fragment, Module and Product only, not Component. See https://wixtoolset.org/documentation...til/group.html
              You can use GroupRef to join a user to a group, see https://wixtoolset.org/documentation.../groupref.html
              GroupRef can be a child of User: https://wixtoolset.org/documentation...util/user.html

              Ulrich

              Comment


              • #8
                Its works now. Thank you for your assistance.

                Comment

                Working...
                X
                😀
                🥰
                🤢
                😎
                😡
                👍
                👎