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
2d4e4b6a
Commit
2d4e4b6a
authored
Jun 23, 2008
by
James Hawkins
Committed by
Alexandre Julliard
Jun 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Create the SourceList key in msi_publish_sourcelist.
parent
58e15439
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
12 deletions
+10
-12
action.c
dlls/msi/action.c
+10
-12
No files found.
dlls/msi/action.c
View file @
2d4e4b6a
...
...
@@ -3339,14 +3339,22 @@ static UINT msi_publish_icons(MSIPACKAGE *package)
return
ERROR_SUCCESS
;
}
static
UINT
msi_publish_sourcelist
(
MSIPACKAGE
*
package
)
static
UINT
msi_publish_sourcelist
(
MSIPACKAGE
*
package
,
HKEY
hkey
)
{
UINT
r
;
HKEY
source
;
LPWSTR
buffer
;
MSIMEDIADISK
*
disk
;
MSISOURCELISTINFO
*
info
;
static
const
WCHAR
szEmpty
[]
=
{
0
};
static
const
WCHAR
szSourceList
[]
=
{
'S'
,
'o'
,
'u'
,
'r'
,
'c'
,
'e'
,
'L'
,
'i'
,
's'
,
't'
,
0
};
r
=
RegCreateKeyW
(
hkey
,
szSourceList
,
&
source
);
if
(
r
!=
ERROR_SUCCESS
)
return
r
;
RegCloseKey
(
source
);
buffer
=
strrchrW
(
package
->
PackagePath
,
'\\'
)
+
1
;
r
=
MsiSourceListSetInfoW
(
package
->
ProductCode
,
NULL
,
...
...
@@ -3547,10 +3555,6 @@ static UINT ACTION_PublishProduct(MSIPACKAGE *package)
UINT
rc
;
HKEY
hukey
=
0
;
HKEY
hudkey
=
0
;
HKEY
source
;
static
const
WCHAR
szSourceList
[]
=
{
'S'
,
'o'
,
'u'
,
'r'
,
'c'
,
'e'
,
'L'
,
'i'
,
's'
,
't'
,
0
};
/* FIXME: also need to publish if the product is in advertise mode */
if
(
!
msi_check_publish
(
package
))
...
...
@@ -3577,12 +3581,6 @@ static UINT ACTION_PublishProduct(MSIPACKAGE *package)
goto
end
;
}
rc
=
RegCreateKeyW
(
hukey
,
szSourceList
,
&
source
);
if
(
rc
!=
ERROR_SUCCESS
)
goto
end
;
RegCloseKey
(
source
);
rc
=
msi_publish_upgrade_code
(
package
);
if
(
rc
!=
ERROR_SUCCESS
)
goto
end
;
...
...
@@ -3591,7 +3589,7 @@ static UINT ACTION_PublishProduct(MSIPACKAGE *package)
if
(
rc
!=
ERROR_SUCCESS
)
goto
end
;
rc
=
msi_publish_sourcelist
(
package
);
rc
=
msi_publish_sourcelist
(
package
,
hukey
);
if
(
rc
!=
ERROR_SUCCESS
)
goto
end
;
...
...
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