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
36a01505
Commit
36a01505
authored
Jun 08, 2005
by
Aric Stewart
Committed by
Alexandre Julliard
Jun 08, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Write out UpgradeCodes to the registry to allow for future upgrades.
parent
1bf96e09
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
action.c
dlls/msi/action.c
+21
-0
No files found.
dlls/msi/action.c
View file @
36a01505
...
@@ -6441,6 +6441,9 @@ static UINT ACTION_RegisterProduct(MSIPACKAGE *package)
...
@@ -6441,6 +6441,9 @@ static UINT ACTION_RegisterProduct(MSIPACKAGE *package)
'%'
,
'x'
,
'.'
,
'm'
,
's'
,
'i'
,
0
};
'%'
,
'x'
,
'.'
,
'm'
,
's'
,
'i'
,
0
};
static
const
WCHAR
szLocalPackage
[]
=
static
const
WCHAR
szLocalPackage
[]
=
{
'L'
,
'o'
,
'c'
,
'a'
,
'l'
,
'P'
,
'a'
,
'c'
,
'k'
,
'a'
,
'g'
,
'e'
,
0
};
{
'L'
,
'o'
,
'c'
,
'a'
,
'l'
,
'P'
,
'a'
,
'c'
,
'k'
,
'a'
,
'g'
,
'e'
,
0
};
static
const
WCHAR
szUpgradeCode
[]
=
{
'U'
,
'p'
,
'g'
,
'r'
,
'a'
,
'd'
,
'e'
,
'C'
,
'o'
,
'd'
,
'e'
,
0
};
LPWSTR
upgrade_code
;
WCHAR
windir
[
MAX_PATH
],
path
[
MAX_PATH
],
packagefile
[
MAX_PATH
];
WCHAR
windir
[
MAX_PATH
],
path
[
MAX_PATH
],
packagefile
[
MAX_PATH
];
INT
num
,
start
;
INT
num
,
start
;
...
@@ -6506,6 +6509,24 @@ static UINT ACTION_RegisterProduct(MSIPACKAGE *package)
...
@@ -6506,6 +6509,24 @@ static UINT ACTION_RegisterProduct(MSIPACKAGE *package)
GetLastError
());
GetLastError
());
size
=
strlenW
(
packagefile
)
*
sizeof
(
WCHAR
);
size
=
strlenW
(
packagefile
)
*
sizeof
(
WCHAR
);
RegSetValueExW
(
hkey
,
szLocalPackage
,
0
,
REG_SZ
,(
LPSTR
)
packagefile
,
size
);
RegSetValueExW
(
hkey
,
szLocalPackage
,
0
,
REG_SZ
,(
LPSTR
)
packagefile
,
size
);
/* Handle Upgrade Codes */
upgrade_code
=
load_dynamic_property
(
package
,
szUpgradeCode
,
NULL
);
if
(
upgrade_code
)
{
HKEY
hkey2
;
WCHAR
squashed
[
33
];
MSIREG_OpenUpgradeCodesKey
(
upgrade_code
,
&
hkey2
,
TRUE
);
squash_guid
(
productcode
,
squashed
);
RegSetValueExW
(
hkey2
,
squashed
,
0
,
REG_SZ
,
NULL
,
0
);
RegCloseKey
(
hkey2
);
MSIREG_OpenUserUpgradeCodesKey
(
upgrade_code
,
&
hkey2
,
TRUE
);
squash_guid
(
productcode
,
squashed
);
RegSetValueExW
(
hkey2
,
squashed
,
0
,
REG_SZ
,
NULL
,
0
);
RegCloseKey
(
hkey2
);
HeapFree
(
GetProcessHeap
(),
0
,
upgrade_code
);
}
end:
end:
HeapFree
(
GetProcessHeap
(),
0
,
productcode
);
HeapFree
(
GetProcessHeap
(),
0
,
productcode
);
...
...
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