If a parameter in the GUI was missing or invalid we were closing the
dialogue and forcing the user to relaunch the installer/remover.
Instead we now loop until the service has successfully been
installed/removed or the user cancelled the operation.
switch (LOWORD(w)) {\r
/* OK button */\r
case IDC_OK:\r
- PostQuitMessage(install(window));\r
+ if (! install(window)) PostQuitMessage(0);\r
break;\r
\r
/* Cancel button */\r
\r
/* Remove button */\r
case IDC_REMOVE:\r
- PostQuitMessage(remove(window));\r
+ if (! remove(window)) PostQuitMessage(0);\r
break;\r
}\r
return 1;\r