MSI .NET Installer class: Custom action + RollBar deploy
use Debug predefined variable to show action in log:
- event Commit DEBUGVAR_Commit
- sub-event Committed DEBUGVAR_Committed
- sub-event Committing DEBUGVAR_Committing
- event Install DEBUGVAR_Install
- event Uninstall DEBUGVAR_Uninstall
- event Rollback DEBUGVAR_Rollback
- event Deploy RollBar (POST data) DEBUGVAR_Deploy
BaseProjectDir/MyApp/Properties/AssemblyInfo.tt
- you application project
BaseProjectDir/MyApp/Properties/AssemblyInfo1.cs
- generated class to you application project
BaseProjectDir/MyApp/Properties/AssemblyRollBarId.cs
- you application project
BaseProjectDir/AppInstaller/
- you msi installer VS project (.vdproj)
BaseProjectDir/AppInstaller/UnInstallDeployApp/UnInstallDeployApp.cs
- you uninstall project
BaseProjectDir/AppInstaller/InstallerDeployLib/InstallerDeployLib.cs
- you InstallerDeploy action library
BaseProjectDir/AppInstaller/InstallerDeployLib/AppVersionInfo.cs
- generated class to InstallerDeploy library
- Edit
AssemblyInfo.tt
and modify you RollBar Id and other assemblyMyApp
settings - Insert in
AppInstaller
project, allCustomActionData
fields:/xTargetDir="[TARGETDIR]\"
- Insert in
AppInstaller
project, shortcut UninstallYouApp actionsArguments
fields:/u={xxx}
- Run
AssemblyInfo.tt
in youMyApp
project - Add
AssemblyInfo1.cs
in youMyApp
project, and remove oldAssemblyInfo.cs
- Add
AppVersionInfo.cs
in youInstallerDeployLib
project - Build
MyApp
project - Build
UnInstallDeployApp
project - Build
InstallerDeployLib
project library - Build
AppInstaller
to create msi setup - End! :)
MIT