08-22-2011 11:03 AM
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.
08-22-2011 01:12 PM
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.
08-22-2011 01:15 PM
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.
08-22-2011 01:50 PM - edited 08-22-2011 01:51 PM
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.