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
f25f97d8
Commit
f25f97d8
authored
May 15, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
May 15, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
appwiz.cpl: Replace install_wine_gecko with configurable install_addon.
parent
5779ce28
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
10 deletions
+16
-10
addons.c
dlls/appwiz.cpl/addons.c
+10
-8
appwiz.c
dlls/appwiz.cpl/appwiz.c
+1
-1
appwiz.h
dlls/appwiz.cpl/appwiz.h
+5
-1
No files found.
dlls/appwiz.cpl/addons.c
View file @
f25f97d8
...
...
@@ -84,7 +84,7 @@ static const addon_info_t addons_info[] = {
}
};
static
const
addon_info_t
*
addon
=
&
addons_info
[
0
]
;
static
const
addon_info_t
*
addon
;
static
HWND
install_dialog
=
NULL
;
static
LPWSTR
url
=
NULL
;
...
...
@@ -553,18 +553,20 @@ static INT_PTR CALLBACK installer_proc(HWND hwnd, UINT msg, WPARAM wParam, LPARA
return
FALSE
;
}
BOOL
install_
wine_gecko
(
void
)
BOOL
install_
addon
(
addon_t
addon_type
)
{
if
(
!*
ARCH_STRING
)
return
FALSE
;
addon
=
addons_info
+
addon_type
;
/*
* Try to find
Gecko .cab
file in following order:
* - directory stored in
GeckoCabDir value of HKCU/Wine/Software/MSHTML
key
* - $datadir/
gecko
/
* - $INSTALL_DATADIR/wine/
gecko
/
* - /usr/share/wine/
gecko
/
* - download from URL stored in
GeckoUrl value of HKCU/Wine/Software/MSHTML
key
* Try to find
addon .msi
file in following order:
* - directory stored in
$dir_config_key value of HKCU/Wine/Software/$config_key
key
* - $datadir/
$addon_subdir
/
* - $INSTALL_DATADIR/wine/
$addon_subdir
/
* - /usr/share/wine/
$addon_subdir
/
* - download from URL stored in
$url_config_key value of HKCU/Wine/Software/$config_key
key
*/
if
(
!
install_from_registered_dir
()
&&
!
install_from_default_dir
()
...
...
dlls/appwiz.cpl/appwiz.c
View file @
f25f97d8
...
...
@@ -975,7 +975,7 @@ static LONG start_params(const WCHAR *params)
return
FALSE
;
if
(
!
strcmpW
(
params
,
install_geckoW
))
{
install_
wine_gecko
(
);
install_
addon
(
ADDON_GECKO
);
return
TRUE
;
}
...
...
dlls/appwiz.cpl/appwiz.h
View file @
f25f97d8
...
...
@@ -16,7 +16,11 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
BOOL
install_wine_gecko
(
void
)
DECLSPEC_HIDDEN
;
typedef
enum
{
ADDON_GECKO
}
addon_t
;
BOOL
install_addon
(
addon_t
)
DECLSPEC_HIDDEN
;
extern
HINSTANCE
hInst
DECLSPEC_HIDDEN
;
...
...
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