I have found that the MsiSetMode(hInstall, MSIRUNMODE_REBOOTNOW, TRUE) can be called from deferred custom action and it seems that this will solve the problem.
Are there any 'issues' regarding the MSIRUNMODE_REBOOTNOW (except for reboot itself)? thanks again... Stefan Stefan Pavlik wrote: > Hi > > I am installing some drivers (intermediate filter driver). > During update of the product the driver needs to be uninstalled and > installed again (I am not sure why). > My problem is that the uninstallation of the driver sometimes ends > with NETCFG_S_REBOOT error (success but reboot is required to complete). > > My question is: > Is it possible to call the ForceReboot action from deferred Custom > Action? > > I have tried MsiDoAction(hMsiHandle, L"ForceReboot") but if it is > called from deferred custom action it ends with error 6 (invalid > handle). > I am able to schedule the ForceReboot action (e.g. MsiDoAction - > from immediate custom action) but in this time I do not know whether > the Reboot will be necessary. > > Thanks in advance > > Stefan > -- Stefan Pavlik | [EMAIL PROTECTED] Whitestein Technologies s.r.o. | www.whitestein.com Panenska 28 | 811 03 Bratislava | Slovak Republic Main +421 2 5443-5502 | Direct +421 2 5930-0735 ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users