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
ff188900
Commit
ff188900
authored
Jul 09, 2010
by
Andrew Nguyen
Committed by
Alexandre Julliard
Jul 09, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi/tests: Run the automation tests in silent mode to avoid a dialog.
parent
d2cda58a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
automation.c
dlls/msi/tests/automation.c
+18
-0
No files found.
dlls/msi/tests/automation.c
View file @
ff188900
...
...
@@ -1081,6 +1081,20 @@ static HRESULT Installer_VersionGet(LPWSTR szVersion)
return
hr
;
}
static
HRESULT
Installer_UILevelPut
(
int
level
)
{
VARIANT
varresult
;
VARIANTARG
vararg
;
DISPID
dispid
=
DISPID_PROPERTYPUT
;
DISPPARAMS
dispparams
=
{
&
vararg
,
&
dispid
,
sizeof
(
vararg
)
/
sizeof
(
VARIANTARG
),
1
};
VariantInit
(
&
vararg
);
V_VT
(
&
vararg
)
=
VT_I4
;
V_I4
(
&
vararg
)
=
level
;
return
invoke
(
pInstaller
,
"UILevel"
,
DISPATCH_PROPERTYPUT
,
&
dispparams
,
&
varresult
,
VT_EMPTY
);
}
static
HRESULT
Session_Installer
(
IDispatch
*
pSession
,
IDispatch
**
pInst
)
{
VARIANT
varresult
;
...
...
@@ -2383,6 +2397,10 @@ static void test_Installer_InstallProduct(void)
create_test_files
();
/* Avoid an interactive dialog in case of insufficient privileges. */
hr
=
Installer_UILevelPut
(
INSTALLUILEVEL_NONE
);
ok
(
hr
==
S_OK
,
"Expected UILevel propery put invoke to return S_OK, got 0x%08x
\n
"
,
hr
);
/* Installer::InstallProduct */
hr
=
Installer_InstallProduct
(
szMsifile
,
NULL
);
if
(
hr
==
DISP_E_EXCEPTION
)
...
...
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