File permission problems

Common questions about using Actual Installer.
Post Reply
treynolds
Posts: 4
Joined: Thu Jun 09, 2011 4:56 pm

File permission problems

Post by treynolds »

Hi -

I've got a data file that ActualInstaller places in <CommonAppData>\<AppName>.

The problem is that even though the original file has full permissions for all users, when it's installed it only has Read and Execute permissions.

I need my app to be able to change this data later on according to the users' requirements.

How can I do this?

Many thanks

Tony Reynolds
Leo
Site Admin
Posts: 458
Joined: Fri Jan 22, 2010 12:40 pm

Re: File permission problems

Post by Leo »

You may change permissions of files or folders using icacls.exe.
Go to System / Commands, and add:

Code: Select all

File:	<SystemDir>\icacls.exe
Parameters: "<InstallDir>" /grant:r Users:(OI)(CI)F /T
Launch on OS:	All
Show:	Normal
Timing:	After Installation
Wait:	No
Run as admin:	No
More details:
https://www.actualinstaller.com/help/fa ... ullcontrol
Leo,
Actual Installer Team
https://www.actualinstaller.com
treynolds
Posts: 4
Joined: Thu Jun 09, 2011 4:56 pm

Re: File permission problems

Post by treynolds »

Hi Leo -

I've done more tests and can give you full details.

1. I'm working under Windows 7

2. I'm installing an application called "AddressList".
One of its files is called "LicenceData.xml" which has read/write permissions for everybody.
ActualInstaller is told to install it at <CommonAppData>/<AppName>
The installation requires Administrator Privileges.

3. I run the install and the file c:\ProgramData\AddressList\LicenceData.xml appears OK.
However, when I look at the security tab, the System and Administrators groups have full permissions, but the Users group has only Read and Execute permissions. This is NOT the same as the security settings for the original file.

A further problem, is that in use the LicenceData file will be modified, so an uninstall will not remove it. If I then run an install for a second time, that file is NOT overwritten, even though I specify Overwrite in ActualInstaller. This means that the new version of the program still has the old settings which is not what I want.

I hope that given these details you'll be able to reproduce my problems.

Regards

Tony Reynolds
treynolds
Posts: 4
Joined: Thu Jun 09, 2011 4:56 pm

Re: File permission problems

Post by treynolds »

I've just had the opportunity to re-test the above with ActualInstaller 3.9 and the problems seem to have gone away!

The file put into c:\Porgram Data on installation gets removed on an uninstall, even though it has been modified in the meantime.

Many thanks

Tony
Post Reply