What should be the DefaultLocation property of the VS2010 installation to install the application in C: \ Users \ [username] \ AppData \ Local folder?

I need to install a windows service using Visual Studio. The destination location for the installation is handled by the "DefaultLocation" property in the Visual Studio setup project. I used the [AppDataFolder] tag to install the application. As a result, it was installed in the folder "C: \ Users [username] \ AppData ** Roaming **". I cannot figure out how to change the "DefaultLocation" property so that the application is installed in the C: \ Users [username] \ AppData ** Local ** folder. Any idea how to do this?

+7
c # installation visual-studio-2010
source share
1 answer

Ok I have found the answer. If you want to install the application in the C:\Users[username]\AppData\Local folder, the [LocalAppDataFolder] tag (value) should be used as the DefaultLocation property. Example: [LocalAppDataFolder][Manufacturer]\[ProductName] See Also: LocalAppDataFolder Property

+14
source share

All Articles