gnznroses
09-08-2007, 12:04 AM
on Windows 2000 or greater, i need to install most of my files to %ApplicationDataFolderCommon%, however on Windows 95/98, i need to install them to %AppFolder%, because on 95/98 using SHGetSpecialFolderLocation to get that path (CSIDL_AllUsersAppData) returns an empty string. so i plan on detecting the windows version from within my app, and if it's 95/98 just using the App Dir to read the needed files.
how can i change the install path depending on windows version?
btw, i notice %ApplicationDataFolderCommon%, on windows 98, returns something like C:\Windows\Profiles\All Users\Application Data, but i can't find an API to do the same from within my program. i could write the path to an tx file, post-install, but i'd rather not.
how can i change the install path depending on windows version?
btw, i notice %ApplicationDataFolderCommon%, on windows 98, returns something like C:\Windows\Profiles\All Users\Application Data, but i can't find an API to do the same from within my program. i could write the path to an tx file, post-install, but i'd rather not.