Eval: Set folder permissions to domain acc. from user input - 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!

devlinse
Posts: 3
Joined: Mon Mar 26, 2007 5:55 am

Eval: Set folder permissions to domain acc. from user input

Hi,

I'm in the process of evaluating the product and have come to a halt regarding file/folder permissions.

I have a dialog where I'm getting user input in the form of a domain account and I want to use this value to grant certain folder permissions to that user.

For example, the dialog prompts for an account in the form ACMECORP\DoeJ, and I then wish to assign (say) GENERIC_ALL to a given child directory of my installation.

The collection of the information is fine and goes into a public property (APP_SERVICE_ACCOUNT_NAME), but the file permissions don't seem to be set. I'm sure the information is being recorded as there is a validation screen that is shown containing this data before the install completes (though I'm not sure if that's a solid check)

Is what I want to do possible? I thought that I'd be able to use the public property in the form [APP_SERVICE_ACCOUNT_NAME] as a parameter to the file permission, but perhaps I am doing something wrong.

Any advice? BTW, so far, this product stamps all over InstallShield.

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

Hi,

Thank you for your interest in Advanced Installer.

When you edit the permissions for the folder ("Permission" dialog) type [APP_SERVICE_ACCOUNT_NAME] in the "Username" field. Where APP_SERVICE_ACCOUNT_NAME represents the property of the "Edit" control in the "Dialogs" page. I test this and on my computer works fine.

Let me know if the problem persist.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
devlinse
Posts: 3
Joined: Mon Mar 26, 2007 5:55 am

Thank you. I went back and re-did it as per your instructions and it worked perfectly.

Return to “Common Problems”