H2Reg & Wise for
Windows Installer 4 Pro

Thanks to Tim Hitchings from Infragistics for these instructions on how to use Wise for Windows Installer 4.02 Professional Edition (http://www.wise.com), to install and uninstall Help2 help files using H2Reg.


  1. In the same location as your collection and help files install a h2Reg_CmdFile.ini file for each collection you are installing.
  2. In the same location install a copy of H2Reg.exe and H2Reg.ini.
  3. Using the 'MSI Script' section of Wise, chose the 'Execute Deferred' tab.
  4. After the 'InstallFiles' sequence item add an 'If NOT Installed' condition.
  5. In that 'If NOT Installed' condition block add an 'Execute Program From Destination' action.
  6. Set the actions' working directory to the location of H2Reg.exe and the EXE and Command Line to something like '[WORKDIR]H2Reg.exe -Q -R "cmdfile=H2Reg_YourProduct_HELP.ini"'
  7. Add an action for each ini file.
  8. To create a set of actions that will be called during the uninstall add a condition block prior to the 'RemoveFiles' sequence item.
  9. The condition should be 'REMOVE~="ALL"' which will cause the items inside the block to only be executed during an uninstall.
  10. Add the same type of actions as were created above for the installation.