setting security settings of a folder with a new user - 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!

Jochen Albrecht
Posts: 1
Joined: Mon Feb 11, 2008 4:41 pm

setting security settings of a folder with a new user

Hello,

with the installer I want to add a new user to a system and a new folder with security settings of this new user. When running the setup, I got the error message that the new user is not a valid user of the system and therefore the security settings can not be applied! It seems the folder is created before the new user is created! Is it possible to change the order of execution, that means first create the new user, then create the folder?
Second point: I don't want the setup to fail if the user is already existing. How can I manage it that the creation of already existing user is skipped?

Thanks for all answers!

Jochen
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

This happens because the user is created after the installation is performed, therefore the permissions cannot be set. Since the order of execution cannot be changed the only solution is to use another MSI package to create the user.

This MSI package can be added as a prerequisite to the main installation package (the one which sets the permissions). You can read more about prerequisites here:
http://www.advancedinstaller.com/user-g ... requisites
http://www.advancedinstaller.com/user-g ... tware.html
I don't want the setup to fail if the user is already existing. How can I manage it that the creation of already existing user is skipped?
This can be done by using a custom search for the prerequisite (an EXE). This custom search will find out if the user already exists and if it doesn't it will tell the installation package to run the MSI which creates the user. You can read more about this here:
http://www.advancedinstaller.com/user-g ... earch.html

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”