I found a more automatic way to do this.
Create a script called add_reinstall_prop.vbs (example) using the following:
set objArgs = WScript.Arguments set o_installer = CreateObject("WindowsInstaller.Installer") set o_database = o_Installer.OpenDatabase(objArgs(0), 1) s_SQL = "INSERT INTO Property (Property, Value) Values( 'REINSTALLMODE', 'amus')" set o_MSIView = o_DataBase.OpenView( s_SQL) o_MSIView.Execute o_DataBase.Commit
Add the post-build event to the installation project by calling the script, with the following:
add_reinstall_prop.vbs $(BuiltOuputPath)
This will automatically add the desired entry to the integrated MSI. You can then check this with Orca to see that the record is now automatically added after the build.
AV
source share