11-12-2009 08:25 AM
Guru,
What was catchy?
I am the administrator for this laptop. See the attached jpg. I always log on as Steve which is a member of the Administrators Group. The right image is of the Steve Properties memebership.
Steve
03-08-2010 01:33 AM
Hi steeve,
i am also facing the same problem in my application.
In my application, i am writing to and reading from data.ini file.
i created an exe and an installer and installed in the laptop which is having admin rights.
Initiaillay installer have been installed in C drive, got an error 8, which gives the error description as "file permission error".
then uninstalled it and again installed in other drive.After installation,when i select the installer from the "All programs", application had been in task bar for 1-2 seconds and then it disappears.
I think you might have got the solution for the same problem. please help me in this regard.
Thanks in advance!.
Regards
geeta
03-09-2010 12:18 PM
Hello Geeta,
Are you sure that this is the same error? You said "Initiaillay installer have been installed in C drive, got an error 8, which gives the error description as "file permission error"." Does this mean that you are getting the error when you run the installer?
If you are not getting the error during the install and are getting it when you run the LabVIEW built .exe, could you give me some information about the OS that it is running on and the location of the data.ini folder.
03-10-2010 09:06 AM
10-13-2010 01:21 AM
Hi Waldemar,
what about to read the environmental variable from windows via a dos command? I found out that XP and Win 7 for example don't use similar environment variables.
I have a similar Problem. I want to read a file on startup for user specific GUI behavior (properties) and on closure the software writes the latest changes to the file.
1. What is the best way to get the path of the file in my application?
2. How do I create an Installer Package that distributes the file to this "user app" path?
Greetz Bastian
10-13-2010 03:23 PM
Usually this is done with the configuration file VIs which will read and write settings and such to the application ini key. Everytime you create an application it also makes an ini key with the same name. You can use the configuration File VIs to access this data and use it in your application.
Normally this would be stored int he same location as the application, but it can also be added to the users My Documents folder or other user paths. Use the Get System Directory VI that comes with LabVIEW 2009 and later in order to access these paths programmatically. The paths will be different based on which computer you are on and which user is logged in.
10-14-2010 01:42 AM
Hi,
i am using LV 8.6 and those VIs don't exist here. Now i have to decide to update my LV version or do it myself via the "read registry" VIs.
Thank you so far.
Bastian