Folder Permissions

For all your non-technical questions.
JohnH
Posts: 7
Joined: Thu Feb 01, 2007 12:02 pm

Folder Permissions

Postby JohnH » Thu Feb 01, 2007 2:09 pm

Using the Access Control page in InstallAware 6.22 I can set right to individual files. Can I set access rights on a whole folder, so all the files added to or created their before / after the installation has read / write access?

The folder would be C:\\ProgramData\\Company\\UserData

Regards.

John

CandiceJones
Posts: 904
Joined: Thu Dec 22, 2005 7:03 pm
Contact:

Postby CandiceJones » Thu Feb 01, 2007 4:18 pm

Yes, simply enter the folder path instead of a file path.
Candice Jones
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

emu99
Posts: 7
Joined: Sun Feb 18, 2007 7:08 am
Location: Germany / Duesseldorf

access control on folder only full access ?

Postby emu99 » Tue Feb 27, 2007 3:30 am

when i use the access control to change permission on a folder with
object type = file system,
operation = set chosen users with access rights,
user accounts = everyone + authenticated users
access rights = read + write

installaware (6.24 / 6.31) sets full control for those everyone + authenticated users, this is not what is should be, since write is not equal to full control.

This seems like a bug. Also there should be more graduation possible inside the access rights options, e.g. which type of permission to set (or remove) like read & execute, Modify, Write, Full Control.

CandiceJones
Posts: 904
Joined: Thu Dec 22, 2005 7:03 pm
Contact:

Postby CandiceJones » Sun Mar 04, 2007 9:00 am

Hi,

This behavior is as-designed.

Read includes Execute, Write includes Modify, etc. So these values are shorthands and not exact correlates of their similarly named permission types.
Candice Jones

InstallAware

Home of The Next Generation MSI Installer

Get your free copy today - http://www.installaware.com/

emu99
Posts: 7
Joined: Sun Feb 18, 2007 7:08 am
Location: Germany / Duesseldorf

Postby emu99 » Sun Mar 04, 2007 9:09 am

Hi Candice,

sorry, but no Admin wants users to have full-access / full control on folders.

users are tempering with folders and in worst case they remove administrators / systemaccount from accessing the folder. no one wants this situation.

i'm quiet sure, most of the others using IA are the same opinion.

there should be at least a graduation, where one can define which permission users should have on folders / files.

This should really be changed.

best regards
emu

jrush
Posts: 1
Joined: Thu Oct 25, 2007 4:08 pm

Should be able to set permissions

Postby jrush » Thu Oct 25, 2007 4:15 pm

Not only do I totally agree but you also must make it so any new files or folders created under that folder inherit those permission settings. I can get the permission settings set properly but any new files created have (worst possible case) NO PERMISSION! This means even the end user administrator cannot remove them without resetting ownership and then changing permissions and then deleting the files by hand.

Further - if a folder has its permissions set to Everyone Full Control and in the that folder is a file (specified with a wildcard in the installation) that file get no permission - in this case the un-installer doesn't even work.

Suggestion: Allow people to specify exact permissions on exact folders for exact users - its my installation I know exactly what I need. Make sure that these setting also get inherited by new files and folder created by the end user.

This, in my opinion is huge shortcoming of your product.

CandiceJones
Posts: 904
Joined: Thu Dec 22, 2005 7:03 pm
Contact:

Postby CandiceJones » Thu Oct 25, 2007 4:26 pm

You have to create the folder and set permissions before Windows Installer takes over. This way the permissions are applied to all subfolders and files successfully.

So, you'd manually create the folder and assign the desired permissions before calling Apply Install. You can create the folder using Call DLL Function on CreateDirectoryA in kernel32.dll, the first parameter being the name of the folder and the second just NULL. After this is done be sure to set the permissions also, before you call Apply Install.
Candice Jones

InstallAware

Home of The Next Generation MSI Installer

Get your free copy today - http://www.installaware.com/

rentzk
Posts: 37
Joined: Sun Aug 27, 2006 10:01 pm

Postby rentzk » Tue Dec 18, 2007 12:30 am

Won't using the CreateDirectoryA call prevent the uninstall from removing this folder? I thought that an uninstall only removed things that it created, and that going straight to the OS like this would mess things up.

CandiceJones
Posts: 904
Joined: Thu Dec 22, 2005 7:03 pm
Contact:

Postby CandiceJones » Tue Dec 18, 2007 2:01 am

That's a good point. However, you can easily remedy the situation by inserting another call to RemoveDirectoryA in kernel32.dll right after Apply Uninstall (which makes the command come right after MSI's uninstallation) using Call DLL Function.
Candice Jones

InstallAware

Home of The Next Generation MSI Installer

Get your free copy today - http://www.installaware.com/


Return to “Non-Technical”

Who is online

Users browsing this forum: No registered users and 16 guests