I was struggling to understand the Nullsoft installer when I stumbled across Inno Setup, a seemingly simpler and equally free tool to build an installer. Cross-checking the Lounge, I found a post by Howard in which he said he used Inno Setup. I thought we could start a thread for those dissatisfied with the Package & Deploy Wizard which shows how to accomplish similar installations using Inno Setup.
So, I had a COM Add-in for Outlook. I could distribute the DLL, but it needed to be installed by the user either by using the deeply buried COM Add-ins dialog or by registering it with regsvr32. An installer seemed to be the answer. (My PDW is dysfunctional with a mix of Office XP Developer and Outlook 2003, so that was no longer an option. And it made absurdly large .cab files of 4.5MB just to install one little DLL.)
This is the entire script used to build the relatively small and completely self-contained installer in Inno Setup:
; -- Outlook_Attach.iss -- ; Created 26 Oct 2006 [Setup] AppName=C&F Add Attachment for Outlook 2003 AppVerName=C&F Add Attachment for Outlook 2003 ver 3.0.0.3 DefaultDirName={userappdata}MicrosoftAddInsCFAttach DisableProgramGroupPage=yes OutputDir=. [Files] Source: "jfsWDX03.DLL"; DestDir: "{app}"; Flags: regserver
Too cool!
My next project is to install a (non-global) Word template along with an OCX (the one with the DateTimePicker, from Office XP Developer Edition). Wish me luck.