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!

SteveTheBeez
Posts: 7
Joined: Thu Nov 01, 2007 10:48 am

Custom actions help

Hello all :)

I have recently purchased Advnced Installer Professional and think its excellant but my only complaint is the documentation, I find it hard to follow and why is there no full printable manual??

Anyway I need help building an installer. It is for auto installing printers on our network. I have all the components and files to do it but i am having trouble figuring out how to install diferent features i.e choosing which printer and getting it to only install the files needed.

I am using RUNDLL32 PRINTUI.DLL to install drivers, printer and port.

Here are screenshots of my Organizations and Custom Actions:



Image

Image

ITPort, ItDriver and ITInst are for one printer in that order and the same for the CS.

Can anyone help me on how to get these to install depending on what is selected at the start of the installer. Thanks in advance for any answers.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

This can be done by using the "SetupTypeDlg" dialog in the "Dialogs" page. The dialog will allow the user to select the "Custom installation" option and he will be able to select which features will be installed.
Can anyone help me on how to get these to install depending on what is selected at the start of the installer.
The install level of a feature cannot be changed from the UI because it is executed to late. The InstallLevel property is set under "CostFinalize" standard action which is executed before the user can choose which feature he wants installed.

However, this can be done by using a custom action. There is a similar discussion on the forum, please take a look:
http://www.advancedinstaller.com/forums ... al+feature

Please note that for this method you need to create a custom dialog or modify an existing one in the "Dialogs" page. The Dialog Editor feature that allows you to do this is available only in Enterprise projects that need an Enterprise license.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
SteveTheBeez
Posts: 7
Joined: Thu Nov 01, 2007 10:48 am

So are you saying it is not possible to do this unless I have the enterprise Edition?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

The "Dialogs" page is available for Professional, Java and Enterprise projects, therefore you can use the "SetupTypeDlg" dialog which allows the user to choose which features will be installed. The "SetupTypeDlg" dialog can be added by using the "Add Dialog" button in the toolbar.

You can read more about this here:
http://www.advancedinstaller.com/user-g ... alogs.html

The "Dialog Editor" feature which allows you to modify existing dialogs or create new custom ones is available only for an Enterprise project. You can read more about this feature here:
http://www.advancedinstaller.com/user-g ... ditor.html

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
SteveTheBeez
Posts: 7
Joined: Thu Nov 01, 2007 10:48 am

Im sorry but i can just not figure out how to get the installer to install the printers 3 files when a custom install is selected. Iv tried setting different fearure levels and going through the links you have posted. Coul you please go through how you connect the custom actions to the specific custom install options.

:?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Here are the steps to do this:
- you have the three features: MainFeature, IT_Laser and HP-Laser_CS
- in the "Feature Properties" page you set the "Identifier" field for each feature (the identifiers will be MainFeature, IT_Laser and HP-Laser_CS)
- in the "Dialogs" page you add the "SetupTypeDlg" dialog
- you build and run the project
- in the "Choose Setup Type" dialog you select the "Custom" option
- now you can select which features will be installed by clicking on them and selecting the appropriate option

Please note that for each feature you can set the "Install Level" (0 - will not be installed, 1 - typical installation, 4 - complete installation).
Coul you please go through how you connect the custom actions to the specific custom install options
As I mentioned in my previous posts, you cannot use the custom actions method because it uses a custom dialog (this is not possible in a Professional project).

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
SteveTheBeez
Posts: 7
Joined: Thu Nov 01, 2007 10:48 am

Thanks for the help. Just about got it working.

Return to “Common Problems”