aboutsummaryrefslogtreecommitdiff
path: root/src/api/burn/WixToolset.BootstrapperCore.Native/inc/BootstrapperApplication.h
diff options
context:
space:
mode:
authorNir Bar <nir.bar@panel-sw.co.il>2022-12-06 13:22:41 +0200
committerSean Hall <r.sean.hall@gmail.com>2022-12-12 21:50:39 -0600
commit50e24e9cf2084b6cb67b5d8fc509163061408bb6 (patch)
tree05c9df57480eb6308c3462c13847b43288f9dbb4 /src/api/burn/WixToolset.BootstrapperCore.Native/inc/BootstrapperApplication.h
parentc54f3083489827a1e57c6fd7f3d76f62ddc6e85e (diff)
downloadwix-50e24e9cf2084b6cb67b5d8fc509163061408bb6.tar.gz
wix-50e24e9cf2084b6cb67b5d8fc509163061408bb6.tar.bz2
wix-50e24e9cf2084b6cb67b5d8fc509163061408bb6.zip
Use MSI transaction end result to detect whether reboot is needed
Diffstat (limited to 'src/api/burn/WixToolset.BootstrapperCore.Native/inc/BootstrapperApplication.h')
-rw-r--r--src/api/burn/WixToolset.BootstrapperCore.Native/inc/BootstrapperApplication.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/api/burn/WixToolset.BootstrapperCore.Native/inc/BootstrapperApplication.h b/src/api/burn/WixToolset.BootstrapperCore.Native/inc/BootstrapperApplication.h
index c65ca86b..2633a9c2 100644
--- a/src/api/burn/WixToolset.BootstrapperCore.Native/inc/BootstrapperApplication.h
+++ b/src/api/burn/WixToolset.BootstrapperCore.Native/inc/BootstrapperApplication.h
@@ -293,6 +293,14 @@ enum BOOTSTRAPPER_EXECUTEPACKAGECOMPLETE_ACTION
293 BOOTSTRAPPER_EXECUTEPACKAGECOMPLETE_ACTION_SUSPEND, 293 BOOTSTRAPPER_EXECUTEPACKAGECOMPLETE_ACTION_SUSPEND,
294}; 294};
295 295
296enum BOOTSTRAPPER_EXECUTEMSITRANSACTIONCOMPLETE_ACTION
297{
298 BOOTSTRAPPER_EXECUTEMSITRANSACTIONCOMPLETE_ACTION_NONE,
299 // Instructs the engine to stop processing the chain and restart.
300 // The engine will launch again after the machine is restarted.
301 BOOTSTRAPPER_EXECUTEMSITRANSACTIONCOMPLETE_ACTION_RESTART,
302};
303
296enum BOOTSTRAPPER_EXECUTEPROCESSCANCEL_ACTION 304enum BOOTSTRAPPER_EXECUTEPROCESSCANCEL_ACTION
297{ 305{
298 // Instructs the engine to stop waiting for the process to exit. 306 // Instructs the engine to stop waiting for the process to exit.
@@ -697,11 +705,14 @@ struct BA_ONCOMMITMSITRANSACTIONCOMPLETE_ARGS
697 DWORD cbSize; 705 DWORD cbSize;
698 LPCWSTR wzTransactionId; 706 LPCWSTR wzTransactionId;
699 HRESULT hrStatus; 707 HRESULT hrStatus;
708 BOOTSTRAPPER_APPLY_RESTART restart;
709 BOOTSTRAPPER_EXECUTEMSITRANSACTIONCOMPLETE_ACTION recommendation;
700}; 710};
701 711
702struct BA_ONCOMMITMSITRANSACTIONCOMPLETE_RESULTS 712struct BA_ONCOMMITMSITRANSACTIONCOMPLETE_RESULTS
703{ 713{
704 DWORD cbSize; 714 DWORD cbSize;
715 BOOTSTRAPPER_EXECUTEMSITRANSACTIONCOMPLETE_ACTION action;
705}; 716};
706 717
707struct BA_ONDETECTBEGIN_ARGS 718struct BA_ONDETECTBEGIN_ARGS
@@ -1417,11 +1428,14 @@ struct BA_ONROLLBACKMSITRANSACTIONCOMPLETE_ARGS
1417 DWORD cbSize; 1428 DWORD cbSize;
1418 LPCWSTR wzTransactionId; 1429 LPCWSTR wzTransactionId;
1419 HRESULT hrStatus; 1430 HRESULT hrStatus;
1431 BOOTSTRAPPER_APPLY_RESTART restart;
1432 BOOTSTRAPPER_EXECUTEMSITRANSACTIONCOMPLETE_ACTION recommendation;
1420}; 1433};
1421 1434
1422struct BA_ONROLLBACKMSITRANSACTIONCOMPLETE_RESULTS 1435struct BA_ONROLLBACKMSITRANSACTIONCOMPLETE_RESULTS
1423{ 1436{
1424 DWORD cbSize; 1437 DWORD cbSize;
1438 BOOTSTRAPPER_EXECUTEMSITRANSACTIONCOMPLETE_ACTION action;
1425}; 1439};
1426 1440
1427struct BA_ONSETUPDATEBEGIN_ARGS 1441struct BA_ONSETUPDATEBEGIN_ARGS