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
bcba82dc
Commit
bcba82dc
authored
Apr 05, 2008
by
James Hawkins
Committed by
Alexandre Julliard
Apr 07, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Open the install properties key based on the install context.
parent
e21a26e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
8 deletions
+21
-8
action.c
dlls/msi/action.c
+21
-8
No files found.
dlls/msi/action.c
View file @
bcba82dc
...
...
@@ -3350,6 +3350,10 @@ 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
{
...
...
@@ -3360,6 +3364,10 @@ 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
);
...
...
@@ -3372,10 +3380,6 @@ static UINT ACTION_PublishProduct(MSIPACKAGE *package)
if
(
rc
!=
ERROR_SUCCESS
)
goto
end
;
rc
=
MSIREG_OpenCurrentUserInstallProps
(
package
->
ProductCode
,
&
props
,
TRUE
);
if
(
rc
!=
ERROR_SUCCESS
)
goto
end
;
buffer
=
msi_dup_property
(
package
,
INSTALLPROPERTY_PRODUCTNAMEW
);
msi_reg_set_val_str
(
hukey
,
INSTALLPROPERTY_PRODUCTNAMEW
,
buffer
);
msi_free
(
buffer
);
...
...
@@ -3995,9 +3999,18 @@ static UINT ACTION_RegisterProduct(MSIPACKAGE *package)
if
(
rc
!=
ERROR_SUCCESS
)
return
rc
;
rc
=
MSIREG_OpenCurrentUserInstallProps
(
package
->
ProductCode
,
&
props
,
TRUE
);
if
(
rc
!=
ERROR_SUCCESS
)
return
rc
;
if
(
package
->
Context
==
MSIINSTALLCONTEXT_MACHINE
)
{
rc
=
MSIREG_OpenLocalSystemInstallProps
(
package
->
ProductCode
,
&
props
,
TRUE
);
if
(
rc
!=
ERROR_SUCCESS
)
return
rc
;
}
else
{
rc
=
MSIREG_OpenCurrentUserInstallProps
(
package
->
ProductCode
,
&
props
,
TRUE
);
if
(
rc
!=
ERROR_SUCCESS
)
return
rc
;
}
/* dump all the info i can grab */
/* FIXME: Flesh out more information */
...
...
@@ -4069,7 +4082,7 @@ static UINT ACTION_RegisterProduct(MSIPACKAGE *package)
msi_free
(
upgrade_code
);
}
RegCloseKey
(
hkey
);
rc
=
MSIREG_OpenUserDataProductKey
(
package
->
ProductCode
,
&
hudkey
,
TRUE
);
...
...
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