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
fd549aa2
Commit
fd549aa2
authored
Nov 17, 2009
by
Hans Leidekker
Committed by
Alexandre Julliard
Nov 17, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Set the LogonUser property.
parent
76ae295a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
package.c
dlls/msi/package.c
+15
-2
No files found.
dlls/msi/package.c
View file @
fd549aa2
...
...
@@ -345,7 +345,7 @@ static VOID set_installer_properties(MSIPACKAGE *package)
WCHAR
*
ptr
;
OSVERSIONINFOEXW
OSVersion
;
MEMORYSTATUSEX
msex
;
DWORD
verval
;
DWORD
verval
,
len
;
WCHAR
verstr
[
10
],
bufstr
[
20
];
HDC
dc
;
HKEY
hkey
;
...
...
@@ -445,11 +445,12 @@ static VOID set_installer_properties(MSIPACKAGE *package)
static
const
WCHAR
szUserLangID
[]
=
{
'U'
,
's'
,
'e'
,
'r'
,
'L'
,
'a'
,
'n'
,
'g'
,
'u'
,
'a'
,
'g'
,
'e'
,
'I'
,
'D'
,
0
};
static
const
WCHAR
szSystemLangID
[]
=
{
'S'
,
'y'
,
's'
,
't'
,
'e'
,
'm'
,
'L'
,
'a'
,
'n'
,
'g'
,
'u'
,
'a'
,
'g'
,
'e'
,
'I'
,
'D'
,
0
};
static
const
WCHAR
szProductState
[]
=
{
'P'
,
'r'
,
'o'
,
'd'
,
'u'
,
'c'
,
't'
,
'S'
,
't'
,
'a'
,
't'
,
'e'
,
0
};
static
const
WCHAR
szLogonUser
[]
=
{
'L'
,
'o'
,
'g'
,
'o'
,
'n'
,
'U'
,
's'
,
'e'
,
'r'
,
0
};
/*
* Other things that probably should be set:
*
* ComputerName
LogonUser
VirtualMemory
* ComputerName VirtualMemory
* ShellAdvSupport DefaultUIFont PackagecodeChanging
* CaptionHeight BorderTop BorderSide TextHeight
* RedirectedDllSupport
...
...
@@ -653,6 +654,18 @@ static VOID set_installer_properties(MSIPACKAGE *package)
sprintfW
(
bufstr
,
szIntFormat
,
MsiQueryProductStateW
(
package
->
ProductCode
));
MSI_SetPropertyW
(
package
,
szProductState
,
bufstr
);
len
=
0
;
if
(
!
GetUserNameW
(
NULL
,
&
len
)
&&
GetLastError
()
==
ERROR_MORE_DATA
)
{
WCHAR
*
username
;
if
((
username
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
)
)))
{
if
(
GetUserNameW
(
username
,
&
len
))
MSI_SetPropertyW
(
package
,
szLogonUser
,
username
);
HeapFree
(
GetProcessHeap
(),
0
,
username
);
}
}
}
static
UINT
msi_load_summary_properties
(
MSIPACKAGE
*
package
)
...
...
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