Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
08443b3b
Commit
08443b3b
authored
Jul 02, 2007
by
James Hawkins
Committed by
Alexandre Julliard
Jul 03, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: PackagePath must also include the package name.
parent
56129f25
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
21 deletions
+26
-21
action.c
dlls/msi/action.c
+24
-16
install.c
dlls/msi/tests/install.c
+2
-5
No files found.
dlls/msi/action.c
View file @
08443b3b
...
...
@@ -629,35 +629,43 @@ UINT MSI_InstallPackage( MSIPACKAGE *package, LPCWSTR szPackagePath,
if
(
szPackagePath
)
{
LPWSTR
p
,
check
,
path
;
path
=
strdupW
(
szPackagePath
);
p
=
strrchrW
(
path
,
'\\'
);
LPWSTR
p
,
check
,
dir
;
dir
=
strdupW
(
szPackagePath
);
p
=
strrchrW
(
dir
,
'\\'
);
if
(
p
)
*
(
++
p
)
=
0
;
else
{
p
++
;
*
p
=
0
;
msi_free
(
dir
);
dir
=
msi_alloc
(
MAX_PATH
*
sizeof
(
WCHAR
));
GetCurrentDirectoryW
(
MAX_PATH
,
dir
);
lstrcatW
(
dir
,
cszbs
);
p
=
(
LPWSTR
)
szPackagePath
;
}
else
msi_free
(
package
->
PackagePath
);
package
->
PackagePath
=
msi_alloc
((
lstrlenW
(
dir
)
+
lstrlenW
(
p
)
+
2
)
*
sizeof
(
WCHAR
));
if
(
!
package
->
PackagePath
)
{
msi_free
(
path
);
path
=
msi_alloc
(
MAX_PATH
*
sizeof
(
WCHAR
));
GetCurrentDirectoryW
(
MAX_PATH
,
path
);
strcatW
(
path
,
cszbs
);
msi_free
(
dir
);
return
ERROR_OUTOFMEMORY
;
}
lstrcpyW
(
package
->
PackagePath
,
dir
);
lstrcatW
(
package
->
PackagePath
,
cszbs
);
lstrcatW
(
package
->
PackagePath
,
p
);
check
=
msi_dup_property
(
package
,
cszSourceDir
);
if
(
!
check
)
MSI_SetPropertyW
(
package
,
cszSourceDir
,
path
);
MSI_SetPropertyW
(
package
,
cszSourceDir
,
dir
);
msi_free
(
check
);
check
=
msi_dup_property
(
package
,
cszSOURCEDIR
);
if
(
!
check
)
MSI_SetPropertyW
(
package
,
cszSOURCEDIR
,
path
);
msi_free
(
package
->
PackagePath
);
package
->
PackagePath
=
path
;
MSI_SetPropertyW
(
package
,
cszSOURCEDIR
,
dir
);
msi_free
(
dir
);
msi_free
(
check
);
}
...
...
dlls/msi/tests/install.c
View file @
08443b3b
...
...
@@ -2244,11 +2244,8 @@ static void test_publishsourcelist(void)
r
=
MsiSourceListGetInfoA
(
prodcode
,
NULL
,
MSIINSTALLCONTEXT_USERUNMANAGED
,
MSICODE_PRODUCT
,
INSTALLPROPERTY_PACKAGENAME
,
value
,
&
size
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
todo_wine
{
ok
(
!
lstrcmpA
(
value
,
"msitest.msi"
),
"Expected 'msitest.msi', got %s
\n
"
,
value
);
ok
(
size
==
11
,
"Expected 11, got %d
\n
"
,
size
);
}
ok
(
!
lstrcmpA
(
value
,
"msitest.msi"
),
"Expected 'msitest.msi', got %s
\n
"
,
value
);
ok
(
size
==
11
,
"Expected 11, got %d
\n
"
,
size
);
/* complete uninstall */
r
=
MsiInstallProductA
(
msifile
,
"FULL=1 REMOVE=ALL"
);
...
...
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