I'm building my MSI project using Visual Studio 2010 and WiX. I'd like to automatically sign the release build upon successful compilation. (Note, not the Debug
build though, to save on compilation time.)
So far, I added this "Post-build" event when 'Release' is selected in solution configuration:
Which translates into this command:
"D:\C++\My Project\MSI Installer\MyProject-Installer\..\..\..\CodeSigner.exe" "D:\C++\My Project\MSI Installer\MyProject-Installer\MyProject-Installer\bin\Release\MyProject-Installer.msi"
Well, the problem is that $(TargetPath)
is not that. The actual path for the resulting MSI
is this for US English build:
D:\C++\My Project\MSI Installer\MyProject-Installer\MyProject-Installer\bin\Release\en-us\MyProject-Installer.msi
Issue 1: You see the \en-us
folder is somehow missing in what $(TargetPath)
is filling out.
Issue 2: VS 2010 tries to run this post-build script for both Release
and Debug
. And I need it for Release
only, like I was able to do with VS 2008.
So any idea how to fix these two issues?