I'm trying to get several PDF's to open on the Finish button click on the 
featuretree.wxs.
I can execute the same custom actions during the InstallExecute sequence, and 
they work fine.

But when I move them to DoAction events on the Finish button, the command 
prompt window opens then immediately closes, and no PDF's are opened.
I can see the quotes around the filename, but the filename seems to be missing. 
Is this too late in the sequence to use the [#...] substitution?

Any ideas? I've tried using ShellExecute CA's, but with the same result.

<UI>

<Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" 
Value="SettingsDialog">1</Publish>

<Publish Dialog="ExitDialog" Control="Finish" Order="1" Event="DoAction" 
Value="DisplayDashboardPDF"><![CDATA[DISPLAYDASHBOARD = "1" AND NOT 
REMOVE]]></Publish>

<Publish Dialog="ExitDialog" Control="Finish" Order="2" Event="DoAction" 
Value="DisplayCalendarPDF"><![CDATA[DISPLAYCALENDAR = "1" AND NOT 
REMOVE]]></Publish>

<Publish Dialog="ExitDialog" Control="Finish" Order="3" Event="DoAction" 
Value="DisplayLibraryPDF"><![CDATA[DISPLAYLIBRARY = "1" AND NOT 
REMOVE]]></Publish>

</UI>

<CustomAction Id="DisplayLibraryPDF"

Directory="COMMONDOCS"

ExeCommand='"[SystemFolder]cmd.exe" /c "[#LibraryUserGuide.pdf]"'

Execute="immediate"

Impersonate="yes"

Return="asyncNoWait"/>

<CustomAction Id="DisplayCalendarPDF"

Directory="CALENDARDOCS"

ExeCommand='"[SystemFolder]cmd.exe" /c "[#CalendarUserGuide.pdf]"'

Execute="immediate"

Impersonate="yes"

Return="asyncNoWait" />

<CustomAction Id="DisplayDashboardPDF"

Directory="DASHBOARDDOCS"

ExeCommand='"[SystemFolder]cmd.exe" /c "[#DashboardUserGuide.pdf]"'

Execute="immediate"

Impersonate="yes"

Return="asyncNoWait" />



David Bartmess

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to