Hi all,
I hope this is in the right category. I have an application that I created which creates new folders under the install path:
'C:\Program Files\My Application\' and updates / deletes / installs files into.
Of course, whenever the program is run and any of these activities are attempted an access is denied message is shown. My question is how can I change the permissions for this folder on installation so all users can do these operations. I should also add that I'm kind of new to Windows development - any help would be greatly appreciated!
Bechir BejaouiPosted Nov 26, 2008, 2:49 PM
first you have to add an installer class to your application it is used when customised steps have to be taken during the installation
then you can override one of the two methods the Install() or the Commit() method. You set the IOPermission of your desired file as you like, the IOPermission could be declarative using attributes but in your case it is worth to use the imperative way
James RobertsonPosted Nov 25, 2008, 10:30 PM
Bechir BejaouiPosted Nov 25, 2008, 10:26 AM