User Interface and DLL Registration Questions - 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!

WISE2MSI
Posts: 11
Joined: Mon Mar 17, 2008 4:43 pm

User Interface and DLL Registration Questions

Hello,

Several questions :

1). In the Dialogs section, there are many screens and popup boxes (>30). Is there a way to "expand all" without having to drill down and expand each individually? If not, this would be a useful feature for inclusion in a later version of AI?
2). I want to dispaly different bitmaps (for my UI screen backgrounds) based on custom questions I ask in the interface before the main installation starts. Whats the best way to achieve this?
3). I want to include and register different DLL's based on the Windows Version, i.e XP, NT, 2K etc...again whats the best way to achieve this?
4). Is there a completely silent install option?
5). When you first click on the .MSI file, a "Preparing to install" dialog box pops up. Is this configurable? Also some messages flash up over the top of my first custom UI screen. They dissapear very quickly and I cannot really see what they all say but, one of them is to do with "Computing Space requirments". How do you remove or hide these?

Many thanks.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: User Interface and DLL Registration Questions

Hi,
1). In the Dialogs section, there are many screens and popup boxes (>30). Is there a way to "expand all" without having to drill down and expand each individually?
I'm afraid that this is not supported by Advanced Installer. Also, it cannot be implemented because of the algorithm used to generate the screens.
2). I want to dispaly different bitmaps (for my UI screen backgrounds) based on custom questions I ask in the interface before the main installation starts. Whats the best way to achieve this?
This can be done by adding the bitmaps one over another and using control conditions to determine which will be shown. For example, if the user sets the TEST property to "true" you can have this scenario:
- add the two possible bitmaps you can show one over another
- select the first bitmap (you can use the combo in the "Properties" pane) and select the "Control Conditions" tab
- add these control conditions:

Code: Select all

TEST="true"        Show
TEST<>"true"       Hide
- select the second bitmap and add these control conditions:

Code: Select all

TEST<>"true"        Show
TEST="true"       Hide
This way, if the TEST property is set to "true" the first bitmap is shown, otherwise, the second bitmap is visible.
3). I want to include and register different DLL's based on the Windows Version, i.e XP, NT, 2K etc...again whats the best way to achieve this?
This can be done by conditioning the installation of the components of the DLLs with the VersionNT property. For example, if the component of a DLL has the condition "VersionNT=501" then the DLL will be installed ionly on XP.

Since a DLL cannot be registered if it is not installed, you can mark all the conditional DLLs for registration.
4). Is there a completely silent install option?
I'm afraid that this is not supported by Windows Installer. The only option offered by Microsoft is to set the LIMITUI property in order to obtain an installation with basic UI. This property is automatically set by Advanced Installer if you check the "Limit to basic user interface (simple progress and error handling)" option in the Install Parameters page.
5). When you first click on the .MSI file, a "Preparing to install" dialog box pops up. Is this configurable?
If you are referring to customizing the dialog, it can be done by using the dialog editor feature. However, if you are referring to the removal of this dialog, please note that this is not permitted by Windows Installer. Note that any MSI package must include the mandatory installation dialogs.
Also some messages flash up over the top of my first custom UI screen. They dissapear very quickly and I cannot really see what they all say but, one of them is to do with "Computing Space requirments". How do you remove or hide these?
These messages can be removed by using the dialog editor feature. For this, you select the "PrepareDlg" dialog in the "Dialogs" page and remove the "ActionText" and "ActionData" controls (you can use the combo in the properties pane to select them).

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
WISE2MSI
Posts: 11
Joined: Mon Mar 17, 2008 4:43 pm

Re: User Interface and DLL Registration Questions

Many thanks.

I'll give these a try and let you know.
WISE2MSI
Posts: 11
Joined: Mon Mar 17, 2008 4:43 pm

Re: User Interface and DLL Registration Questions

Hello,

1 : Ok...fair enough
2: Yes this works
3 : The DLL's I want to register are in the windows volume\windows\system under files and folders. The trouble is I have several DLL's with the same name but different versions for NT and XT such as ATL.DLL. I can see how the component condition works, no problem, but how do I overcome this problem? It would be good to have the NT / XP versions split out into sub folders under system, but how can I make them register as if they were just in system depending in whether the target machine is XP or NT?
4. Ok...fair enough
5. Yes this works.
6. New question : In Prerequisites, the Windows Installer Minimum Version has drop down values of 2.0, 3.0, 3.01 and 4.0, however the version installed on machine is 3.1 according to add / remove programs Microsoft KB893803. Setting it to 3.01 allows it through on my machine, but 4.0 fails. Does 3.01 mean 3.1?

Many thanks for the rapid help.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: User Interface and DLL Registration Questions

Hi,
The DLL's I want to register are in the windows volume\windows\system under files and folders. The trouble is I have several DLL's with the same name but different versions for NT and XT such as ATL.DLL.
For each duplicate DLL you can create a subfolder under the System folder. These subfolders can use the Install folder content into the parent folder option to make sure that the DLLs are installed into the System folder. Also, with this option set, the subfolders which contain the DLL files will not be created.
Setting it to 3.01 allows it through on my machine, but 4.0 fails. Does 3.01 mean 3.1?
Yes, Windows Installer 3.1 (as shown in "Add or Remove Programs") is actually Windows Installer 3.01. We are not sure why Microsoft did this, but the actual version of Windows Installer 3.1 is 3.01.4000.1823 (you can check this by running "msiexec" in the command line).

At first the launch condition used 3.1, but it didn't work. After some investigations, we found that Windows Installer returned 3.01, therefore we modified the launch condition.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”