2

I have a small program that has been compiled to an executable on Windows 8.1 using Visual Studio 2013. The program works just fine, but I would like to remove all the metadata from the executable. If, for example, I use the powershell command,

Get-Content program.exe

It outputs strings like the full project path, copyright information, etc. Is there an option in Visual Studio that I can select not to include that information?

RG5
  • 517
  • 1
  • 5
  • 16
  • Possible duplicate of [Remove personal information from an ".exe"](https://stackoverflow.com/questions/41660929/remove-personal-information-from-an-exe) – StayOnTarget Oct 20 '17 at 12:01

2 Answers2

2

After some testing I found the setting I was looking for here:

Project >Configuration > Build > Advanced > Debug Info = None

RG5
  • 517
  • 1
  • 5
  • 16
1

You could use a program like upx to strip out metadata as well as compress the binary, but also compiling in release mode without including debugging information should remove the majority of the information included.

Jake H
  • 1,720
  • 1
  • 12
  • 13
  • I went to Build > Configuration Manager and changed Configuration to Release, but it still includes metadata. Is there some other setting I need to change? – RG5 Feb 23 '15 at 01:45
  • 1
    Actually I found where I needed to change the settings. It was in Project >Configuration > Build > Advanced > Debug Info = None – RG5 Feb 23 '15 at 01:51