elou
Posts: 96
Joined: Tue Apr 14, 2015 9:12 am

Only set permission of a directory on install

Hello,
in my project I have to ensure that a directory may be writeable for a user, so I set the permission for this directory.
Just by adding the needed properties for [GRP_USERS].
All works good.

Now I want that permissions not to be overwritten by an upgrade.

How can I configure AI sothat permissions are only changed by full installation and not by upgrade?

thanks and regards,
Éric.
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Only set permission of a directory on install

Hello Éric,

Can you proceed like this:

1. go to "Files and Folders" page and select the folder you set permissions for
2. from its context menu choose "Go To Component" option
3. add the following condition on the selected component:

Code: Select all

NOT OLDPRODUCTS
4. rebuild your setup package

and let us know if this helped?

Otherwise, please give us more details about your scenario. Maybe you could create a small sample and test case for us to better understand the issue you are facing with.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
elou
Posts: 96
Joined: Tue Apr 14, 2015 9:12 am

Re: Only set permission of a directory on install

Hello Daniel,
I am not sure I 100% understand how it works, but it helps!
Thanks and regards,
Éric.
Last edited by elou on Thu Feb 01, 2018 9:46 am, edited 1 time in total.
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Only set permission of a directory on install

Hello Éric,

If this is of no help just give us more details about what you are trying to achieve.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”