sLeX
15th March 2005 11:04 UTC
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 ?
glory_man
15th March 2005 11:22 UTC
1. Use GetDllVersion function (for example).
2. what do you mean
to write the Value onto my Welcomepage
?
sLeX
15th March 2005 12:22 UTC
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
glory_man
15th March 2005 12:45 UTC
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"
Davion
15th March 2005 12:47 UTC
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]