LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

File Permission Error - Windows 'Public Documents'

Hi All, In my project I put some files into the Public Documents folder (Since I don't see any direct way in the installer itself to put files/folders into the shared documents directly, I actually install the files into the "Personal Folder" and then programmatically move the files into the Public Documents). I have set the "Unlock" attribute to TRUE for my folder under 'Personal Folder' in the installer properties (Source Settings tab) so that I don't get file permission error while accessing these files programmatically. The problem that I face is that when I try to access these files in the public documents in non 'Admin' login it throws file permission error. In admin login it works fine. Does anyone have any idea to fix this? Either I need a way to directly put my files into the Public Documents through installer itself OR I need to know how to unlock the folder that I programmatically moved into the Public Documents. Any help is appreciated. Thanks, Nivedha.
0 Kudos
Message 1 of 4
(3,545 Views)

Hello Nivedha,

 

 These are the Installation paths currently supported by  Application Builder  http://digital.ni.com/public.nsf/allkb/811FACF92E678065862576660077CE21

 

There is no path called "C:\Users\Public\Documents", so I hope you have to do it manually. After copying the files from the Personal Folder to Public folder, just give a try with the Windows CMD to set the appropriate folder permission. If the application builder can able to set the Permission level as "Unlock", sure we can also do it.

 

 

AshwiN,

 

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

You said you are copying the files programmatically. How are you doing this? Have you checked the permissions on the files in the new directory? It's likely they've inherited the permissions of the parent directory.

 

There are times when the NI Installer doesn't suit all needs, which is when you have to use a third-party installer to give you the ability to do what you need. I use Inno Setup for my installer.

0 Kudos
Message 3 of 4
(3,517 Views)

I don't have a ton of experience, but I have run into problems with Windows 7 doing this kind of thing to me. Even if I am an administrator on the machine I can't do all the things a "super admin" can do. I think this article may help:

 

http://www.blogsdna.com/2159/how-to-take-ownership-grant-permissions-to-access-files-folder-in-windo...

 

If that doesn't help let me know. I know I've fixed similar issues, but I don't have to do it often, and I can't remember exactly what I had to do.

0 Kudos
Message 4 of 4
(3,493 Views)