Grant Permission in Domain - 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!

ifoko
Posts: 35
Joined: Tue Apr 12, 2011 5:10 pm
Contact: Website

Grant Permission in Domain

Hi,

I want to build a setup which grants to the ../ProgrammFiles/Programm/Database/ Folder FullControl to Everyone when the PC is not in a domain

or

grants FullControl to %Domain%/Everyone if the user is in the domain.

Unfortunatly if the user is not in a domain and I want to grant permission an excepiton is thronw.

So whats the best way to grant permissions?

Regards
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Grant Permission in Domain

Hello,

You can try to develop two custom actions which use XCACLS.EXE to set the permissions. One should be for the domain and one without. You can use UserDomain property to condition both.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ifoko
Posts: 35
Joined: Tue Apr 12, 2011 5:10 pm
Contact: Website

Re: Grant Permission in Domain

My scenario is:

I want to install a sql compact ce 3.5 database file to a folder [APPDIR]\Database\Database.sdf.

There the I want to grant permissions to this file.
Either for domain user and not domain user

How can this be done best?

Best Regards

Return to “Common Problems”