View forum topicList of forum topics
Subject: 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?
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
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.
February 05, 2021 Installer CreateInstall 8.8.0 was released. read more
April 11, 2020 Installer CreateInstall 8.7.0 was released.
March 07, 2020 Installer CreateInstall 8.6.2 was released.
November 09, 2019 Installer CreateInstall 8.5.5 was released.
August 08, 2019 Installer CreateInstall 8.5.1 was released.
June 19, 2019 Installer CreateInstall 8.4.11 was released.