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
ee8b4a01
Commit
ee8b4a01
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: Don't set an invalid install property in PublishProduct.
parent
68e6071d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
12 deletions
+5
-12
action.c
dlls/msi/action.c
+1
-11
install.c
dlls/msi/tests/install.c
+4
-1
No files found.
dlls/msi/action.c
View file @
ee8b4a01
...
...
@@ -3413,7 +3413,7 @@ static UINT ACTION_PublishProduct(MSIPACKAGE *package)
LPWSTR
packname
;
HKEY
hkey
=
0
;
HKEY
hukey
=
0
;
HKEY
hudkey
=
0
,
props
=
0
;
HKEY
hudkey
=
0
;
HKEY
source
;
static
const
WCHAR
szProductLanguage
[]
=
{
'P'
,
'r'
,
'o'
,
'd'
,
'u'
,
'c'
,
't'
,
'L'
,
'a'
,
'n'
,
'g'
,
'u'
,
'a'
,
'g'
,
'e'
,
0
};
...
...
@@ -3439,10 +3439,6 @@ static UINT ACTION_PublishProduct(MSIPACKAGE *package)
rc
=
MSIREG_OpenLocalClassesProductKey
(
package
->
ProductCode
,
&
hukey
,
TRUE
);
if
(
rc
!=
ERROR_SUCCESS
)
goto
end
;
rc
=
MSIREG_OpenLocalSystemInstallProps
(
package
->
ProductCode
,
&
props
,
TRUE
);
if
(
rc
!=
ERROR_SUCCESS
)
goto
end
;
}
else
{
...
...
@@ -3453,10 +3449,6 @@ static UINT ACTION_PublishProduct(MSIPACKAGE *package)
rc
=
MSIREG_OpenUserProductsKey
(
package
->
ProductCode
,
&
hukey
,
TRUE
);
if
(
rc
!=
ERROR_SUCCESS
)
goto
end
;
rc
=
MSIREG_OpenCurrentUserInstallProps
(
package
->
ProductCode
,
&
props
,
TRUE
);
if
(
rc
!=
ERROR_SUCCESS
)
goto
end
;
}
rc
=
RegCreateKeyW
(
hukey
,
szSourceList
,
&
source
);
...
...
@@ -3481,7 +3473,6 @@ static UINT ACTION_PublishProduct(MSIPACKAGE *package)
/* FIXME */
msi_reg_set_val_dword
(
hukey
,
INSTALLPROPERTY_AUTHORIZED_LUA_APPW
,
0
);
msi_reg_set_val_dword
(
props
,
INSTALLPROPERTY_INSTANCETYPEW
,
0
);
buffer
=
msi_dup_property
(
package
,
szARPProductIcon
);
if
(
buffer
)
...
...
@@ -3545,7 +3536,6 @@ end:
RegCloseKey
(
hkey
);
RegCloseKey
(
hukey
);
RegCloseKey
(
hudkey
);
RegCloseKey
(
props
);
return
rc
;
}
...
...
dlls/msi/tests/install.c
View file @
ee8b4a01
...
...
@@ -2464,7 +2464,7 @@ static void test_publish_publishproduct(void)
UINT
r
;
LONG
res
;
LPSTR
usersid
;
HKEY
sourcelist
,
net
;
HKEY
sourcelist
,
net
,
props
;
HKEY
hkey
,
patches
,
media
;
CHAR
keypath
[
MAX_PATH
];
CHAR
temp
[
MAX_PATH
];
...
...
@@ -2504,6 +2504,9 @@ static void test_publish_publishproduct(void)
res
=
RegOpenKeyA
(
HKEY_LOCAL_MACHINE
,
keypath
,
&
hkey
);
ok
(
res
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
res
);
res
=
RegOpenKeyA
(
hkey
,
"InstallProperties"
,
&
props
);
ok
(
res
==
ERROR_FILE_NOT_FOUND
,
"Expected ERROR_FILE_NOT_FOUND, got %d
\n
"
,
res
);
res
=
RegOpenKeyA
(
hkey
,
"Patches"
,
&
patches
);
todo_wine
{
...
...
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