The point is that what you're trying to do is bad practice, regardless of whether or not you have it figured out. Your application should be set up to run and then create the necessary files for the user, rather than your installer trying to guess who might be using the computer, running the installer, and then creating files for that user. This fact isn't different for Windows or Mac.