CommandLinkButton installation - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Elwin
Posts: 23
Joined: Fri Nov 18, 2011 2:48 pm
Location: The Netherlands
Contact: Website

CommandLinkButton installation

Hello,

how can i create a installation with CommandLinkButtons?

this is wat i want:
i have 4 applications e.g A, B, C and D
and 3 CommandLinkButtons named: Client, Server and Custom.

i want that if you click on Cliënt, application A+B will install and if you clicked on Server, application C+D will install.
Cliënt= A+B
Server+ C+D
Custom= you can choose with checkboxes (already done)

i hope you can help me!

Kind regards,
Elwin
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: CommandLinkButton installation

Hi,

Sorry for the late reply, we must have missed your original post.

Since you have already implemented the solution with checkboxes, as you've said above, using command link buttons is very simple. You will need to add a simple level of indirection, by settings a new public property with two values, based on the button which is pressed. So let's say the property's name is "MY_APPS", if the user presses "Client" button than the property it is set to "1", if it presses "Server" the property its set to "2", using a "SetProperty" event, as explained here:
http://www.advancedinstaller.com/user-g ... perty.html

Now, all you need to do is to append this property in the condition you were already using for the custom install.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Elwin
Posts: 23
Joined: Fri Nov 18, 2011 2:48 pm
Location: The Netherlands
Contact: Website

Re: CommandLinkButton installation

Hi Bogdan,

I don't get it :(
sorry I'm so stupid!
can you be more specific?

Kind regards,
Elwin
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: CommandLinkButton installation

Hi Elwin,

Can you please attach the aip file that you've created, the one that handles the installation with checkboxes? So I can give you more precise indications based on your current configuration.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Elwin
Posts: 23
Joined: Fri Nov 18, 2011 2:48 pm
Location: The Netherlands
Contact: Website

Re: CommandLinkButton installation

Hello Bogdan,

here is the aip file:
OEE Toolkit.aip
(105.84 KiB) Downloaded 296 times
the FeatureSelectionDlg is the dialog with the checkboxes.
the SetupTypeDlg is the dialog with the CommandLinkButtons.

in the FeatureSelectionDlg you see Cliënt and Server, with some applications.
That appliactions must me installed with CommandLinkButtons as you see on the SetupTypeDlg.

I hope you can help me.

Kind regards
Elwin.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: CommandLinkButton installation

Hi Elwin,

Unfortunately we cannot open the attached .AIP edited with version 8.8.1.

We are getting the following error:
Malformed control tab-order on dialog: "FeatureSelectionDlg".

Have you tried to manually modify the .AIP?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Elwin
Posts: 23
Joined: Fri Nov 18, 2011 2:48 pm
Location: The Netherlands
Contact: Website

Re: CommandLinkButton installation

Hello Mihai,
mihai.petcu wrote: Have you tried to manually modify the .AIP?
No i haven't tried..
i am using version: 8.8.1

i have tried something, i hope that this version works.
OEE Toolkit.aip
(98.03 KiB) Downloaded 322 times
Kind regards,
Elwin
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: CommandLinkButton installation

Hi Elwin,

We were able to open the last .AIP you attached.

I am assuming each of your application is organized into a feature. In this case you can mark each of the features not to be installed by default.
After doing this, you can easily set a couple of "AddLocal" published events for each of your command link buttons. Here's the user guide reference for "AddLocal".

This way when the user presses the command link button, its assigned events will be published, thus marking the features to be installed.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Elwin
Posts: 23
Joined: Fri Nov 18, 2011 2:48 pm
Location: The Netherlands
Contact: Website

Re: CommandLinkButton installation

Hello,

that was easy!
thanks for the good help :D

Kind regards,
Elwin
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: CommandLinkButton installation

You're welcome Elwin, glad to help ;)

Return to “Common Problems”