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
File permission problems
Re: File permission problems
You may change permissions of files or folders using icacls.exe.
Go to System / Commands, and add:
More details:
https://www.actualinstaller.com/help/fa ... ullcontrol
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
https://www.actualinstaller.com/help/fa ... ullcontrol
Re: File permission problems
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
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
Re: File permission problems
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
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