I am new to creating an installer for Visual Studio 2010 and I have been learning a bit about the Setup projects.
So far so good, the basic out-of-the-box installer works just fine, but I need to find out how to copy an XML file in my main project into a certain, very specific directory during the installation process.
Can someone please help me out here?
Thanks
UPDATE
So thanks to JP, I now know that I need to create a Custom Folder in the File System section of the project, which I have done, and also set th开发者_开发知识库at directory to be the required directory that my .lnk file needs to go.
But for some unknown reason, I cannot add the .lnk file to the Custom Folder, it just doesnt appear after I hit "open" in the file chooser dialog box. Other file types work just fine...
You use the file system editor. If it's a standard folder like the Application Folder or the Desktop, use that. Otherwise, right click on "File System on Target Machine" and choose "Add Special Folder" -> "Custom Folder". Then set the directory in the properties of the special folder you made. Then you can add your file to the setup project with right click on the project->add file or you can add a standard file type (output, source, etc). Then, set the folder property on the file you created to the custom folder you made.
精彩评论