LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Installer Help ... folder permissions inside %Program Files%

Solved!
Go to solution

So I just created an  installer on my Win7 machine, and I'm running into problems. 

 

Let's call my application "MyApplication.exe"

 

The application gets installed into "C:\Program Files\MyApplication" ... which is great.  It also creates a couple subdirectories inside that folder which my application will use.  For example:

 

C:\Program Files\MyApplication\Data

C:\Program Files\MyApplication\Log

 

My EXE needs to create files and write to these subdirectories.

 

The problem is that after installation, my EXE does not have permission to write to these folders.  I think by default, Win7 makes Program Files read-only for average users.

 

Is there any way my installer can make the "Data" and "Log" folders writeable during the installation process?

http://www.medicollector.com
Message 1 of 4
(5,575 Views)

Hi josborne,

 

So are you running this on the same computer you created it on, or on another without LabVIEW? I think you may have to try this from the Windows stance first, what happens if you run this as an administrator? Or try checking security permissions in the Control Panel.

 

Regards,

Deborah Y.

Deborah Burke
NI Hardware and Drivers Product Manager
Certified LabVIEW Architect
0 Kudos
Message 2 of 4
(5,557 Views)

Help!  I am still stuck on this issue. 

 

And the same issue is popping up on another application I am building.

 

The app gets installed to:     %Program Files% \ MyApp

 

And it comes with a configuration file in the same folder ... MyApp.ini

 

The problem is that because the file is located in Program Files on Win7, it becomes read-only.  And my app gets file permission errors when trying to write to it.  Even if the person executing the EXE is an administrator, I still get file permission errors.  Only way to get around it is to right-click on the EXE and select "Run As Administrator". 

 

Help!

 

 

http://www.medicollector.com
Message 3 of 4
(5,514 Views)
Solution
Accepted by topic author josborne

Voila! 

 

Found the answer myself.  Though I'd update my own post.  When building your installer, the solution is to check "unlock" on the file/folder want to make read/write:

 

Capture.JPG

 

http://www.medicollector.com
Message 4 of 4
(5,509 Views)