Search code examples
visual-studio-2010windows-installersetup-project

Append release and platform strings to MSI output in Visual Studio Setup project


I have a Visual Studio 2010 setup project that produces MSI file. The name of the output file can be specified (right click -> Properties -> Output file name:)

Is there a way to automatically append packaging assembly version and platform to the name? Something like "MyProduct-{AssemblyVersion}-{Platform}.msi"?


Solution

  • You can rename the MSI in a postbuild event but do realize that changing the MSI name will force a Major Upgrade.