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
c28bb54f
Commit
c28bb54f
authored
Jun 09, 2005
by
Aric Stewart
Committed by
Alexandre Julliard
Jun 09, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Register the Product Version also.
Also help plug some memory leaks pointed out by Mike McCormack.
parent
b9b1ea9c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
action.c
dlls/msi/action.c
+16
-1
No files found.
dlls/msi/action.c
View file @
c28bb54f
...
@@ -5972,6 +5972,10 @@ static UINT ACTION_PublishProduct(MSIPACKAGE *package)
...
@@ -5972,6 +5972,10 @@ static UINT ACTION_PublishProduct(MSIPACKAGE *package)
{
'P'
,
'r'
,
'o'
,
'd'
,
'u'
,
'c'
,
't'
,
'I'
,
'c'
,
'o'
,
'n'
,
0
};
{
'P'
,
'r'
,
'o'
,
'd'
,
'u'
,
'c'
,
't'
,
'I'
,
'c'
,
'o'
,
'n'
,
0
};
static
const
WCHAR
szARPProductIcon
[]
=
static
const
WCHAR
szARPProductIcon
[]
=
{
'A'
,
'R'
,
'P'
,
'P'
,
'R'
,
'O'
,
'D'
,
'U'
,
'C'
,
'T'
,
'I'
,
'C'
,
'O'
,
'N'
,
0
};
{
'A'
,
'R'
,
'P'
,
'P'
,
'R'
,
'O'
,
'D'
,
'U'
,
'C'
,
'T'
,
'I'
,
'C'
,
'O'
,
'N'
,
0
};
static
const
WCHAR
szProductVersion
[]
=
{
'P'
,
'r'
,
'o'
,
'd'
,
'u'
,
'c'
,
't'
,
'V'
,
'e'
,
'r'
,
's'
,
'i'
,
'o'
,
'n'
,
0
};
static
const
WCHAR
szVersion
[]
=
{
'V'
,
'e'
,
'r'
,
's'
,
'i'
,
'o'
,
'n'
,
0
};
DWORD
langid
;
DWORD
langid
;
LPWSTR
buffer
;
LPWSTR
buffer
;
DWORD
size
;
DWORD
size
;
...
@@ -6071,13 +6075,14 @@ next:
...
@@ -6071,13 +6075,14 @@ next:
buffer
=
load_dynamic_property
(
package
,
szProductName
,
NULL
);
buffer
=
load_dynamic_property
(
package
,
szProductName
,
NULL
);
size
=
strlenW
(
buffer
)
*
sizeof
(
WCHAR
);
size
=
strlenW
(
buffer
)
*
sizeof
(
WCHAR
);
RegSetValueExW
(
hukey
,
szProductName
,
0
,
REG_SZ
,
(
LPSTR
)
buffer
,
size
);
RegSetValueExW
(
hukey
,
szProductName
,
0
,
REG_SZ
,
(
BYTE
*
)
buffer
,
size
);
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
buffer
=
load_dynamic_property
(
package
,
szProductLanguage
,
NULL
);
buffer
=
load_dynamic_property
(
package
,
szProductLanguage
,
NULL
);
size
=
sizeof
(
DWORD
);
size
=
sizeof
(
DWORD
);
langid
=
atoiW
(
buffer
);
langid
=
atoiW
(
buffer
);
RegSetValueExW
(
hukey
,
szLanguage
,
0
,
REG_DWORD
,
(
BYTE
*
)
&
langid
,
size
);
RegSetValueExW
(
hukey
,
szLanguage
,
0
,
REG_DWORD
,
(
BYTE
*
)
&
langid
,
size
);
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
buffer
=
load_dynamic_property
(
package
,
szARPProductIcon
,
NULL
);
buffer
=
load_dynamic_property
(
package
,
szARPProductIcon
,
NULL
);
if
(
buffer
)
if
(
buffer
)
...
@@ -6087,6 +6092,16 @@ next:
...
@@ -6087,6 +6092,16 @@ next:
size
=
strlenW
(
path
)
*
sizeof
(
WCHAR
);
size
=
strlenW
(
path
)
*
sizeof
(
WCHAR
);
RegSetValueExW
(
hukey
,
szProductIcon
,
0
,
REG_SZ
,
(
BYTE
*
)
path
,
size
);
RegSetValueExW
(
hukey
,
szProductIcon
,
0
,
REG_SZ
,
(
BYTE
*
)
path
,
size
);
}
}
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
buffer
=
load_dynamic_property
(
package
,
szProductVersion
,
NULL
);
if
(
buffer
)
{
DWORD
verdword
=
build_version_dword
(
buffer
);
size
=
sizeof
(
DWORD
);
RegSetValueExW
(
hukey
,
szVersion
,
0
,
REG_DWORD
,
(
BYTE
*
)
&
verdword
,
size
);
}
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
FIXME
(
"Need to write more keys to the user registry
\n
"
);
FIXME
(
"Need to write more keys to the user registry
\n
"
);
...
...
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