Ghostlamer
Posts: 18
Joined: Sun Apr 18, 2010 2:27 am

Feature for music files

Please add the ability to automatically play audio file immediately after launching .exe/.msi file without waiting beginning of the installation.
Thanks.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Feature for music files

Hi,

Please note that the User Guide contains the Play an Audio file how-to which may help you. You can schedule the play audio file custom action wherever you need.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Ghostlamer
Posts: 18
Joined: Sun Apr 18, 2010 2:27 am

Re: Feature for music files

I need to play audio automatically after program start, not after installation start, on the second page of the installer, what does the "Play an Audio file.

In order to play an audio file during the install process you can follow these steps:
in the Files and Folders page add the audio file as a temporary file
double-click the temporary file to show the Edit Temporary File dialog
in this dialog set the "Property" field to AI_AUDIOFILE_PATH
go to the Custom Actions page
under InstallUISequence -> WelcomeDlg add a Play Audio File custom action
set the "Expression" field in the Custom Action Properties page to (Not Installed)
Audio playback starts only after installation begin(Progress Dialog Page), not after program start (Welcome Dialog Page).
Or what i do wrong?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Feature for music files

Hi,

To start playing when "WelcomeDlg" dialog is shown you can simply move the custom action before "InstallUISequence" -> "WelcomeDlg", for example under "InstallUISequence" -> "FileCost". You can read more about standard action in this article.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Ghostlamer
Posts: 18
Joined: Sun Apr 18, 2010 2:27 am

Re: Feature for music files

To start playing when "WelcomeDlg" dialog is shown you can simply move the custom action before "InstallUISequence" -> "WelcomeDlg", for example under "InstallUISequence" -> "FileCost". You can read more about standard action in this article.
No, it does not work.
When i move "PlayAudioFile" under "FileCost" section, audio does not play at all on welcome screen.
I tried with other sections too, no result.
Audio played only if "PlayAudioFile" is under "WelcomeDlg", but starts playing on "VerfyReadyDlg" after pressing install button. :evil:

That's what I did:
http://img687.imageshack.us/i/37133855.jpg/

Used version:7.6.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Feature for music files

Hi,

It seems that temporary files are extracted after "CostFinalize". Try moving the custom action under "InstallUISequence" -> "MigrateFeatureStates". Also, make sure you set the AI_AUDIOFILE_UI to "Play" before the custom action and to "Stop" when you want it to stop. For example, you can set it to "Play" with a "Property set with Formatted" custom action before "PlayAudioFile" and to "Stop" after "InstallUISequence" -> "ExecuteAction".

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Ghostlamer
Posts: 18
Joined: Sun Apr 18, 2010 2:27 am

Re: Feature for music files

Thanks.
Last edited by Ghostlamer on Wed Apr 21, 2010 10:04 am, edited 1 time in total.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Feature for music files

Hi,

Please note that you can set it through a Property set with Formatted custom action like I mentioned in my previous post.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Ghostlamer
Posts: 18
Joined: Sun Apr 18, 2010 2:27 am

Re: Feature for music files

I`m stupid fool. :mrgreen:
I understood.. :)
Thank you very much.
jbapin
Posts: 1
Joined: Fri Jul 27, 2012 2:02 am

Re: Feature for music files

thank you :)
abdullayev007
Posts: 8
Joined: Sun Jul 29, 2012 9:41 am

Re: Feature for music files

Hi, I Tried this but didn't work. Setup starting and music playing 1 sec.. I want to play till the end of setup.
abdullayev007
Posts: 8
Joined: Sun Jul 29, 2012 9:41 am

Re: Feature for music files

Anyone can help me? I am using version of 9.3. Audio is playing only 1 second when setup start.
Attachments
adv.jpg
adv.jpg (260.1 KiB) Viewed 17796 times
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Feature for music files

Hello,

I'm not sure why you are encountering this behavior. Can you please set the AI_AUDIOFILE_UI property to "Play" before "PlayAudioFile" custom action and see if the behavior still reproduce? If so, can you please send us the .aip (project file), a verbose log of the installation and the related audio file to support at advancedinstaller dot com so we can investigate?

Go to "Custom Action" page and add a "Set Installer property" with sequence, scheduled before "PlayAudioFile" custom action, like this:
  • Property: AI_AUDIOFILE_UI
    Formatted: Play
All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
abdullayev007
Posts: 8
Joined: Sun Jul 29, 2012 9:41 am

Re: Feature for music files

Daniel.Radu wrote:Hello,

I'm not sure why you are encountering this behavior. Can you please set the AI_AUDIOFILE_UI property to "Play" before "PlayAudioFile" custom action and see if the behavior still reproduce? If so, can you please send us the .aip (project file), a verbose log of the installation and the related audio file to support at advancedinstaller dot com so we can investigate?

Go to "Custom Action" page and add a "Set Installer property" with sequence, scheduled before "PlayAudioFile" custom action, like this:
  • Property: AI_AUDIOFILE_UI
    Formatted: Play
All the best,
Daniel

yes, worked... i don't know why before it doesn't work...
I think problem was my project.
thank you very much.
abdullayev007
Posts: 8
Joined: Sun Jul 29, 2012 9:41 am

Re: Feature for music files

PS: In File and Folders page I SET the file property to "AI_AUDIOFILE_PATH" then it worked...

Return to “Building Installers”