How can I specify files in the Setup Project in Visual studio that should be copied to the C:\Documents and Settings\User foder, where User is the name of the user installing my application?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use
USERPROFILEenvironment variable. It points to the full path of the current user profile. You have to use a custom action type 51 to copy it into a property so that it can be used as the target folder for installing files.I’d recommend using either AppData folder for this purpose:
AppDataFolderis the full path of the roaming folder for the current useLocalAppDataFolderis the full path to the file system directory that serves as the data repository for local (non-roaming) applications.