LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to remove 'Run as Administrator' requirement from compiled LV app

I'm building an appication that, when run on Win7, will not work properly unless

you right click and select 'Run as Administrator'.  Is there a way to build it so

that this can be avoided?

 

I am using LV 8.2 Professional.

0 Kudos
Message 1 of 4
(2,841 Views)

What is your application doing? You can compile a simple app that just displays the time and you do not need to be an admin to run it, so your app must be trying to access something that requires admin level.

0 Kudos
Message 2 of 4
(2,819 Views)

I think I may have found the issue...  my application tries to create a file in the local directory, which in this case is within the Program Files folder.

I will see if I redirect it to C:\temp or something...  perhaps then it won't require running as administrator.

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

For Win7 you should create a directory under C:\ProgramData for your app to use.    Take a look at 'Get System Directory.vi' as well.  This function will allow your app to target different OS's.

0 Kudos
Message 4 of 4
(2,807 Views)