Path differences between XP and Vista/Win 7

Deploying to Windows? Utilizing VB Script execution? This is the place to ask Windows-specific questions.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
doc
Posts: 148
Joined: Fri Jun 09, 2006 4:30 pm

Path differences between XP and Vista/Win 7

Post by doc » Sun Dec 12, 2010 4:05 pm

Hello folks,
After a very extended delay, I'm back again wondering how you folks handle installation and path issues for preference files and/or other support files that might be needed on the Windows platform. Perhaps I'm being overly paranoid and wasting everyone's time, but I'm having a really difficult time understanding this.

This code:
put specialfolderpath(26) into tSpecialFoldername
answer tSpecialFoldername

Gives these results:
Win XP: C:/Documents and Settings/MyUserName/Application Data
Win Vista: C:/Users/MyUserName/AppData/Roaming
Win 7: C:/Users/MyUserName/AppData/Roaming

Assuming that I concatenate the remaining path such as "myAppFolderName" to the special folder location, will the application reliably resolve itself to the proper location or should I be concerned about the obvious differences between the XP and Vista/Win7 special folder path?

Thanks for your time,
Doc

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Path differences between XP and Vista/Win 7

Post by Klaus » Sun Dec 12, 2010 5:55 pm

Hi doc,

check this URL for more info about Windows (>= VISTA) "File Virtualization":
http://www.runrev.com/developers/lesson ... ows-vista/


Best

Klaus

doc
Posts: 148
Joined: Fri Jun 09, 2006 4:30 pm

Re: Path differences between XP and Vista/Win 7

Post by doc » Sun Dec 12, 2010 11:16 pm

Thanks Klaus,
I had already read that article as well as several others on the subject, but it still leaves some questions hanging...
...guess I'll just rely on some old fashioned trial and error to get it all sorted out.

Heh, I've built what has become the most complex application that I've ever done personally and settling all of the stinking installation and path related issues is as bad (if not worse) than developing the working code. Junk like this sometimes makes me want to stop programming altogether. Here we go... onward and upward, hopefully. :wink:

Appreciate your assistance and link sir,
-Doc-

Post Reply