If you can't get a merge module (which would be the preferred solution, if the item is made available by the publisher), you can include an EXE with the installation and then execute it during your WiX install as a custom action.
From the excellent tutorial on WiX at Tramontana, here's a page on custom actions and how to set them up - you basically need to define a <CustomAction>
element in your WiX file and specify what to do when it's executed:
<CustomAction Id='LaunchFile' FileKey='FoobarEXE' ExeCommand='' Return='asyncNoWait' />
This will launch a file that you just installed as part of your app and that is referenced in your WiX script as FoobarEXE
.
<CustomAction Id='LaunchFile' BinaryKey='FoobarEXE' ExeCommand='' Return='asyncNoWait' />
This would reference a binary file (e.g. an EXE), that you included in your WiX installation package (MSI or CAB), but that's not been installed as part of the installation, and that's been extracted as a binary file.
Once you know what you'll do, you need to define when in the sequence of installation steps, this custom action should be executed:
<InstallExecuteSequence>
...
<Custom Action='LaunchFile' After='InstallFinalize'>NOT Installed</Custom>
</InstallExecuteSequence>
Here, the custom action called LaunchFile
will be executed after the installation has finalized, but only, if it was determined that the app had not been installed yet.
So, I guess, you should be able to do what you're striving to do with a Custom Action in WiX - see the WiX 2.0 documentation and Steven Bone's blog post series for additional info.
Hope this helps!
Marc