knowledge-database (beta)

Current group: jrsoftware.innosetup

Re: How do i set VersionInfo?

Re: How do i set VersionInfo?  
A Patrick
From:A Patrick
Subject:Re: How do i set VersionInfo?
Date:Wed, 15 Dec 2004 09:05 +0000 (GMT Standard Time)
In my .iss I have things like this to automatically set them from the
properties of the main application file:

[Setup]
; Get Setup.exe version info from application file
#define GetFileProductName(str FileName) GetStringFileInfo(FileName,
PRODUCT_NAME)
#define AppFileName "d:\APVFP\MO\mo.exe"
#define MyAppVersion GetFileVersion( AppFileName )
#define MyAppPublisher GetFileCompany( AppFileName )
#define MyAppCopyright GetFileCopyright(AppFileName )
#define MyAppDescription GetFileDescription(AppFileName)
#define MyAppProductName GetFileProductName(AppFileName)
;Install information
AppName={#MyAppProductName}
AppVerName={#MyAppDescription} V{#MyAppVersion}
UninstallDisplayName=TMS {#MyAppDescription}
UninstallDisplayIcon={app}\mo.exe
;
; Get Setup.exe version info from application file
VersionInfoCompany={#MyAppPublisher}
VersionInfoDescription=Install {#MyAppDescription}
VersionInfoVersion={#MyAppVersion}
;
; Get Uninstall info from application file
AppCopyright={#MyAppCopyright}
AppPublisher={#MyAppPublisher}
AppVersion={#MyAppVersion}
AppComments={#MyAppDescription}


Andy
   

Copyright © 2006 knowledge-database   -   All rights reserved