Archive: exe version


exe version
Hi there,

1st question:

How can I read out a File´s version number and write it into the registry.

2nd question:

I know how to read out a registry entry. If those registry entries don´t exist, I want the Computer to do nothing, and if they do exist I want my Comupter to write the Value onto my Welcomepage ... Is there any possibility to do that ?


1. Use GetDllVersion function (for example).

2. what do you mean

to write the Value onto my Welcomepage
?

If the registy entry exist, I want the installer to read out it´s value,( This could be, for example, 4.0.1.6.)
and write it onto the welcome page


You can try this:


Var txt
!define MUI_WELCOMEPAGE_TEXT "$txt"

In .onInit function if registy entry don't exist:
StrCpy $txt "Your text"

if exist:
StrCpy $txt "Your text\r\n\r\nVersion: $versionVar"

You have to Read the Value in the OnInit Function to have it at the beginning.

Im not fully sure how to write it on the Welcome page, maybe it works with a variable program-name

[EDIT]
^^ Looks like I were too slow ;)

Greetz Dave
[/EDIT]