LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

setup file protections

Solved!
Go to solution

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?

0 Kudos
Message 1 of 4
(2,464 Views)
Solution
Accepted by oyester

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

Message 2 of 4
(2,461 Views)

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?

0 Kudos
Message 3 of 4
(2,443 Views)

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.

Message 4 of 4
(2,441 Views)