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
cce01d98
Commit
cce01d98
authored
Sep 24, 2010
by
Hans Leidekker
Committed by
Alexandre Julliard
Sep 24, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Set some missing system folder properties.
parent
337fb86c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
package.c
dlls/msi/package.c
+16
-0
No files found.
dlls/msi/package.c
View file @
cce01d98
...
...
@@ -711,6 +711,9 @@ static VOID set_installer_properties(MSIPACKAGE *package)
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
};
static
const
WCHAR
szNetHoodFolder
[]
=
{
'N'
,
'e'
,
't'
,
'H'
,
'o'
,
'o'
,
'd'
,
'F'
,
'o'
,
'l'
,
'd'
,
'e'
,
'r'
,
0
};
static
const
WCHAR
szPrintHoodFolder
[]
=
{
'P'
,
'r'
,
'i'
,
'n'
,
't'
,
'H'
,
'o'
,
'o'
,
'd'
,
'F'
,
'o'
,
'l'
,
'd'
,
'e'
,
'r'
,
0
};
static
const
WCHAR
szRecentFolder
[]
=
{
'R'
,
'e'
,
'c'
,
'e'
,
'n'
,
't'
,
'F'
,
'o'
,
'l'
,
'd'
,
'e'
,
'r'
,
0
};
/*
* Other things that probably should be set:
...
...
@@ -761,6 +764,7 @@ static VOID set_installer_properties(MSIPACKAGE *package)
strcatW
(
pth
,
szBackSlash
);
msi_set_property
(
package
->
db
,
DF
,
pth
);
/* FIXME: set to AllUsers profile path if ALLUSERS is set */
SHGetFolderPathW
(
NULL
,
CSIDL_PROGRAMS
,
NULL
,
0
,
pth
);
strcatW
(
pth
,
szBackSlash
);
msi_set_property
(
package
->
db
,
PMF
,
pth
);
...
...
@@ -794,6 +798,18 @@ static VOID set_installer_properties(MSIPACKAGE *package)
strcatW
(
pth
,
szBackSlash
);
msi_set_property
(
package
->
db
,
WF
,
pth
);
SHGetFolderPathW
(
NULL
,
CSIDL_PRINTHOOD
,
NULL
,
0
,
pth
);
strcatW
(
pth
,
szBackSlash
);
msi_set_property
(
package
->
db
,
szPrintHoodFolder
,
pth
);
SHGetFolderPathW
(
NULL
,
CSIDL_NETHOOD
,
NULL
,
0
,
pth
);
strcatW
(
pth
,
szBackSlash
);
msi_set_property
(
package
->
db
,
szNetHoodFolder
,
pth
);
SHGetFolderPathW
(
NULL
,
CSIDL_RECENT
,
NULL
,
0
,
pth
);
strcatW
(
pth
,
szBackSlash
);
msi_set_property
(
package
->
db
,
szRecentFolder
,
pth
);
/* Physical Memory is specified in MB. Using total amount. */
msex
.
dwLength
=
sizeof
(
msex
);
GlobalMemoryStatusEx
(
&
msex
);
...
...
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