srini
Posts: 81
Joined: Mon Sep 14, 2009 4:22 pm

Adding user to user group crashes installer

Hello,

I am creating a user 'User' and a group 'TelnetClients' in the target machine and making the user a member of the created group. But when I run the installer, it crashes after creating the user (and hopefully during the group creation) and ends prematurely. After this point the created user has not been rolled back.

If I run the installer again immediately, now the installer completes. This may be because the user creation has been skipped. But when the installer completes, the user has not been made a member of the created 'TelnetClients' group. When the application is uninstalled only the group is removed. The user is left.

Any idea?

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

Re: Adding user to user group crashes installer

Hello,

Please send a sample project athat accurately reproduces this behavior along with an install log to support at advancedinstaller dot com so we can further investigate this issue.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
srini
Posts: 81
Joined: Mon Sep 14, 2009 4:22 pm

Re: Adding user to user group crashes installer

Hi Gabriel,

I have attached the aip and the log file that causes the problem.

The installation will fail only if the user is made a member of the TelnetClients group.

I have tried a minimal installer which creates a user and add the user to the TelnetClients group. It works fine. So I should be doing something wrong in my installer attached.

Thanks
Attachments
package.log
(224.76 KiB) Downloaded 545 times
Osiris.aip
(137.57 KiB) Downloaded 552 times
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Adding user to user group crashes installer

Hello,

I am not sure why this is occurring. I can not reproduce this behavior with dummy files, and the log does not provide much insight into this.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
srini
Posts: 81
Joined: Mon Sep 14, 2009 4:22 pm

Re: Adding user to user group crashes installer

Hi Gabriel,

As I have mentioned in my post I myself could be able to reproduce this behaviour with a dummy installer.

If you remove all the prerequisites from the AIP file I sent to you, you can be able to build an installer, using the AIP file. And with it cant you able to find out what is causing this problem. As I have mentioned I get this problem only when I make the user a member of the TelnetClients group.

With limited knowledge with analysing the log file and the installer operation and time I cannot do much investigation on this. This action is really important to our project. So please help. Please let me know if I can do anything in getting this sorted.

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

Re: Adding user to user group crashes installer

Hello,

I am afraid your project depends on too many other resources, we can not get a working installer out of it.
Please simplify your project to the minimum while still allowing it to manifest this problem.

Also, test your current installer on other machines to see if this still occurs.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
srini
Posts: 81
Joined: Mon Sep 14, 2009 4:22 pm

Re: Adding user to user group crashes installer

Hi Gabriel,

I have stripped of all the dependancies from the installer and now it only creates couple of registry values and a user and group of which the user is added as a member. The installer crashes while creating the user. I have attached both the aip and the log file while it crashed.

Thanks
Attachments
package.log
(186.46 KiB) Downloaded 596 times
Copy of Osiris.aip
(67.63 KiB) Downloaded 583 times
srini
Posts: 81
Joined: Mon Sep 14, 2009 4:22 pm

Re: Adding user to user group crashes installer

Hello,

You have any updates on this?

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

Re: Adding user to user group crashes installer

Hello,

Somehow, the order in which the custom actions responsible with the creation of the user accounts and groups got switched in your InstallExecuteSequence.

In the Table Editor page, select InstallExecuteSequence table and search for AI_Process_Accounts and AI_ProcessGroups custom actions. Make sure the table is sorted by Sequence. Now, switch the two custom actions' sequence numbers so that if AI_ProcessAccounts had 1545 as the sequence number, it now has 1548. Same with AI_ProcessGroups.

Let me know if this fixed the issue.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
srini
Posts: 81
Joined: Mon Sep 14, 2009 4:22 pm

Re: Adding user to user group crashes installer

Thanks Gabriel,

I will try this and let you know.
srini
Posts: 81
Joined: Mon Sep 14, 2009 4:22 pm

Re: Adding user to user group crashes installer

Hi Guys,

This works after swapping the order. It would have been better if it were found earlier. But, thanks anyway.

Return to “Common Problems”