Hi,

I am using the below code to open a file on the button click event.

    <CustomAction Id="LaunchHelp" ExeCommand='[ShellExec]
"[SourceDir]Installer_Help.mht"' BinaryKey="ShellExec" Execute="immediate"
Return="asyncNoWait" />

    <Binary Id="ShellExec" SourceFile="Binary\ShelExec.exe" />

I am using ShelExec.exe as binary id to open the .mht file. Currently I am
having the Installer_Help.mht file along with the msi (installer) file which
I would not like to do (deliver two files). 

I tried having Installer_Help.mht as binary id and using it with the custom
action modified as below but somehow the value of HelpRef is not reflected
and ShelExec gives an error with "Could not find 'HelpRef'"

    <CustomAction Id="LaunchHelp" ExeCommand='[ShellExec] "[HelpRef]"'
BinaryKey="ShellExec" Execute="immediate" Return="asyncNoWait" />

   <Binary Id="ShellExec" SourceFile="Binary\ShelExec.exe" />
   <Binary Id="HelpRef" SourceFile="Binary\Installer_Help.mht" />

Am I doing anything wrong or Is there a different way of doing this?


===
Bhavesh

-- 
View this message in context: 
http://www.nabble.com/Open-file-on-button-click-event-tf3948593.html#a11201877
Sent from the wix-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to