Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
4104c622
Commit
4104c622
authored
Jul 19, 2004
by
Hans Leidekker
Committed by
Alexandre Julliard
Jul 19, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set VersionMsi property.
Accept a dot in a number value.
parent
ad4a00d3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
8 deletions
+13
-8
cond.y
dlls/msi/cond.y
+1
-1
msipriv.h
dlls/msi/msipriv.h
+3
-3
package.c
dlls/msi/package.c
+9
-4
No files found.
dlls/msi/cond.y
View file @
4104c622
...
...
@@ -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
==
'.'
)
);
}
...
...
dlls/msi/msipriv.h
View file @
4104c622
...
...
@@ -202,9 +202,9 @@ typedef struct tagMSIPACKAGE
#define MSIHANDLETYPE_RECORD 4
#define MSIHANDLETYPE_PACKAGE 5
#define MSI_MAJORVERSION
1
#define MSI_MINORVERSION
1
0
#define MSI_BUILDNUMBER
1029
#define MSI_MAJORVERSION
2
#define MSI_MINORVERSION 0
#define MSI_BUILDNUMBER
2600
#define GUID_SIZE 39
...
...
dlls/msi/package.c
View file @
4104c622
...
...
@@ -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
Privil
a
ged
Privil
e
ged
*/
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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment