- NSIS Discussion
- Flash Player in nsis?
Archive: Flash Player in nsis?
herdell
14th February 2011 16:45 UTC
Flash Player in nsis?
Anyawy to call Flash Player in a nsis script?
Video works, but I never saw nothing about flash objects like .swf files.
I mean: play a swf file in a nsis script using flash player installed in pc.
With Atutoit there's a way to do this, but I want in nsis.
jiake
15th February 2011 15:30 UTC
Try FlashLib, FireCtrl, WaterCtrl DLLs. They are all developed for Inno by "ResTools", and can be used in NSIS by System plugin.
See also:
http://wenku.baidu.com/view/fb800d6b...ffe47acbd.html
NSIS 2.44 Enhanced Edition (CHS)
http://www.qiannao.com/space/show/dr...etup.exe/.page
Note that there is a green "download" icon on the left of each download link.
Install it and you can find an example in %NSISDIR%\Examples\FlashLib.
Developter's blog: Examples for using FireCtrl or WaterCtrl in inno:
http://restools.hanzify.org/article.asp?id=80
http://restools.hanzify.org/article.asp?id=81
Using in NSIS:
http://www.dreams8.com/thread-5909-1-1.html
http://hi.baidu.com/lyltim/blog/item...552664f9b.html
Or you can search in Google for more, the pages are almost Chinese, but you can find the script.
herdell
16th February 2011 12:22 UTC
Ok, i've found the script and the flashlib.dll, but now I need some help. The original script show up the flash animation in the left bitmap of nsis installer. I wanna edit the script to show the animation in their own window, like a splash, and hide the other pages of the installer. After show the animation, would the nice if the script autoclose.
In the link below I uploaded the script and the plugin (FlashLib.dll) and an axemple made in AutoIt of what I wanna do in NSIS.
I really tried to edit the nsis script but I can't. I'm a noob in nsis yet.
Link:
http://www.mediafire.com/?ab8dbxbkul4eua1
Joel
16th February 2011 15:23 UTC
@herdell: see my plugin nsisweb
herdell
16th February 2011 20:04 UTC
Originally posted by Joel
@herdell: see my plugin nsisweb
What? Your plugin can play flash player objects?
But I really don't know how. :( I'm not a expert user.
jiake
17th February 2011 03:12 UTC
To use nsWeb you must have a webpage for a Flash, so I thought the FlashLib is better.
I have modified your script to show an SWF on a single custom page or on whole page.
See the attachment: http://www.mediafire.com/?vk444nzrtcowcwc
herdell
17th February 2011 14:40 UTC
Your script 'swf_Full.nsi' is great. But I really need that it auto close the window/process after play the animation once. I tried to set: AutoCloseWindow and SetAutoClose but none works. Also tried Killprocess, but it kill the process before animation start.
Please help.
jiake
18th February 2011 01:51 UTC
Modify a UI file to fit your flash, and use a Timer to close the main window after seconds.
herdell
18th February 2011 11:27 UTC
I tried but the window still opened.
Nothing to autoclose the window works here.
Highcoder
18th February 2011 11:32 UTC
What do you have tried?
herdell
18th February 2011 14:11 UTC
I tried to use AutoCloseWindow, but doesn't work.
Afrow UK
18th February 2011 14:49 UTC
Quit?
Stu
jiake
18th February 2011 15:18 UTC
The above file in mediafile has been deleted, I have uploaded new examples that will close automatically.
http://www.mediafire.com/?dvxo0jrf183updu
herdell
19th February 2011 01:08 UTC
thx a lot. now works fine. unfortunatelly there's no way to get the window transparent, right?
will be awesome if is possible show only the swf, without background. I have a swf with transparency here.