Application throws reboot prompt prior to installation

Hi Mates,

I have application while installing manually it throws reboot prompt prior to proceed for installation.once reboot machine and installation completed successfully.

I used in PSADT command like /silent /norestart -ignoreexitcodes '3010'

But middle of installation it's going automatically reboot.

Please help what are command needs to be used here to complete sucessful installation silently.

Regards,
Anil.

Hi,
We may need a little more information.

FYI there are two reboot codes:
3010 = Soft reboot (i.e. will usually prompt that a reboot is required)
1641 = Hard reboot (i.e. will usually just reboot without any prompt that a reboot is required)

Maybe you need to handle this and then gracefully notify your users using the PSADT Installation Restart Prompt:

If your installation is ending with something like 1641 as Adrian has suggested, it'd be best to edit the Close-ADTSession line to something like Close-ADTSession -ExitCode 3010 so that it can't ever leave PSADT with the hard reboot exit code.