Best place for configuration files

I am creating an application that gets installed into the the [ProgramFiles] directory. The application writes to a config file every time it closes and the user also has the ability to write a config file at any point in time. After the application is installed no configuration files can be written. I am getting the following error:  "LabVIEW:  File permission error. You do not have the correct permissions for the file."
1. What do I need to do to be able to write config files to the directory where the application is installed?
2. If I wanted to save the files in some users folder, how can I keep track of this path from the development environment, to the exe and then across different OS's?
3. Is there a general convention/location for config files that the application needs to write to?
I know during the build installer phase we can put data in all these different Microsoft folders. But is there a way to get the paths to these folders in my application? (see image below)
I am running Windows 7 and LabVIEW 8.5.
Thanks for your help
-Anthony M.

Win32 consists of several DLLs. It is not .Net but the original interface in Windows to access operation system functions. It is available on every Windows PC because it implements Windows. The LV VI "File Dialog" is just a wrapper for the Win32 function FileOpenEx Which every program uses to select a file.
Storing user settings in the registry is outdatet. Modern Visual Studio programs store setting in files with .config extention.
Settings may be stored in various places depending of their need.
Settings which apply only to this special PC are stored where the application is installed. These settings are set during setup and won't change afterwards whithout any changes to the PC.
Settings which are common to different Windows users are stored in the All users\Appdata folder. The path to this folder is in the registry under HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Common AppData. Typical data stored there are test setups or serial numbers of external devices.
Data files which are common to different Windows users are stored in the All users\Data folder. The path to this folder is in the registry under HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Common Documents. Typical data may be test result protocolls.
Settings which are unique to different Windows users are stored in the<username> \Appdata folder. The path to this folder is in the registry under HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\AppData. Typical data may be personal number, department number.
Data files which are unique to different Windows users are stored in the <username>\Data folder. The path to this folder is in the registry under HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Personal.
It is normal that the user has full acces to the last for paths and read access to the first path.
Use the Example Finder to find the registry VI examples.
Waldemar
Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions

Similar Messages

  • Best place for scratch files, imported video on laptop with single drive

    Hi all,
    I read that is was best to put the scratch files on a disk other than that the program resides on, so I did. That makes sense.
    But later, when I was reading about people's problems with CS4 crashing, I read I'm not meant to be using USB drives .... so, my question is:
    On a laptop with a single hard disk and a USB external drive, where is the best place? Do the performance problems with scratch files on a single disk trump those of using USB or vice versa.
    Perhaps its something I'll have to try myself but wondering about other people's experience.
    Cheers

    I'm with Harm on the eSATA. I will say that FW-800 works for me, but as more of my externals offer eSATA now, I'll probably migrate to that connection very soon. Even with 3x 200GB 7200RPM SATA II HDD's on my laptop, I do a lot of work with externals, 'cause I migrate the Projects to my workstation. Just remember to set a unique drive letter for the external(s) in the OS of all computers, or you WILL have issues. An eSATA card is cheap, though your externals need to have the connection. Externals are also cheaper now. I'm paying the same for 2TB units, that I paid for 250GB ones, when they first came out! For what I paid for a 1.5TB RAID NAS, I could now get 16TB in a hot-swappable enclosure.
    As for USB's, I tried that years ago, and gave up in frustration. The connection was just too slow, and often timed out, or worse. I'd not do that again, on a bet - sorry, but I am too impatient and then there were the crashes...
    Hunt

  • Best place for LR catalog (.lrcat) file?

    I'm putting together a new PC running Vista and am trying to figure out the best place for the LR catalog (lrcat) file. This PC has multiple hard drives as follows:
    C: OS and apps
    D: non-photo files (docs, mp3s, etc)
    E: photo files
    F: video files
    All the drives are comparable in read/write speed. The Lightroom app will be installed on the C: drive, and the LR catalog will consist of the images on the E: drive. While working in LR, I sometimes listen to mp3s stored on the D: drive. I'm assuming that the best place for the lrcat file is the F: drive (since I seldom access that drive while working in LR). Does this make sense? Or should the lrcat file go somewhere else?
    On a side note, on my last PC, I had the lrcat file in what was originally a dedicated scratch drive (for PS), but I'm doing less and less in Photoshop these days, and my new system will have 12GB of ram, so I decided to do without a dedicated scratch drive for the new system.
    Any advise appreciated.

    Asking yourself the following questions may help determine which drive is best suited for storing the Lightroom Catalog:
    1) Are you the only person using the "Lightroom computer"?
    2) Do you have multiple log on accounts?
    3) Do multiple log on accounts need access to the Lightroom Catalog?
    If you answer yes to #1, its default location might be fine.  If you answer yes to #2 or #3, you should concider a central location for the .lrcat file.
    By default, the .lrcat file is located in a users document folder.  This means that at least one (1) .lrcat file will be created per user account.  Seeing that you usually keep photo files on the E Drive, creating a folder on the root of the E Drive might not be a bad idea.  Using the root of E schema will then allow mutiple users to access the .lrcat file when they log on.  Using the E Drive keeps "photo related" files together, thought Drive D or Drive F would also work.  It appears from your description that you keep O/S and Applications only on the C Drive, which I do myself.
    Hope that helps!

  • The best place for content server

    Hello,
    We need to install content Server . SAP ECC is in Paris .
    The users who will use the content server will be in New-York.
    Is the best place for content server in Paris or in New-York?
    The question could be : Will a document (for ex. a pdf of 100 Mb) to be checked_in the CS be first transferred from frontend to ECC and then from ECC to CS or directly from frontend to content server ?
    Thanks

    Hi Oda,
    If your users are in New-York, then better to have content server there to optimize network traffic and speed. There is something called as distributed content server concept where you can have different storage areas for different geographical locations.
    And as far as i know, whenever files are checked-in, they are directly stored in content server and it will not route through the ECC. Only DIR stored in the ECC will be linked to the file in the content server.
    Hope this helps.
    Regards,
    Ravi

  • 'Edit in Place' for XLSM-files (Excel Macro-Enabled)

    Hi,
    is it possible to activate 'Edit in Place' for xlsm-files (Excel Macro-Enabled Workbook file)?
    For xls(x)-files there is the link 'Edit This File', but not for files of type 'xlsm' allthough they could be dealt the same way with Excel.
    I know I can edit this files using the 'Add-in for MS Office' and via the 'Vibe Desktop', but it would be nice to deal them like other Excel-files.
    thx
    Martin

    Originally Posted by mschuhmann
    RTFM helps I admit:
    Novell Vibe 3.3 Administration Guide > Site Setup > Setting Up Site-Wide Customizations > Configuring File Associations for Edit in Place Applications
    Novell Doc: Novell Vibe 3.3 Administration Guide - Configuring File Associations for Edit in Place Applications
    Append ".xlsm" for the variable edit.in.place.file.applet.extensions, edit.in.place.file.webdav.extensions
    Hi Martin,
    Yeah, the Vibe docs can help on occasion
    Still, thanks for feeding it back to the forums as it can be quicker finding a hit in the forums than having to go through the docs!
    Cheers,
    Willem

  • Where is the best place for suggestiong requesting features?

    Where is the best place for suggesting/requesting features?
    If something like this already exists, please let me know.
    I often wish when I select a word to right click and choose dictionary to to find out the meaning of the word. Currently I have to copy, go to a dictionary web page, paste and search. And I spent a lot of time for that. I'm not that technically oriented to suggest how this can be achieved but just as an idea, may be Mozilla can partner with dictionary web sites by making a plug ins or include a dictionary with Firefox itself

    I am sure there are Extensions that do this.
    DictionarySearch - https://addons.mozilla.org/en-US/firefox/addon/68/
    Add-on search for Dictionary - https://addons.mozilla.org/en-US/firefox/search/?q=dictionary&cat=all&lver=any&pid=1&sort=&pp=20&lup=&advanced=
    Feedback - http://hendrix.mozilla.org/

  • Best place for CUA

    We've got ECC, BW, XI, EP, SolutionManager installed and want to implement CUA.
    I want to know your comment on:
    One CUA or more CUAs, we have 3 systems (DEV, QAS, PRD) landscape for each system.
    *Where is the best place for CUA?
    TIA.

    Hi Team FI,
    There are other factors that may be considered when deciding where to put CUA.  For example:
    Are you using Indirect Assignment of roles also?  If so, then simplicity would say, put the CUA on the same system as the HR module (saves having to ALE over the PD object -> Role relationships to different CUA system).
    High availability - normally your ECC system would have the highest availability due to the critical nature and impact on business, so it would make sense to put it on your ECC system if this is the leading factor.
    What is your role integration strategy like?  I know some clients that have excellent integration across all systems such that a 'role' is defined as all of the access that you require inclusive of all SAP systems, and LDAPs.  If this is the case, then you can have a single CUA system.  Assign ONE composite role to the user, which then provisions out single roles to all of the other SAP systems (including non-prod) and synchronises with your LDAP.  If your role integration is not as 'good' as this, then you may consider having two CUA systems.  One for the prod systems, and the other for the non-prod systems.

  • Best place for abap

    what is the best place for abap searching

    hi
    good
    abap searching means?
    if you r talking about URL than it is
    www.sapgenie.com
    www.abap4u.com
    if you r talking about TCode than it is
    ABAPDOCU.
    thanks
    mrutyun^

  • Best place for S60 v5 Applications?

    I assume the best place for applications for my 5800 (or any other device) WILL BE the Ovi store.
    But until it launches, where have we found to be the best place to get reliable apps?

    have a look here there is lots of great apps here free and themes and games enjoy
    http://dailymobile.se/
    If  i have helped at all a click on the white star below would be nice thanks.
    Now using the Lumia 1520

  • Best place for the sub.

    Hi,
    I have a 2.1 speaker system (I-trigue 3400) and was wondering if anybody knows the best place to put the sub so you can hear the deep bass more, it is infront of my legs now, and when i bend down i can hear more, but when i put it above my head i cant hear it again.

    To find the best place for a sub is quite complicated. The distance from walls, corners and other objects makes a huge difference. One way is to place the sub where you will be sitting; put it as close to where your head will be as you can. Then play some music with nice deep bass and crawl around the floor. You should notice that there are areas where the bass is louder, these are the best spots to place the sub.

  • Best place for DSL wireless router to aquire strongest signal

    Hi all
    I have a Westell DSL wireless router sitting on a Kensington surge protection base with antennas pointing straight up. Is this ok? My wireless internet connection is ok for now. What's the best place for my wireless router for the strongest possible signal?
    Thanks for your help
    Web dude

    Place it clear of HVAC ducting and away from any microwave or cordless phone base stations(s) in the house - these are the primary causes of wifi interference/noise and signal outages. Consider the area you want to cover (including any outdoor areas) and place the unit as near the center as possible.
    Download a copy of AP Grapher and observe the signal quality in your intended reception area(s) to help place the router optimally for best signal and lowest noise, including rotating the antennas if needed - vertical is perfectly OK, but you may get marginally better signal or lower noise by rotating them.
    AP Grapher can be downloaded from http://www.chimoosoft.com/products/apgrapher/

  • My daughter is a college student. she needs to write and compile c programs on her mac for a class this semester. what is the best place for her to start to get the correct compiler etc. to use ? thanks

    my daughter is a college student. she needs to write and compile c programs on her mac for a class this semester. what is the best place for her to start to get the correct compiler etc. to use ? thanks

    If you know that you will not be asked to design GUI interfaces, and the C programming course will adhere to command line compilation environments, then get the Xcode command-line developer tools, and skip the extra complication of Xcode until you absolutely need it. Apple has kicked GNU C to the curb and is rightly so, using Clang/LLVM compiler technology.
    Sign up for a free Apple Developer account using your Apple ID, and then visit the Mac Dev Center, and towards the bottom of the page, you will see additional downloads. Click on the associated, all down loads link. Know your OS X version beforehand, as the command-line tool releases are tied to general operating system versions, and the most recent Xcode version.  That said, there are currently two March 9, 2015 command-line tools for Xcode 6.2 — one for OS X 10.9 Mavericks, and the other for OS X Yosemite.

  • Best Practices for Configuration Manager

    What all links/ documents are available that summarize the best practices for Configuration Manager?
    Applications and Packages
    Software Updates
    Operating System Deployment
    Hardware/Software Inventory

    Hi,
    I think this may help you
    system center 2012 configuration manager best practices
    SCCM 2012 task-sequence best practices
    SCCM 2012 best practices for deploying application
    Configuration Manager 2012 Implementation and Administration
    Regards, Ibrahim Hamdy

  • Best Practice for configuring ZS3 storage

    Hi Team
    Can someone help me with the best way to configure data profile for a ZS3-2 storage which is mainly going to be used for oracle database and EBU application.
    If we are planning to install ldoms os on storage lun then what data profile should be the best one.
    Regards
    AB

    Without knowing more I would do the following, being very conservative;
    Create too pools, with pool0 on controller0 and pool1 on controller1. This is to take advantage of both controllers DRAM, for better performance. Regardless of RAIDZ or RAID 1+0, I would do this.
    I am assuming both trays are the same HHDs ( 900G?)
    Make the first pool RAID 1+0, with 2 write SSDs and one READ SSD. I would use this pool for redo logs, and database files. Mounting via OISP or dNFS.
    Make the second pool RAIDZ, with 2 write SSDs and one READ SSD, I would place my RMAN mount here, and any binary mounts and archive logs. Maybe DB files, if using partitioning. HCC is a great technology to use if you application will benefit from it.
    Now for the relaity check!
    9 times out of 10 method...
    Realistic... just use RAIDZ on both pools. In reality RAID 1+0 generates more IOPS in the array and leads to more DB I/O wait time! It's true!
    If you are headed to ECO I'll sit down and explain. short version, RAIDZ does less writes, which means better database performance.
    Erik

  • Best Place for Source Content Location?

    Hey Guys,
    Currently we are planning for 2 sites with our Configuration Manager designing but we are unsure what would be the best scenario for the Source Content Location.
    Should we just use DFS? or keep it local per site?

    It can go anywhere, but you should put it close to your ConfigMgr Primary Site Server.  The primary will copy the content from the source to the content library (and then to the distribution points).  
    Regardless of which file share location you chose, I recommend accessing it from a DNS Alias so that it can be moved later on without having to update all packages/apps/driver packages etc.  
    I hope that helps,
    Nash
    Nash Pherson, Senior Systems Consultant
    Now Micro -
    My Blog Posts
    If you've found a bug or want the product worked differently,
    share your feedback.
    <-- If this post was helpful, please click "Vote as Helpful".

Maybe you are looking for

  • FaceTime from Mac to Mac

    I don't know how to FaceTime from Mac to Mac. If I call the contact with its email-adress it doesn't work. Anybody got an idea how this works?

  • With Spotlight

    Does Spotlight work on Time Capsule? If yes, how? I'm using Time Capsule as a normal HD, not with Time Machine?

  • A tech issue with my 4th gen Nano - displays only the Apple icon

    Hello, I really hope that someone will be able to suggest a solution to my problem. I bought my Nano from the US about an year ago and it has been working perfectly till now... About two weeks ago I left it at home and did not use it for a week or so

  • ORA-01950

    Hi All, My DB Version: 10.2.0 OS: Solaris 5 Hi while one of my user trying to create a table he is getting below error: create table emp 2 (ename varchar2(10)); create table emp ERROR at line 1: ORA-01950: Message 1950 not found; No message file for

  • Server 9.0.1 compatible with 9iR2 client?

    We plan a production environment where Oracle 9i R2 clients talk to an Oracle server 9.0.1 on VMS 7.3. However, Oracle server for VMS lacks the oramtsadmin.sql script. We consider to copy this script from a Windows distribution to VMS. Since this scr