Tuesday, October 5, 2010

reboot function in installshield

///////write it in separate .rul file and name it for example reboot.rul/////
 #define TITLE_TEXT "reboot example"
// Include Ifx.h for built-in InstallScript function prototypes.
#include "Ifx.h"
 prototype kRebootDialog();
function kRebootDialog()
    NUMBER nvDefChoice;
begin
    // Query to reboot computer.
    RebootDialog (TITLE_TEXT, "", 0);
end;
///////////////////////////call this function in a separate .rul file. and include ........
#include "reboot.rul"

function OnFirstUIBefore()
begin

kRebootDialog();
end;

No comments:

Post a Comment