- Setup and Deployment project types do not cover all scenarios - then create custom installer, using Installer class.
- Such custom insallers can then be used as part of S&D proj., or installed ~ InstallUtil.exe
Using Base Installer
- 1) derive class from base Installer.
- 2) Override Install, Comit, Rollback, Uninstall mthds.
- 3) Add RunInstallerAttribute to derived class, and set runInstaller param to true.
- 4) Put derived class in assm with app to install.
- 5) Invoke installers - i) InstallUtil.exe, ii) AssemblyInstaller/ComponentInstaller for programtic equiv.
- 6) InstallEventHandler delegate - to facilitate Commit - wire-up Committing, Committed events in constructor.
- 7) Installers property - ret. an instance of InstallerCollection. Can add mult. installers to a single assm. - mult. installers that do mult. things.
No comments:
Post a Comment