Skip to content

ClnViewer/.NET-Installer-class-RollBar-deploy

Repository files navigation

.NET Installer class + RollBar deploy

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

Location:

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

Modifying all projects:

  1. Edit AssemblyInfo.tt and modify you RollBar Id and other assembly MyApp settings
  2. Insert in AppInstaller project, all CustomActionData fields: /xTargetDir="[TARGETDIR]\"
  3. Insert in AppInstaller project, shortcut UninstallYouApp actions Arguments fields: /u={xxx}
  4. Run AssemblyInfo.tt in you MyApp project
  5. Add AssemblyInfo1.cs in you MyApp project, and remove old AssemblyInfo.cs
  6. Add AppVersionInfo.cs in you InstallerDeployLib project
  7. Build MyApp project
  8. Build UnInstallDeployApp project
  9. Build InstallerDeployLib project library
  10. Build AppInstaller to create msi setup
  11. End! :)

License

MIT

Releases

No releases published

Packages

No packages published

Languages