Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Specifying c:\ProgramData folder in Setup project?

I am using a Windows Installer deployment project in VS 2010 to create an installer for a small demo project. The demo needs to install a SQL Compact database file (MyData.sdf). The demo can't install the database to the application folder on the user's machine--I get an "access denied" error if I do that. So, the logical place to install the database would seem to be a subfolder under the user's c:\ProgramData folder.

How do I specify the c:\ProgramData folder in the deployment project's File System Editor? I right-click the File System on Target Machine node and hover over Add Special Folder to see the fly-out list of special folders, but I don't see a special folder that looks like it corresponds to the c:\ProgramData folder.

Does one of the entries on the list correspond to the folder? Do I have to set it up as a custom folder? If I do, how would I set up the custom folder? Thanks for your help.

like image 695
David Veeneman Avatar asked Sep 16 '10 17:09

David Veeneman


People also ask

Where is the ProgramData folder in C drive?

To view the "ProgramData" folder you will need to go to the Windows control panel , select "Appearance and Personalization", and find the "folder options" dialog. Select the View Tab, make the changes shown above, and click OK. You should now be able to see and access the "ProgramData" folder.

What is C ProgramData folder?

ProgramData specifies the path to the program-data folder (normally C:\ProgramData). Unlike the Program Files folder, this folder can be used by applications to store data for standard users, because it does not require elevated permissions.

Does ProgramData need folder?

The ProgramData folder is one of those important system folders. It contains all the data for Windows classic and UWP applications. It is hidden by default because it is not meant to be seen by anyone or tampered with.


1 Answers

I don't think it's available in the fly-out. You can create Custom Folder and set its DefaultLocation property to [CommonAppDataFolder].

like image 151
spender Avatar answered Oct 01 '22 03:10

spender