Coder Social home page Coder Social logo

Comments (7)

dblock avatar dblock commented on August 29, 2024

That's strange, it's even used in demos, like here, maybe you can compare with that?

from msiext.

garymazz avatar garymazz commented on August 29, 2024

It is,, I lifted the code from your example.. :) I thought tags were evaluated individually.

BTW, where is you schema ?

Here is the component:

      <Component Id="create.ADMIN.GRP.USER" Guid="{Some_GUID}">
          <UserPrivileges:LocalUser 
            Id="ADMIN.USER" 
            Username="$(var.Admin.Name)" 
            Password="$(var.Admin.Password)" 
            CreateOnInstall="yes" 
            DeleteOnUnInstall="yes" 
            CheckIfExists="yes" 
          />
          <UserPrivileges:LocalGroup 
            Id="ADMIN.GRP" 
            Name="$(var.Admin.Group)" 
            Description="$(var.Admin.Group.Desc)" 
            CheckIfExists="yes" 
            CreateOnInstall="yes" 
            DeleteOnUnInstall="yes"
          >
            <UserPrivileges:LocalGroupMember 
              Id="assign.ADMIN.GRP.USER" 
              UserId="ADMIN.USER" 
              AddOnInstall="yes" 
              RemoveOnUnInstall="yes" 
              CheckIfMember="yes" 
            />
            <UserPrivileges:LocalGroupMember 
              Id="assign.SYS.ADMIN.GRP.USER" 
              UserId="ADMIN.USER" 
              GroupId="Administrators"
              AddOnInstall="yes" 
              RemoveOnUnInstall="yes" 
              CheckIfMember="yes" 
            />
            <UserPrivileges:LocalGroupMember 
              Id="remove.ADMIN.GRP.USER" 
              UserId="ADMIN.USER" 
              GroupId="Users"
              RemoveOnInstall="yes" 
              CheckIfMember="yes" 
           />
        </UserPrivileges:LocalGroup>
    </Component>

from msiext.

garymazz avatar garymazz commented on August 29, 2024

I did a bit more playing with the issue. It seems LocalGroupMember does not support a GroupId overide for when nested under local group. When I move the LocalGroupMember outside of LocalGroup nesting, the unexpected GroupId error is resolved; only to be replaced with another error..

You may consider "fixing" this with some documentation :) It's be easier for you than me (sorry)

from msiext.

dblock avatar dblock commented on August 29, 2024

That makes sense! The schema is here.

from msiext.

dblock avatar dblock commented on August 29, 2024

Of course it'd be easier for me to do it @garymazz because you wouldn't have to do it :) It works both ways. Thanks for surfacing this either way.

from msiext.

garymazz avatar garymazz commented on August 29, 2024

Thanks for running with this. I'm very late on a deadline and need to fix issues in several open source projects, 4 alone with installation and a CI system. My issue is time, coming up to speed on all these OSS projects simultaneously.-, plus getting something to ship. After next friday, I'll have breathing room..

from msiext.

garymazz avatar garymazz commented on August 29, 2024

After going though UserPrivilegesCompiler.cs, I understood how UserId and GroupId worked. There is no overrides for GroupId when LocalGroupMember nested under LocalGroup. There is no override for UserId when nested under LocalUser. Both are just syntactic candy. I'll update the doc and add some comments to your examples as soon as I get the project building on VS 2015.

from msiext.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.