BUG: NTFS permissions for child items not updated - Advanced Installer Community
davidjhomer
Posts: 60
Joined: Wed Jun 08, 2016 3:58 pm
Contact: Website Facebook Skype Twitter

BUG: NTFS permissions for child items not updated

Hello,

We have found a bug in AdvancedInstaller

1. Create an installer that creates a folder called "Test"
2. Set the NTFS permissions on that folder to "User1" Full Control
3. Tick "Apply to all subfolders" and untick "Keep existing permissions"
4. Run the installation
5. Create files and folders inside "Test" - the permissions correctly have "User1" Full Control
6. Modify the installer to "User2" Full Control
7. Run the installation

BUG: The folder "Test1" correctly has "User2" Full control but all child folders and files still have "User1" full control!


Thanks,


Dave
CENTREL Solutions Ltd
Server audit and documentation tools.
http://www.centrel-solutions.com
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: BUG: NTFS permissions for child items not updated

Hello Dave,

This behaviour was encountered due to a bug on older versions but it was fixed starting with AI 13.1. So, can you please rebuild your setup project with AI 13.1 or a newer version and let us know if this helped?

Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
davidjhomer
Posts: 60
Joined: Wed Jun 08, 2016 3:58 pm
Contact: Website Facebook Skype Twitter

Re: BUG: NTFS permissions for child items not updated

Already tested with version 14.0.2 with the same issue, please advise.


Thanks,


Dave
CENTREL Solutions Ltd
Server audit and documentation tools.
http://www.centrel-solutions.com
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: BUG: NTFS permissions for child items not updated

Hello,

We have tested your scenario but could not reproduce this issue. Please send us the .AIP (project) so we can investigate it. Also, please specify which folder from "Files and Folders" page you set permissions for.

Please check before build if the permissions are set correctly for sub-folders in "Files and Folders" page.
It would be great if you could isolate this issue in a small buildable sample project. Thank you!

Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
davidjhomer
Posts: 60
Joined: Wed Jun 08, 2016 3:58 pm
Contact: Website Facebook Skype Twitter

Re: BUG: NTFS permissions for child items not updated

Hello

Please find full instructions on how to replicate
https://www.centrel-solutions.com/temp/ ... sBug.docx

Sample AIP project (zipped)
https://www.centrel-solutions.com/temp/SomeApp.zip

Please can you now consider this security bug urgent?


Thanks,


Dave
CENTREL Solutions Ltd
Server audit and documentation tools.
http://www.centrel-solutions.com
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: BUG: NTFS permissions for child items not updated

Hello,

Please note that Advanced Installer sets permissions only for files and folders deployed by your package. If you manually create a file, it will inherent the parent folder's permissions at the time it is created. If you will run the upgrade setup, it will update the permissions only for files and folders created by the package.This is our default implementation. As your file is created manually you should also manually change its the permissions.

If you need to set permissions for files created manually, you could do this by a custom action. Please have a look on an article regarding "icacls" Microsoft tool : Icacls

If you need to set permissions to all files contained by a folder you should use "/t" command line parameter for icacls.

Your custom action could be "Launch File" type, with sequence, placed before "Finish Execution" in "Install Execution Stage". The execution time should be set to "Deferred"
Please take a look on the attached screenshot with a configuration example.

Hope this helps!

Best regards,
Sorin
Attachments
screenshot.png
screenshot.png (19.59 KiB) Viewed 9288 times
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
davidjhomer
Posts: 60
Joined: Wed Jun 08, 2016 3:58 pm
Contact: Website Facebook Skype Twitter

Re: BUG: NTFS permissions for child items not updated

Hello,

In that case "Apply to all subfolders" is wrong. This should be "Apply to all installed subfolders and files".

Please can we add a request to add a new option to actually reset permissions on all files and folders?

We currently have so many work arounds and separate .exe files and batch files to do things that we would expect Advanced Installer to do.



Thanks,


Dave
CENTREL Solutions Ltd
Server audit and documentation tools.
http://www.centrel-solutions.com
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: BUG: NTFS permissions for child items not updated

Hello,

Thank you for your feedback. Maybe we will take into consideration this suggestion in a future version of Advanced Installer.
Thank you for your suggestion!

Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”