Old 14th February 2011, 15:45   #1
herdell
Junior Member
 
Join Date: Sep 2010
Posts: 19
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.
herdell is offline   Reply With Quote
Old 15th February 2011, 14:30   #2
jiake
Senior Member
 
jiake's Avatar
 
Join Date: Oct 2007
Location: Xi'an, China
Posts: 206
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.

Born in: Xi'an, China
Live in: Shanghai, China
Name: 賈可(zh-Hant, trad.), 贾可(zh-Hans, simp.), Jia Ke (Pinyin).
Email: jiake@vip.qq.com
QQ: 137729898
jiake is offline   Reply With Quote
Old 16th February 2011, 11:22   #3
herdell
Junior Member
 
Join Date: Sep 2010
Posts: 19
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
herdell is offline   Reply With Quote
Old 16th February 2011, 14:23   #4
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,917
@herdell: see my plugin nsisweb


* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with MATE.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with MATE.
Joel is offline   Reply With Quote
Old 16th February 2011, 19:04   #5
herdell
Junior Member
 
Join Date: Sep 2010
Posts: 19
Quote:
Originally Posted by Joel View Post
@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.
herdell is offline   Reply With Quote
Old 17th February 2011, 02:12   #6
jiake
Senior Member
 
jiake's Avatar
 
Join Date: Oct 2007
Location: Xi'an, China
Posts: 206
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

Born in: Xi'an, China
Live in: Shanghai, China
Name: 賈可(zh-Hant, trad.), 贾可(zh-Hans, simp.), Jia Ke (Pinyin).
Email: jiake@vip.qq.com
QQ: 137729898
jiake is offline   Reply With Quote
Old 17th February 2011, 13:40   #7
herdell
Junior Member
 
Join Date: Sep 2010
Posts: 19
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.
herdell is offline   Reply With Quote
Old 18th February 2011, 00:51   #8
jiake
Senior Member
 
jiake's Avatar
 
Join Date: Oct 2007
Location: Xi'an, China
Posts: 206
Modify a UI file to fit your flash, and use a Timer to close the main window after seconds.

Born in: Xi'an, China
Live in: Shanghai, China
Name: 賈可(zh-Hant, trad.), 贾可(zh-Hans, simp.), Jia Ke (Pinyin).
Email: jiake@vip.qq.com
QQ: 137729898
jiake is offline   Reply With Quote
Old 18th February 2011, 10:27   #9
herdell
Junior Member
 
Join Date: Sep 2010
Posts: 19
I tried but the window still opened.
Nothing to autoclose the window works here.
herdell is offline   Reply With Quote
Old 18th February 2011, 10:32   #10
Highcoder
Member
 
Join Date: Jan 2011
Posts: 69
What do you have tried?
Highcoder is offline   Reply With Quote
Old 18th February 2011, 13:11   #11
herdell
Junior Member
 
Join Date: Sep 2010
Posts: 19
I tried to use AutoCloseWindow, but doesn't work.
herdell is offline   Reply With Quote
Old 18th February 2011, 13:49   #12
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Quit?

Stu
Afrow UK is offline   Reply With Quote
Old 18th February 2011, 14:18   #13
jiake
Senior Member
 
jiake's Avatar
 
Join Date: Oct 2007
Location: Xi'an, China
Posts: 206
The above file in mediafile has been deleted, I have uploaded new examples that will close automatically.
http://www.mediafire.com/?dvxo0jrf183updu

Born in: Xi'an, China
Live in: Shanghai, China
Name: 賈可(zh-Hant, trad.), 贾可(zh-Hans, simp.), Jia Ke (Pinyin).
Email: jiake@vip.qq.com
QQ: 137729898
jiake is offline   Reply With Quote
Old 19th February 2011, 00:08   #14
herdell
Junior Member
 
Join Date: Sep 2010
Posts: 19
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.
herdell 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