Kasper Hansen
Kasper Hansen

Reputation: 6557

Removing files from a Setup Project

I have a solution that includes a Setup Project. Unfortuately it also includes all the debug symbols, so they are to be removed. Is the correct way to:

  1. Right Click in the solution folder on each msi-name (or whatever it is) and select View -> File System
  2. In the "File System on Target Machine", select Application Folder.
  3. Then select each "Debug Symbols from..."-file from all the folders and delete them.

Is there more to it than this? I guess the dependencies list would automatically shrink and not include any pdb-files eventually?

Upvotes: 2

Views: 3160

Answers (1)

Marnix van Valen
Marnix van Valen

Reputation: 13673

Make sure you are building a release build and the release configuration of your application is not generating debug symbols.

The setup project will collect all output from your main project. If the output includes debug symbols, they will show up in the setup as well.

The easiest way to disable debug symbols from being generated is to open your solution in Visual Studio. Find the project that builds your application in the solution explorer. Right-click on the project icon to open it's properties. Make sure you have selected the Release configuration at the top of the dialog. On the build tab, select the Advanced button at the bottom. This opens a dialog that allows you to control the debug information generated for this configuration. Set the debug info to none to make sure no debug information is generated.

Upvotes: 2

Related Questions