>In my opinion, the best thing to do is to let the user change the >application folder during the installation. You would make the default >folder something under Program Files, but let the user change the location. >Then place your files in that folder and subfolders.
I agree with Rory that allowing the user to change the folder during setup is a good idea. We use the USERPROFILE environment string to find the default location. This is convenient since you can dereference in BAT and CMD files like: %USERPROFILE%. We have stopped using the Program Files directory for anything because Vista protects the entire tree in so many situations that we can't be sure the next service pack won't break our whole approach. Even if Vista does allow non-admins to install to Program Files after UAC gets the admin password, is that really a good approach if it requires visiting each machine? Our installed base typically has so many desktops that it is impractical. So, our install, update, and config approach is designed so any user can perform each without help and can even be automated. Glenn Lawler www.incodesystems.com -----Original Message----- From: GreatDayDan [SMTP:[email protected]] Sent: Saturday, August 22, 2009 2:45 PM To: [email protected] Subject: Re: [delphi-en] how to locate vista "home folder" Good Morning! I run XP on my dev box & Vista on my laptop. I thought that when the Vista User Access control is enabled (I keep mine off) that it would not allow applications to be installed in the PF folder unless logged in as admin. Am I mistaken? I cannot assume that new users will have admin rights. Or should I specify that the user MUST have admin rights? Thanks...Dan'l ____________________________________ Every day with Jesus is a Great! day and He loves YOU! ----- Original Message ---- From: Rory Daulton <[email protected]> To: [email protected] Sent: Saturday, August 22, 2009 11:17:56 AM Subject: Re: [delphi-en] how to locate vista "home folder" GreatDayDan, > Do I need to put my applications files (db, ini, etc) in Vista's 'home > folder' or will > Program Files work? > If 'home folder', how do I get it? Something like getting the 'My > Documents' folder? In my opinion, the best thing to do is to let the user change the application folder during the installation. You would make the default folder something under Program Files, but let the user change the location. Then place your files in that folder and subfolders. If you are writing many apps what have some common DLLs or other files, you may want to use a Common Files folder, but that is more advanced. Rory Daulton [email protected] ------------------------------------ ----------------------------------------------------- Home page: http://groups.yahoo.com/group/delphi-en/ To unsubscribe: [email protected]! Groups Links ------------------------------------ ----------------------------------------------------- Home page: http://groups.yahoo.com/group/delphi-en/ To unsubscribe: [email protected]! Groups Links

