Another way to do this is to use a conditional install flag and a public property.
Add your pdb files to the msi, but also create a new component in the msi, and associate the pdb files with that component.
Create a new public property in the msi, call it something like INSTALLDEBUGSYMBOLS
. Have its value set to false. Set a condition on the new component to only install if the property is set to true. This means that during normal installation, the component containing the pdb files will be skipped. However you can at a later date re-run the msi, and override the value of the INSTALLDEBUGSYMBOLS
flag, which will mean your component now gets installed (public properties can have their value set externally). To override that property, your command line will look something like this:
MyInstaller.msi INSTALLDEBUGSYMBOLS=true