PDA

View Full Version : To avoid Re-boot Dialog box popping up!



magesh_wanda
08-30-2003, 02:22 AM
Hi all,
Right now I am using Install Shield 6.3 Professional Ver to package VC++ MFC application with MS Access database. I am also using some ATL COM .dlls. I am manually registereing COM .dlls using Install Shield scripts.

Automatically I'm getting FinishReboot dialogue box without any code for that.

My necessity is to give a message to the user saying "Re-booting is essential for the application to work properly". As this re-boot dialogue appears automatically, I could not control anything, while the user clicks "No, not to reboot"

Can anyone help me, how to supress this Reboot dialogue which appears automatically at the end of installation.

Any help would be appreciated..

Thanks in advance.

regds
Magesh

niranbhimaiah
08-30-2003, 07:24 AM
Reboot is required or not can be checked as follows:

if (BATCH_INSTALL) then

//reboot required

else

//reboot not required

endif;


You can display a message box when the user clicks on "no i will restart later"
You can try the following for this:

if ( SdFinishReboot(szTitle,szMsg1,nDefOption,szMsg2,0) = 1) then
MessageBox ("Setup will be complete only after you restart the machine", WARNING);
endif;

Regards
Niran Bhimaiah