Questions about permissions - 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!

holbech
Posts: 3
Joined: Fri Apr 04, 2008 7:35 am

Questions about permissions

I have an xml-file that gets changed during installation, but at the end of the installation process, I would like the permissions to be set in a certain way. But since xml-files are not treated as regular files by the advanced installer, I cannot simply click "Permissions", and then set them. Is there another solution?

Another problem I have with permissions, is when I try to make a file accessible to administrators only. However, when the installation is over, the SYSTEM account has the same permissions for the file as the Administrators. Can I prevent this?
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Re: Questions about permissions

Hi,
But since xml-files are not treated as regular files by the advanced installer, I cannot simply click "Permissions", and then set them. Is there another solution?
You can use Custom Actions to set the desired permissions. Use either the free FileAcl tool or Xcacls for this purpose.
However, when the installation is over, the SYSTEM account has the same permissions for the file as the Administrators. Can I prevent this?
No. When the actual installation is being performed and the system is modified, the "msiexec.exe" process runs as a service with the credentials of the Local System account. The ACL entry for the SYSTEM account you are referring to is required (for successful uninstallation, for instance).

Hope this helps.

Regards,
Ionut
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/
holbech
Posts: 3
Joined: Fri Apr 04, 2008 7:35 am

Re: Questions about permissions

That helped a lot. Thanks.

Return to “Common Problems”