Hagi Adrian
Posts: 3
Joined: Fri Jan 20, 2017 9:08 pm

Music Switcher button (ON/OFF)

Hi , I want to make a music enabler and disabler button
like this
Image
Eusebiu
Posts: 4931
Joined: Wed Nov 14, 2012 2:04 pm

Re: Music Switcher button (ON/OFF)

Hi and welcome to Advanced Installer forums.

In order to achieve this you can follow the steps from the "How to play an audio file during install" tutorial. Can you try it and see if it works for you?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Hagi Adrian
Posts: 3
Joined: Fri Jan 20, 2017 9:08 pm

Re: Music Switcher button (ON/OFF)

it work
but if I clicked twice
it start again with the first one in the same time
it's annoying
Eusebiu
Posts: 4931
Joined: Wed Nov 14, 2012 2:04 pm

Re: Music Switcher button (ON/OFF)

Hi,

I'm glad it worked.

In order to block it from starting again when the "Play" button is clicked twice, you can set the following condition for the "Play audio file" published event: AI_AUDIOFILE_UI = "Stop"

In this case, the "AI_AUDIOFILE_UI" property should be set to "Stop" before the "Play" button is pressed, so the music will start only if it is stopped.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
scofficial
Posts: 1
Joined: Fri Apr 19, 2019 10:08 am

Re: Music Switcher button (ON/OFF)

Eusebiu wrote: Wed Jan 25, 2017 11:35 am Hi and welcome to Advanced Installer forums.

In order to achieve this you can follow the steps from the "How to play an audio file during install" tutorial. Can you try it and see if it works for you?

Best regards,
Eusebiu
That Worked for me , i used soundcloud to mp3 320 for the same .
i am happy :)
Last edited by scofficial on Mon Aug 05, 2019 2:05 pm, edited 2 times in total.
Catalin
Posts: 6585
Joined: Wed Jun 13, 2018 7:49 am

Re: Music Switcher button (ON/OFF)

Hello and welcome to our forums,

I am glad the above solution worked well for you.

Just let us know if there is anything else we could help you with.

All the best,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”