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
5669e67d
Commit
5669e67d
authored
Sep 11, 2009
by
Hans Leidekker
Committed by
Alexandre Julliard
Sep 11, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Set ProductState property.
parent
c81ac66d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
package.c
dlls/msi/package.c
+10
-4
No files found.
dlls/msi/package.c
View file @
5669e67d
...
...
@@ -453,13 +453,14 @@ static VOID set_installer_properties(MSIPACKAGE *package)
static
const
WCHAR
szTime
[]
=
{
'T'
,
'i'
,
'm'
,
'e'
,
0
};
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
};
/*
* Other things that probably should be set:
*
* ComputerName LogonUser VirtualMemory
* ShellAdvSupport DefaultUIFont PackagecodeChanging
*
ProductState
CaptionHeight BorderTop BorderSide TextHeight
* CaptionHeight BorderTop BorderSide TextHeight
* RedirectedDllSupport
*/
...
...
@@ -658,6 +659,9 @@ static VOID set_installer_properties(MSIPACKAGE *package)
sprintfW
(
bufstr
,
szIntFormat
,
langid
);
MSI_SetPropertyW
(
package
,
szSystemLangID
,
bufstr
);
sprintfW
(
bufstr
,
szIntFormat
,
MsiQueryProductStateW
(
package
->
ProductCode
));
MSI_SetPropertyW
(
package
,
szProductState
,
bufstr
);
}
static
UINT
msi_load_summary_properties
(
MSIPACKAGE
*
package
)
...
...
@@ -804,12 +808,14 @@ MSIPACKAGE *MSI_CreatePackage( MSIDATABASE *db, LPCWSTR base_url )
create_temp_property_table
(
package
);
msi_clone_properties
(
package
);
set_installer_properties
(
package
);
sprintfW
(
uilevel
,
szpi
,
gUILevel
);
MSI_SetPropertyW
(
package
,
szLevel
,
uilevel
);
package
->
ProductCode
=
msi_dup_property
(
package
,
szProductCode
);
set_installed_prop
(
package
);
set_installer_properties
(
package
);
sprintfW
(
uilevel
,
szpi
,
gUILevel
);
MSI_SetPropertyW
(
package
,
szLevel
,
uilevel
);
r
=
msi_load_summary_properties
(
package
);
if
(
r
!=
ERROR_SUCCESS
)
{
...
...
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