User creation fails if user is in a group (at 7.6.1) - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

kmgw
Posts: 3
Joined: Wed Jun 10, 2009 4:16 pm

User creation fails if user is in a group (at 7.6.1)

I have an issue very similar to that discussed (and fixed) in this thread. My installer is quite complex but the failure point is always the same - if I attempt to create a user that is a member of groups also created by the installer then the installation aborts and rolls back, but does not remove the newly created user. If I then run the installer again (without changing anything) it succeeds (presumably because the user is already there). If I manually delete the user (after the installer has rolled back) it again fails. If If I do not place the user in any groups then the installation proceeds normally. This problem has only appeared since I upgraded to version 7.6.1 of AdvancedInstaller.

I worked through the solution/suggestions in the above thread but my installer sequence is correct as far as I can see - installation of groups is before installation of users. Is there anything else I should look for in the installation?

I can work around this by using a .NET custom action of my own to apply the group memberships later on in the install sequence, but I would prefer not to have to maintain custom code if I can help it. Is this a bug, or have I missed something (or is there an adjustment I have to make now I have upgraded to 7.6.1)?

K Morrison
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: User creation fails if user is in a group (at 7.6.1)

Hello,

I created a new installer with version 7.6.1 with a new group and a new user belonging to that group and the Users group. After doing so I installed the package both on an XP an a Vista system and both installed the user and group without any errors.

Would it be possible for you to create a sample project that accurately reproduces this issue? We will need it to troubleshoot the cause. Please send it to support at advancedinstaller dot com. In your email also link to this thread.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
kmgw
Posts: 3
Joined: Wed Jun 10, 2009 4:16 pm

Re: User creation fails if user is in a group (at 7.6.1)

I'll try and create a sample project. For information, my target OS are Windows 2003 Server and Windows 2008 Server, not desktops. I could send you the *.aip I have, but it's got a lot of dependencies (custom actions, lots of *.aspx files etc.) which may make it impractical for you to rebuild a test...
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: User creation fails if user is in a group (at 7.6.1)

Hello,

Indeed a sample project would be best, thank you.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”