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
bf3574a4
Commit
bf3574a4
authored
Jul 14, 2009
by
Owen Rudge
Committed by
Alexandre Julliard
Jul 15, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
appwiz.cpl: Execute installer when Modify clicked.
parent
812e6047
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
appwiz.c
dlls/appwiz.cpl/appwiz.c
+7
-4
No files found.
dlls/appwiz.cpl/appwiz.c
View file @
bf3574a4
...
...
@@ -489,8 +489,9 @@ static void InstallProgram(HWND hWnd)
* Name : UninstallProgram
* Description: Executes the specified program's installer.
* Parameters : id - the internal ID of the installer to remove
* Parameters : button - ID of button pressed (Modify or Remove)
*/
static
void
UninstallProgram
(
int
id
)
static
void
UninstallProgram
(
int
id
,
DWORD
button
)
{
APPINFO
*
iter
;
STARTUPINFOW
si
;
...
...
@@ -513,8 +514,9 @@ static void UninstallProgram(int id)
memset
(
&
si
,
0
,
sizeof
(
STARTUPINFOW
));
si
.
cb
=
sizeof
(
STARTUPINFOW
);
si
.
wShowWindow
=
SW_NORMAL
;
res
=
CreateProcessW
(
NULL
,
iter
->
path
,
NULL
,
NULL
,
FALSE
,
0
,
NULL
,
NULL
,
&
si
,
&
info
);
res
=
CreateProcessW
(
NULL
,
(
button
==
IDC_MODIFY
)
?
iter
->
path_modify
:
iter
->
path
,
NULL
,
NULL
,
FALSE
,
0
,
NULL
,
NULL
,
&
si
,
&
info
);
if
(
res
)
{
...
...
@@ -856,6 +858,7 @@ static BOOL CALLBACK MainDlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lPar
break
;
case
IDC_ADDREMOVE
:
case
IDC_MODIFY
:
selitem
=
SendDlgItemMessageW
(
hWnd
,
IDL_PROGRAMS
,
LVM_GETNEXTITEM
,
-
1
,
LVNI_FOCUSED
|
LVNI_SELECTED
);
...
...
@@ -866,7 +869,7 @@ static BOOL CALLBACK MainDlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lPar
if
(
SendDlgItemMessageW
(
hWnd
,
IDL_PROGRAMS
,
LVM_GETITEMW
,
0
,
(
LPARAM
)
&
lvItem
))
UninstallProgram
(
lvItem
.
lParam
);
UninstallProgram
(
lvItem
.
lParam
,
LOWORD
(
wParam
)
);
}
hImageList
=
ResetApplicationList
(
FALSE
,
hWnd
,
hImageList
);
...
...
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