Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
b8e0b3c1
Commit
b8e0b3c1
authored
May 29, 2007
by
James Hawkins
Committed by
Alexandre Julliard
May 30, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Set the MsiNTProductType property.
parent
44649d2f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
package.c
dlls/msi/package.c
+6
-3
No files found.
dlls/msi/package.c
View file @
b8e0b3c1
...
...
@@ -215,7 +215,7 @@ static VOID set_installer_properties(MSIPACKAGE *package)
{
WCHAR
pth
[
MAX_PATH
];
WCHAR
*
ptr
;
OSVERSIONINFO
A
OSVersion
;
OSVERSIONINFO
EXW
OSVersion
;
MEMORYSTATUSEX
msex
;
DWORD
verval
;
WCHAR
verstr
[
10
],
bufstr
[
20
];
...
...
@@ -277,6 +277,7 @@ static VOID set_installer_properties(MSIPACKAGE *package)
{
'1'
,
0
};
static
const
WCHAR
v9x
[]
=
{
'V'
,
'e'
,
'r'
,
's'
,
'i'
,
'o'
,
'n'
,
'9'
,
'X'
,
0
};
static
const
WCHAR
vNT
[]
=
{
'V'
,
'e'
,
'r'
,
's'
,
'i'
,
'o'
,
'n'
,
'N'
,
'T'
,
0
};
static
const
WCHAR
szMsiNTProductType
[]
=
{
'M'
,
's'
,
'i'
,
'N'
,
'T'
,
'P'
,
'r'
,
'o'
,
'd'
,
'u'
,
'c'
,
't'
,
'T'
,
'y'
,
'p'
,
'e'
,
0
};
static
const
WCHAR
szFormat
[]
=
{
'%'
,
'l'
,
'i'
,
0
};
static
const
WCHAR
szWinBuild
[]
=
{
'W'
,
'i'
,
'n'
,
'd'
,
'o'
,
'w'
,
's'
,
'B'
,
'u'
,
'i'
,
'l'
,
'd'
,
0
};
...
...
@@ -414,8 +415,8 @@ static VOID set_installer_properties(MSIPACKAGE *package)
MSI_SetPropertyW
(
package
,
szAllUsers
,
szOne
);
/* set the os things */
OSVersion
.
dwOSVersionInfoSize
=
sizeof
(
OSVERSIONINFO
A
);
GetVersionEx
A
(
&
OSVersion
);
OSVersion
.
dwOSVersionInfoSize
=
sizeof
(
OSVERSIONINFO
EXW
);
GetVersionEx
W
((
OSVERSIONINFOW
*
)
&
OSVersion
);
verval
=
OSVersion
.
dwMinorVersion
+
OSVersion
.
dwMajorVersion
*
100
;
sprintfW
(
verstr
,
szFormat
,
verval
);
switch
(
OSVersion
.
dwPlatformId
)
...
...
@@ -425,6 +426,8 @@ static VOID set_installer_properties(MSIPACKAGE *package)
break
;
case
VER_PLATFORM_WIN32_NT
:
MSI_SetPropertyW
(
package
,
vNT
,
verstr
);
sprintfW
(
verstr
,
szFormat
,
OSVersion
.
wProductType
);
MSI_SetPropertyW
(
package
,
szMsiNTProductType
,
verstr
);
break
;
}
sprintfW
(
verstr
,
szFormat
,
OSVersion
.
dwBuildNumber
);
...
...
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