play audio file immediately after launching the installer's .exe - Advanced Installer Community
Jacob Darka
Posts: 23
Joined: Mon Jun 24, 2019 7:26 pm

play audio file immediately after launching the installer's .exe

Hello

just like in the title, I want the installer to start playing an audio file from the moment that it starts, without pressing any buttons, immediately after launching it; I tried many times to add a custom action to do so, and followed this guide: How to play an audio file during install, many others too on this forum...

but sadly, I couldn't get it work as intended, so how could I do that? or that's not available yet?

thanks in advance.
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: play audio file immediately after launching the installer's .exe

Hello Jacob and welcome to Advanced Installer forums,

I have tested the custom action and everything worked as expected.

For your reference, I have attached a sample project (.ZIP containing the .AIP file and the audio file - MP3) in which I have implemented the custom action:
Jacob Sample.zip
(747.03 KiB) Downloaded 318 times
Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Jacob Darka
Posts: 23
Joined: Mon Jun 24, 2019 7:26 pm

Re: play audio file immediately after launching the installer's .exe

firstly thanks for replying Catalin,

no tutorial said that I must add the custom action under "Paths Resolution"! :x even the official tutorial mentioned that to add it under "User Selection".
so yes, it now works just fine! thank you a lot for it Catalin, I spent days looking for a fix & looking what did I may do wrong to not get it to work.

I really appreciate your help🌹
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: play audio file immediately after launching the installer's .exe

You are always welcome, Jacob.

I am really glad I could help.

Just let me know if you have any other questions and I will be glad to assist.

Best regards,
Catalin
:D
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Jacob Darka
Posts: 23
Joined: Mon Jun 24, 2019 7:26 pm

Disable install button if the user didn't select an installation path

Hello again!

I got another small question, but I don't know if I'm supposed to create another topic for it or no
if I'm supposed to, just say the word and I'll open the topic!

but here it is anyway:
how to disable the install button if the user didn't [modify "path edit"//select an installation path]?

thanks in advance.
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: play audio file immediately after launching the installer's .exe

Hello Jacob,
if I'm supposed to, just say the word and I'll open the topic!
Don't worry, it is fine like this as well, you don't need to create a new topic.

In what regards your question, I am not quite sure I understand the scenario.

From what I understand, you want to force the user to choose another path than the default one?

For instance, let's say the default path is set to:

C:\Folder1\

You want to disable the "Install" button if the user does not change that default path (by the way, the default path can be found in "Install Parameters" page --> "Application Folder:" field)

If that is the case, we can proceed as it follows:

1. First of all, the property that stores the value of the "Path Edit" is named APPDIR

2. We can retrieve the default value of the APPDIR property by running the setup once and, during the "FolderDlg", we can copy its default value. For instance, the default value in a newly created project will look like this:

C:\Program Files (x86)\Your Company\Your Application\

3. After doing so, we can create a control condition which will disable the Install button if the APPDIR is equal to that default value (if the user did not modify its value)

4. To do so, we can proceed as it follows:

- open your project and go to "Dialogs" page.

- from the dialogs list, please select the "VerifyReadyDlg" dialog.

- click on the "Instlal" button

- select the "Control Conditions" tab and create a new control condition ("New..." button) like it follows:

Condition: APPDIR = "C:\Program Files (x86)\Your Company\Your Application\"
Action: Disable

Capture.PNG
Capture.PNG (95.1 KiB) Viewed 5353 times
Hope this helps.

If this is not what you meant, please give me some more details so I can further assist you.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Jacob Darka
Posts: 23
Joined: Mon Jun 24, 2019 7:26 pm

Re: play audio file immediately after launching the installer's .exe

it worked well!
In what regards your question, I am not quite sure I understand the scenario.
Actually you understood the scenario even better than I did in the first place :lol:
also I want to add something that might be helpful...
btw I'm using the surface theme
---------------
- after creating the first "Control Conditions", create another with the following values

Condition: APPDIR <> "C:\Program Files (x86)\Your Company\Your Application\"
Action: Enable


by adding this second "Control Conditions", now when the user chooses a different path than the default path, the install button will become automatically available.
---------------

in the end, again many thanks for it Catalin!
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: play audio file immediately after launching the installer's .exe

You are always welcome, Jacob.
:D

I am glad I could help.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”