MSI: Implement custom type 19

Aric Stewart aric at codeweavers.com
Wed Jan 26 21:10:19 CST 2005


Implement custom action type 19, Halt install and display error message.
-------------- next part --------------
Index: custom.c
===================================================================
RCS file: /cvstrees/crossover/office/wine/dlls/msi/custom.c,v
retrieving revision 1.1
diff -u -r1.1 custom.c
--- custom.c	25 Jan 2005 12:54:08 -0000	1.1
+++ custom.c	27 Jan 2005 03:10:20 -0000
@@ -192,6 +192,11 @@
         case 18: /*EXE file installed with package */
             rc = HANDLE_CustomType18(package,source,target,type,action);
             break;
+        case 19: /* Error that halts install */
+            deformat_string(package,target,&deformated);
+            MessageBoxW(NULL,deformated,NULL,MB_OK);
+            rc = ERROR_FUNCTION_FAILED;
+            break;
         case 50: /*EXE file specified by a property value */
             rc = HANDLE_CustomType50(package,source,target,type,action);
             break;


More information about the wine-patches mailing list