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
c37849ad
Commit
c37849ad
authored
Jan 05, 2008
by
James Hawkins
Committed by
Alexandre Julliard
Jan 07, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Copy the temporary package when storing the installer.
parent
e28cedf6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
action.c
dlls/msi/action.c
+5
-8
No files found.
dlls/msi/action.c
View file @
c37849ad
...
...
@@ -60,8 +60,6 @@ static UINT ACTION_PerformActionSequence(MSIPACKAGE *package, UINT seq, BOOL UI)
* consts and values used
*/
static
const
WCHAR
c_colon
[]
=
{
'C'
,
':'
,
'\\'
,
0
};
static
const
WCHAR
szOriginalDatabase
[]
=
{
'O'
,
'r'
,
'i'
,
'g'
,
'i'
,
'n'
,
'a'
,
'l'
,
'D'
,
'a'
,
't'
,
'a'
,
'b'
,
'a'
,
's'
,
'e'
,
0
};
static
const
WCHAR
szCreateFolders
[]
=
{
'C'
,
'r'
,
'e'
,
'a'
,
't'
,
'e'
,
'F'
,
'o'
,
'l'
,
'd'
,
'e'
,
'r'
,
's'
,
0
};
...
...
@@ -616,6 +614,9 @@ static UINT msi_set_sourcedir_props(MSIPACKAGE *package, BOOL replace)
LPWSTR
source
,
check
;
DWORD
len
;
static
const
WCHAR
szOriginalDatabase
[]
=
{
'O'
,
'r'
,
'i'
,
'g'
,
'i'
,
'n'
,
'a'
,
'l'
,
'D'
,
'a'
,
't'
,
'a'
,
'b'
,
'a'
,
's'
,
'e'
,
0
};
db
=
msi_dup_property
(
package
,
szOriginalDatabase
);
if
(
!
db
)
return
ERROR_OUTOFMEMORY
;
...
...
@@ -3887,7 +3888,6 @@ static UINT msi_get_local_package_name( LPWSTR path )
static
UINT
msi_make_package_local
(
MSIPACKAGE
*
package
,
HKEY
hkey
)
{
WCHAR
packagefile
[
MAX_PATH
];
LPWSTR
msiFilePath
;
HKEY
props
;
UINT
r
;
...
...
@@ -3897,17 +3897,14 @@ static UINT msi_make_package_local( MSIPACKAGE *package, HKEY hkey )
TRACE
(
"Copying to local package %s
\n
"
,
debugstr_w
(
packagefile
));
msiFilePath
=
msi_dup_property
(
package
,
szOriginalDatabase
);
r
=
CopyFileW
(
msiFilePath
,
packagefile
,
FALSE
);
r
=
CopyFileW
(
package
->
db
->
path
,
packagefile
,
FALSE
);
if
(
!
r
)
{
ERR
(
"Unable to copy package (%s -> %s) (error %d)
\n
"
,
debugstr_w
(
msiFilePath
),
debugstr_w
(
packagefile
),
GetLastError
());
msi_free
(
msiFilePath
);
debugstr_w
(
package
->
db
->
path
),
debugstr_w
(
packagefile
),
GetLastError
());
return
ERROR_FUNCTION_FAILED
;
}
msi_free
(
msiFilePath
);
msi_reg_set_val_str
(
hkey
,
INSTALLPROPERTY_LOCALPACKAGEW
,
packagefile
);
...
...
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