11-12-2012 12:47 PM
We install our application in
HOME := C:/program files/<app-name>
and install our setup.ini file in the same folder. The problem is, in Windows 7, the protections all files in HOME are set to read-only. So the engineer in charge of customer service is instructing them to go in and change the file protections of ALL files in that directory because, he argues, the instructions are easier to follow. I don't want users in that directory at all. I have tried and failed to write software that would change the protections for me. I have also tried putting the setup file in different directories without any success.
How do I get the application installer to install a setup file on a users computer that is read/write enabled?
Solved! Go to Solution.
11-12-2012 01:12 PM
Hi,
You should probably put your setup files in the Public App Data folder. You can do this with a LabVIEW 2011 installer but I know you can't with a LabVIEW 8.2.1 installer. I don't know when they added this. If your version of LabVIEW doesn't have this feature then have your application copy the setup file from your Program Files to the App Data folder if it doesn't exist in the App Data folder. You can get the App Data folder from the registry. We can give you more details if you need them but tell us what version of LabVIEW you have.
Albert
11-12-2012 03:58 PM
Sorry, I should have known better. I'm using LabVIEW 2011. I'm going to try to figure out for myself; but, since I'm already here, how do I use the registry to decode the App Data logical name?
11-12-2012 04:09 PM - edited 11-12-2012 04:10 PM
In LabVIEW there is a VI called "Get System Directory" which will return the path to whichever of the system directories you are looking for.
It is in the File I/O >> File Constants palette.