View forum topic
List of forum topicsSubject: Read-write attribute
I need change some of my files from read-only to read-write. I am installing them in a folder on "Program Files (86)" which is read-only by default. These files must be able to be edited by a spreadsheet that the user will be using, as they are text files that my application reads in (i.e. the spreadsheet reads and writes text files and then shells out to an executable that writes a text file for the spreadsheet to read.
In CreateInstall I am going to the Set Attributes, listing these files and leaving the Read-Only attribute turned off. The whole program folder though is checked Read-Only, which seems to override. Is there anyway to accomplish this?
Thank you.
By default, Windows doesn't allows applications to write anything in Program Files subfolders. Microsoft recommends to use Application Data folder for read/write any data files. So, you should store such files in Application Data\My Application (this is the right method) or install your application in the folder like c:\My Application.
For example, you can find CreateInstall data files in the folder like this
C:\Users\[YOUR USERNAME]\AppData\Roaming\CreateInstall
Set Attributes won't help you. Look for information about CACLS.exe in the Internet. This console utility can manage access rights to files and folders. You can run it during the installation.
Another method is to add a special manifest to your exe file that it runs always as administrator but this is not a good method.
November 13, 2022 Installer CreateInstall 8.10.1 was released.
May 21, 2022 Installer CreateInstall 8.10.0 was released. read more
September 25, 2021 Installer CreateInstall 8.9.0 was released.
July 15, 2021 Installer CreateInstall 8.8.1 was released.
February 05, 2021 Installer CreateInstall 8.8.0 was released.
April 11, 2020 Installer CreateInstall 8.7.0 was released.