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
de73481c
Commit
de73481c
authored
Jul 19, 2006
by
James Hawkins
Committed by
Alexandre Julliard
Jul 20, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Forward MsiSetInstallLevel to an internal MSI_SetInstallLevel that can be used internally.
parent
7bcac31d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
10 deletions
+24
-10
install.c
dlls/msi/install.c
+21
-10
msipriv.h
dlls/msi/msipriv.h
+3
-0
No files found.
dlls/msi/install.c
View file @
de73481c
...
...
@@ -762,27 +762,19 @@ LANGID WINAPI MsiGetLanguage(MSIHANDLE hInstall)
return
langid
;
}
/***********************************************************************
* MsiGetLanguage (MSI.@)
*/
UINT
WINAPI
MsiSetInstallLevel
(
MSIHANDLE
hInstall
,
int
iInstallLevel
)
UINT
MSI_SetInstallLevel
(
MSIPACKAGE
*
package
,
int
iInstallLevel
)
{
static
const
WCHAR
szInstallLevel
[]
=
{
'I'
,
'N'
,
'S'
,
'T'
,
'A'
,
'L'
,
'L'
,
'L'
,
'E'
,
'V'
,
'E'
,
'L'
,
0
};
static
const
WCHAR
fmt
[]
=
{
'%'
,
'd'
,
0
};
MSIPACKAGE
*
package
;
WCHAR
level
[
6
];
UINT
r
;
TRACE
(
"%
ld %i
\n
"
,
hInstall
,
iInstallLevel
);
TRACE
(
"%
p %i
\n
"
,
package
,
iInstallLevel
);
if
(
iInstallLevel
<
1
||
iInstallLevel
>
32767
)
return
ERROR_INVALID_PARAMETER
;
package
=
msihandle2msiinfo
(
hInstall
,
MSIHANDLETYPE_PACKAGE
);
if
(
!
package
)
return
ERROR_INVALID_HANDLE
;
sprintfW
(
level
,
fmt
,
iInstallLevel
);
r
=
MSI_SetPropertyW
(
package
,
szInstallLevel
,
level
);
if
(
r
==
ERROR_SUCCESS
)
...
...
@@ -790,6 +782,25 @@ UINT WINAPI MsiSetInstallLevel(MSIHANDLE hInstall, int iInstallLevel)
r
=
MSI_SetFeatureStates
(
package
);
}
return
r
;
}
/***********************************************************************
* MsiSetInstallLevel (MSI.@)
*/
UINT
WINAPI
MsiSetInstallLevel
(
MSIHANDLE
hInstall
,
int
iInstallLevel
)
{
MSIPACKAGE
*
package
;
UINT
r
;
TRACE
(
"%ld %i
\n
"
,
hInstall
,
iInstallLevel
);
package
=
msihandle2msiinfo
(
hInstall
,
MSIHANDLETYPE_PACKAGE
);
if
(
!
package
)
return
ERROR_INVALID_HANDLE
;
r
=
MSI_SetInstallLevel
(
package
,
iInstallLevel
);
msiobj_release
(
&
package
->
hdr
);
return
r
;
...
...
dlls/msi/msipriv.h
View file @
de73481c
...
...
@@ -381,6 +381,9 @@ extern UINT MSI_ViewExecute( MSIQUERY*, MSIRECORD * );
extern
UINT
MSI_ViewFetch
(
MSIQUERY
*
,
MSIRECORD
**
);
extern
UINT
MSI_ViewClose
(
MSIQUERY
*
);
/* install internals */
extern
UINT
MSI_SetInstallLevel
(
MSIPACKAGE
*
package
,
int
iInstallLevel
);
/* package internals */
extern
MSIPACKAGE
*
MSI_CreatePackage
(
MSIDATABASE
*
);
extern
UINT
MSI_OpenPackageW
(
LPCWSTR
szPackage
,
MSIPACKAGE
**
);
...
...
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