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!

Picollo
Posts: 2
Joined: Fri Feb 09, 2007 10:23 am

Displaying fileversion of service to be installed.

I'm using the Enterprise version to create an installer for some services.

I have a setup dialog for each service to edit some Registry settings.
I would like to display the file version of the service along with it's
date on the dialog.

Any way to get those information onto a dialog?

And would it be possible to get that version number as description on the
service install?

All The Best!
Picollo
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Picollo,

I'm afraid that Windows Installer does not offer directly support to do that. You need to write your own custom action to achieve that.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
Picollo
Posts: 2
Joined: Fri Feb 09, 2007 10:23 am

That seems to be the only course of action then...

Any idea how I would achieve that?

Best regards
Picollo
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Picollo,

Here is a VBS to get the version from a file:

Code: Select all

Set objFS = CreateObject("Scripting.FileSystemObject")
Session.Property("VERSION") = objFS.GetFileVersion("c:\windows\system32\scrrun.dll")
MsgBox Session.Property("VERSION")
The result is stored in the VERSION property.

Hope this helps.

Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”