mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:41:12 +00:00
Set VersionMsi property.
Accept a dot in a number value.
This commit is contained in:
parent
ad4a00d35a
commit
4104c622af
3 changed files with 13 additions and 8 deletions
|
@ -506,7 +506,7 @@ static int COND_IsAlpha( WCHAR x )
|
|||
|
||||
static int COND_IsNumber( WCHAR x )
|
||||
{
|
||||
return( (( x >= '0' ) && ( x <= '9' )) || (x =='-') );
|
||||
return( (( x >= '0' ) && ( x <= '9' )) || (x =='-') || (x =='.') );
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -202,9 +202,9 @@ typedef struct tagMSIPACKAGE
|
|||
#define MSIHANDLETYPE_RECORD 4
|
||||
#define MSIHANDLETYPE_PACKAGE 5
|
||||
|
||||
#define MSI_MAJORVERSION 1
|
||||
#define MSI_MINORVERSION 10
|
||||
#define MSI_BUILDNUMBER 1029
|
||||
#define MSI_MAJORVERSION 2
|
||||
#define MSI_MINORVERSION 0
|
||||
#define MSI_BUILDNUMBER 2600
|
||||
|
||||
#define GUID_SIZE 39
|
||||
|
||||
|
|
|
@ -171,7 +171,7 @@ static VOID set_installer_properties(MSIPACKAGE *package)
|
|||
WCHAR pth[MAX_PATH];
|
||||
OSVERSIONINFOA OSVersion;
|
||||
DWORD verval;
|
||||
WCHAR verstr[10];
|
||||
WCHAR verstr[10], msiver[10];
|
||||
|
||||
static const WCHAR cszbs[]={'\\',0};
|
||||
static const WCHAR CFF[] =
|
||||
|
@ -211,7 +211,10 @@ static VOID set_installer_properties(MSIPACKAGE *package)
|
|||
{'S','e','r','v','i','c','e','P','a','c','k','L','e','v','e','l',0 };
|
||||
static const WCHAR szSix[] = {'6',0 };
|
||||
|
||||
/* these need to be dynamically descovered sometime */
|
||||
static const WCHAR szVersionMsi[] = { 'V','e','r','s','i','o','n','M','s','i',0 };
|
||||
static const WCHAR szFormat2[] = {'%','l','i','.','%','l','i',0};
|
||||
|
||||
/* these need to be dynamically discovered sometime */
|
||||
|
||||
static const WCHAR ProgramMenuFolder[] =
|
||||
{'P','r','o','g','r','a','m','M','e','n','u','F','o','l','d','e','r',0};
|
||||
|
@ -267,7 +270,6 @@ PhysicalMemory
|
|||
Intel
|
||||
ShellAdvSupport
|
||||
DefaultUIFont
|
||||
VersionMsi
|
||||
VersionDatabase
|
||||
PackagecodeChanging
|
||||
ProductState
|
||||
|
@ -279,7 +281,7 @@ ColorBits
|
|||
RedirectedDllSupport
|
||||
Time
|
||||
Date
|
||||
Privilaged
|
||||
Privileged
|
||||
*/
|
||||
|
||||
SHGetFolderPathW(NULL,CSIDL_PROGRAM_FILES_COMMON,NULL,0,pth);
|
||||
|
@ -349,6 +351,9 @@ Privilaged
|
|||
/* just fudge this */
|
||||
MSI_SetPropertyW(package,szSPL,szSix);
|
||||
|
||||
sprintfW( msiver, szFormat2, MSI_MAJORVERSION, MSI_MINORVERSION);
|
||||
MSI_SetPropertyW( package, szVersionMsi, msiver );
|
||||
|
||||
/* FIXME: these need to be set properly */
|
||||
|
||||
MSI_SetPropertyW(package,ProgramMenuFolder,PMFPath);
|
||||
|
|
Loading…
Reference in a new issue