There is a topic in the WiX SDK called How To: Run the Installed Application After Setup that could be used to launch the readme.txt
if you just wanted to do that.
If you really don't want that user experience, I would recommend using the WixShellExec
custom action to launch the readme.txt
instead of trying to launch Notepad.exe. That way the readme.txt
will open in the user's default .txt editor. You can do that by:
<Property Id="WixShellExecTarget" Value="[#FileIdForReadMe.txt]" />
<CustomAction Id="LaunchFile"
BinaryKey="WixCA"
DllEntry="WixShellExec"
Impersonate="yes" />
<InstallExecuteSequence>
<Custom Action='LaunchFile' After='InstallFinalize'>NOT Installed</Custom>
</InstallExecuteSequence>