Yes, I also have an installdir in addition to this env variable. Files are getting copied to both places.
I know the simple way to do this is to just create the ProgramData folder and be done with it, but this app also needs to be installable on WInXP , 98 and 2k and all those OSses have different folders that are mapped to the ALLUSERPROFILE folder. So if the user is installing in XP, it shouldn't be writing those files to a hard coded path of C:\ProgramData.
Igor
Main Topics
Browse All Topics





by: kcehtrakPosted on 2008-01-13 at 21:24:36ID: 20651065
igor, environment variables cannot be used to dictate installdir. Env variables are only used as a part of the installation to aid the main exe and its mainly strings that contain information about the environment for the system, and the currently logged on user. What you did just then is create folder under destination computer and moved some files under it and thats how msi is going to install it. If you want the files to go to C:\Program Data then you need to create a folder called Program Data under destination computer and move the files to that directory to get the desired result. Cheers - Kcehtrak