How do you change the order of actions? - 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!

niallel
Posts: 1
Joined: Sat Nov 25, 2006 10:00 pm

How do you change the order of actions?

Hi,

I want to give permissions to some files for a user that I also create with Advanced Installer Enterprise.

However it seems to try and change the permissions on the files before it creates the user account.

Is there some way of telling it to create the user account first, then change the permissions?

thanks,

niall
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Actually this is a limitation of windows installer, for more details about this please see:
http://msdn.microsoft.com/library/defau ... _table.asp

As an workaround you can try this:
1. Create a msi that only create the user account and add it as prerequisites.
2. Create a deferred custom action (of type "Launch File or Open URL") to set permissions for a specific folder. Scheduled this custom action under "InstallFinalize" with (Not Installed) as execution condition. For this custom action you can use CALCS.EXE system tool that sets permissions for a folder. To view what command line switches you can specify for the CA just type CALCS in the Windows command prompt.

Hope this helps.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”