XNA Windows Setup project not including my content project

I use XNA 4.0 and I created a game that will be released for Steam, Impulse and others. Now the fact is that they do not accept ClickOnce deployments, since they cannot (or can be?) Be silently installed.

So, I went back to the drawing board, creating a Windows installation project for my XNA project. This works fine, but when I create the installer, all the contents of my content project were excluded for some reason.

Screenshots of my installation configuration

Now the content of my content usually changes from time to time when I update the game. Therefore, I would not want to add all the contents to the installation project manually.

Is it possible to solve this problem, somehow allowing you to automatically output the output files of the content project to the installer?

Edit

It is important to remember that I want the prerequisites to be set automatically. It is also a requirement that the installation can operate in silent mode.

+6
source share
2 answers

I could never get an installation project to automatically detect XNA content. To make it work, I had to manually create folders in the installation project and add content files. It was tedious to add all the files because you need to add them one folder at a time, although you can select and add all the files to the same folder multiple times in one go. As soon as I had all the content files, the program worked perfectly.

An alternative would be to add content files to your main XNA project as Visual Studio "Content", and not just XNA content. I found this difficult to do because Visual Studio is trying to implement a specific folder structure that does not necessarily correspond to the content folder structure. However, if you can customize your content according to this structure, you just need to mark the files as content by setting "Build action" to "Content". After you have done this, go to the installation project and select "Add" → "Exit Project ..." and select "Content Files" from the main XNA project.

+2
source

Source: https://habr.com/ru/post/902084/


All Articles