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

Typical questions

Hello, how to add audio playback file automaticly during install?.

Manual:
I
1.•in the Files and Folders page add the audio file as a temporary file
2.•double-click the temporary file to show the Edit Temporary File dialog
3•in this dialog set the "Property" field to AI_AUDIOFILE_PATH
4.•go to the Custom Actions page
5•under InstallUISequence -> WelcomeDlg add a Play Audio File custom action
6•set the "Expression" field in the Custom Action Properties page to (Not Installed)
1-4 I've done.
But in InstallUISequence -> WelcomeDlg i cant add "Play Audio File", section is not available..

What am I doing wrong?
I do not quite understand, maybe you can tell in more detail..
Please. :)
Last edited by Ghostlamer on Fri Apr 23, 2010 4:12 pm, edited 4 times in total.
Ghostlamer
Posts: 18
Joined: Sun Apr 18, 2010 2:27 am

Re: How to add play audio file?

Ok, I figured out ....
Help no longer needed .. :)
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: How to add play audio file?

Hi,

This is a bug in the custom actions menu and it will be fixed in a future version. Thank you for bringing this to our attention. Please note that you can add the custom action earlier in InstallUISequence, for example under "FileCost". You can also add it as an UI custom action.

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

Re: Typical Questions

Hi again.
How to disable "next" button?, when all components are disabled.
And turn again, when any of the components will be enabled.
Image

Uploaded with ImageShack.us
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Typical Questions

Hello,

I am afraid this is not possible using the built-in feature selection control. You can create your own custom feature selection dialog to enable this, and use a control event on the button to disable it. Or you can try creating a custom action on the Next button that will display a message if no feature is marked for installation.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
Ghostlamer
Posts: 18
Joined: Sun Apr 18, 2010 2:27 am

Re: Typical Questions

Or you can try creating a custom action on the Next button that will display a message if no feature is marked for installation.
Can you tell more detail how to do it.
In the manual i not found this.

So far I'm just starting to understand this.

And second question.
How to make that folder is not installed if not selected a particular feature during the installation.

Example, \Test folder(which belongs to Feature №4) must be not installed, when Feature №1,№2,№3 is disabled in сustomize dialog.
Thanks.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Typical questions

Hello,
Can you tell more detail how to do it.
You can achieve this by doing the following:
- go to the dialogs page and select you dialog
- select the "Next" button
- select the "Published events" tab
- create a new Spawn Dialog published event and set it to spawn a new dialog
- a new dialog will appear in the dialog tree. Customize it to display something like "Please select at least one feature before pressing "Next"
- condition the published event to only run when the features are not selected
- also condition the NewDialog published event to only run when at least one feature is selected
Should you find any unfamiliar terms in my description, please refer to our user guide.

I am also attaching a sample project for your convenience, implementing the behavior you are requesting.

How to make that folder is not installed if not selected a particular feature during the installation.
Use the organization page to move components around and place them under the features which you want them to be installed with.
I strongly recommend you read our article on the organization page. Also, I recommend you read our tutorials to better prepare you for using advanced installer to deploy your applications.

Best regards,
Gabriel
Attachments
sampleselect.aip
(11.24 KiB) Downloaded 496 times
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
Ghostlamer
Posts: 18
Joined: Sun Apr 18, 2010 2:27 am

Re: Typical questions

Thanks for help.

Return to “Common Problems”