Writing to AppData from a Setup & Deployment Project
问题 I am updating an existing application that is installed via a Setup and Deployment Project. The old application copied a config and a database file into the application's folder in Program Files during installation. This worked fine on Win 2000 and Win Xp (under a local admin account). In Windows 7, however, not only is this frowned upon, but it essentially doesn't work due to UAC. So I want to update the application to write its config/data in CommonApplicationData. In the existing Setup and