Problem using Visual Studio Installer for deploying my Windows Forms project

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Im trying to build a setup program using the built-in Visual Studio Installer. Im using VS 2010 and working on VB.NET.
For the most basic kind of program, I have an EXE file which works on a XML file (the XML file is treated like a database). So on a Windows 7 platform with UAC enabled, the best deployment is to install the EXE file in the Program Files folder, and the XML
file in the application data folder, for security purposes of Windows. (Windows, now, does not allow creating/writing files inside the Program Files folder unless your application is running with administrative privileges).
So I have added VS Installer to my current project and have opened its File System Editor. So to create the above layout, Ive added Primary Output to the Application Folder. Then Ive added its shortcut to the User Desktop.
Now I need to place my XML file to the application data folder. VS Installer gives the option of Users Application Data Folder, which is the %appdata% folder in the environment table. I need to access the All Users Application Data Folder.
My issues are:
1) How do I access the All Users Application Data Folder over here?<br/>
2) I tried using the Users Application Data Folder. It doesnt work. It doesnt create any folder in the %appdata% (e.g. C:UsersFarazAppDataRoaming). I tried to play around with various properties, like AlwaysCreate which is supposed to create a folder obligatorily.
It doesnt create anything. How to accomplish?

Thanks in advance!

View the full article
 
Back
Top