JHC Software
Posts: 17
Joined: Thu May 05, 2005 9:13 am

Disaply version number on dialogs

Is there a simple way to display a the applications version number in the installer dialogs?

Currently, I am editing the produced .msi file to modify the dialog titles to include [ProductVersion] beside [ProductName]. Really, I want to be able to setup Advanced Installer so it just does that (or something similar) for all projects I create without me having to perform this manual editing afterwards.

I thought there was some way to edit the dialog templates, but I coudn't find any way to add the [ProductName] into them.

Ideally, I'd like to modify the Welcome Message to include the product version in it.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

The dialog editor is only available for "Enterprise" type of projects. Create an "Enterprise" project and switch to "Dialog" page.

Click on the "Welcome..." text and add the [ProductVersion] property in the "Display" field from "Properties" list.

Hope this helps.

Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
JHC Software
Posts: 17
Joined: Thu May 05, 2005 9:13 am

I don't have an Enterprise Licence, only a Professional one. It's an expensive upgrade just to allow a simple edit of a dialog box.

I was hoping there was an existing way, even with the current dialogs, just to get the version number displayed somewhere.
JHC Software
Posts: 17
Joined: Thu May 05, 2005 9:13 am

In previous versions, you could edit the Template.msi file to tweak the existing dialogs, but there are no dialogs remaining in this file.

It looks like the recent "upgrades" have broken what I want to do?

Do I really need to get the Enterprise edition (double the cost of Professional) just to do some minor tweaks? Maybe there could be a very simple dialog editor put into the professional version to allow minor tweaks such as this to be done to the dialogs available in that version?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

For what you need you can use PseudoFormatted feature. Go "Product Details" page and in the "Product Name" (PseudoFormatted field) add this: [|ProductVersion]. PseudoFormatted fields are resolved at build time.

With this change the Product Version will appear on all dialogs that contain the [ProductName] property. I think this is exactly what you need.

Also for more details about PseudoFormatted fields please see:
http://www.advancedinstaller.com/user-g ... atted.html

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
JHC Software
Posts: 17
Joined: Thu May 05, 2005 9:13 am

Thanks Gigi, that's a nice feature I didn't know about, but it doesn't quite solve my problem.

The problem with doing that is, although the dialogs now display exactly as I want them, the [ProductName] used elsewhere now includes the version number, and I don't want that.

For example, the installation path, shorcut folder, and the entry in Add/Remove programs all now contain the version number. I only want the bare product name in these fields, so that when users perform upgrades they don't need to care about the version number (i.e., during installation it's displayed for information only to let them know which version they are about to install).
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

You can modify the "Application Folder" in the "Installer Parameters" page. And change the [ProductName] with your Product Name. Same for "Application Shortcut Folder". But this does not cover the Add/Remove list.

However you can manually modify the dictionary file of your package language. Open the .ail file (from AI working folder) and search for:

Code: Select all

<STRING id="Control.Text.WelcomeDlg#Title" value="Welcome to [ProductName] [Wizard]"/>
Replace with:

Code: Select all

<STRING id="Control.Text.WelcomeDlg#Title" value="Welcome to [ProductName] [ProductVersion] [Wizard]"/>
Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
JHC Software
Posts: 17
Joined: Thu May 05, 2005 9:13 am

Brilliant, that's exactly what I want. Now all my projects get the behaviour I want.

Many, many thanks, Gigi.

Return to “Common Problems”