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
a7e6864b
Commit
a7e6864b
authored
Jul 18, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Jul 19, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Implement MsiSetInstallLevel.
parent
ad15e61e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
1 deletion
+29
-1
install.c
dlls/msi/install.c
+28
-0
msi.spec
dlls/msi/msi.spec
+1
-1
No files found.
dlls/msi/install.c
View file @
a7e6864b
...
...
@@ -30,6 +30,7 @@
#include "msidefs.h"
#include "msipriv.h"
#include "action.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
msi
);
...
...
@@ -760,3 +761,30 @@ LANGID WINAPI MsiGetLanguage(MSIHANDLE hInstall)
msiobj_release
(
&
package
->
hdr
);
return
langid
;
}
/***********************************************************************
* MsiGetLanguage (MSI.@)
*/
UINT
WINAPI
MsiSetInstallLevel
(
MSIHANDLE
hInstall
,
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
);
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
);
msiobj_release
(
&
package
->
hdr
);
return
r
;
}
dlls/msi/msi.spec
View file @
a7e6864b
...
...
@@ -133,7 +133,7 @@
137 stdcall MsiSetExternalUIW(ptr long ptr)
138 stdcall MsiSetFeatureStateA(long str long)
139 stdcall MsiSetFeatureStateW(long wstr long)
140 st
ub MsiSetInstallLevel
140 st
dcall MsiSetInstallLevel(long long)
141 stdcall MsiSetInternalUI(long ptr)
142 stub MsiVerifyDiskSpace
143 stdcall MsiSetMode(long long long)
...
...
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