|
|
#1 |
|
Junior Member
Join Date: Sep 2007
Posts: 1
|
play video after install
heyya
this is my first post and ive just about got to grips with the nsis syntax anyway, im using the modern_UI and after installation is complete i want to give a "play tutorial video?" option istead of the usual "run program" onto the questions: 1) i've tried putting !define MUI_FINISHPAGE_RUN "tutorial.avi" !define MUI_FINISHPAGE_RUN_TEXT "play Tutorial video?" with the rest of my interface settings, yet on the finish page the option to play the movie doesnt evan appear? i've also tried giving the full path to the tutorial video to no avail. 2) assuming the checkbox did appear would it be ok as it is, or would i have to write script to discover what the default player for .avi's are, and execute it in a shell? Thanks alot D.R |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
|
You probably need to use ExecShell, maybe something like:
Function runvid ExecShell "" "tutorial.avi" FunctionEnd ... !insertmacro MUI_PAGE_INSTFILES !define MUI_FINISHPAGE_RUN !define MUI_FINISHPAGE_RUN_FUNCTION runvid !define MUI_FINISHPAGE_RUN_TEXT "play Tutorial video?" !insertmacro MUI_PAGE_FINISH IntOp $PostCount $PostCount + 1 |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|