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
94d6818c
Commit
94d6818c
authored
Aug 15, 2005
by
Aric Stewart
Committed by
Alexandre Julliard
Aug 15, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some body to ResolveSource because it is possible to need it when
an install is begun but the media is not in the drive, such as in install-on-demand cases.
parent
7721b267
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
0 deletions
+41
-0
action.c
dlls/msi/action.c
+41
-0
No files found.
dlls/msi/action.c
View file @
94d6818c
...
@@ -3688,11 +3688,52 @@ static UINT ACTION_ForceReboot(MSIPACKAGE *package)
...
@@ -3688,11 +3688,52 @@ static UINT ACTION_ForceReboot(MSIPACKAGE *package)
UINT
ACTION_ResolveSource
(
MSIPACKAGE
*
package
)
UINT
ACTION_ResolveSource
(
MSIPACKAGE
*
package
)
{
{
DWORD
attrib
;
UINT
rc
;
/*
/*
* we are currently doing what should be done here in the top level Install
* we are currently doing what should be done here in the top level Install
* however for Adminastrative and uninstalls this step will be needed
* however for Adminastrative and uninstalls this step will be needed
*/
*/
if
(
!
package
->
PackagePath
)
return
ERROR_SUCCESS
;
return
ERROR_SUCCESS
;
attrib
=
GetFileAttributesW
(
package
->
PackagePath
);
if
(
attrib
==
INVALID_FILE_ATTRIBUTES
)
{
LPWSTR
prompt
;
LPWSTR
msg
;
DWORD
size
=
0
;
rc
=
MsiSourceListGetInfoW
(
package
->
ProductCode
,
NULL
,
MSIINSTALLCONTEXT_USERMANAGED
,
MSICODE_PRODUCT
,
INSTALLPROPERTY_DISKPROMPTW
,
NULL
,
&
size
);
if
(
rc
==
ERROR_MORE_DATA
)
{
prompt
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
MsiSourceListGetInfoW
(
package
->
ProductCode
,
NULL
,
MSIINSTALLCONTEXT_USERMANAGED
,
MSICODE_PRODUCT
,
INSTALLPROPERTY_DISKPROMPTW
,
prompt
,
&
size
);
}
else
prompt
=
strdupW
(
package
->
PackagePath
);
msg
=
generate_error_string
(
package
,
1302
,
1
,
prompt
);
while
(
attrib
==
INVALID_FILE_ATTRIBUTES
)
{
rc
=
MessageBoxW
(
NULL
,
msg
,
NULL
,
MB_OKCANCEL
);
if
(
rc
==
IDCANCEL
)
{
rc
=
ERROR_INSTALL_USEREXIT
;
break
;
}
attrib
=
GetFileAttributesW
(
package
->
PackagePath
);
}
rc
=
ERROR_SUCCESS
;
}
else
return
ERROR_SUCCESS
;
return
rc
;
}
}
static
UINT
ACTION_RegisterUser
(
MSIPACKAGE
*
package
)
static
UINT
ACTION_RegisterUser
(
MSIPACKAGE
*
package
)
...
...
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