Old 16th September 2007, 01:19   #1
dead.rabit
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
dead.rabit is offline   Reply With Quote
Old 16th September 2007, 15:32   #2
Anders
Moderator
 
Anders's Avatar
 
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
Anders is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump