-1

how to force Terminal to make reset after installing my cab ?

i made C# program and cab for WinCE

thanks in advance

Gali
  • 14,511
  • 28
  • 80
  • 105

1 Answers1

0

You can include an special dll file in your cab file named setup.dll. Inside this dlls there are several functions you can implement:

  • Install_Init
  • Install_Exit
  • Uninstall_Init
  • Uninstall_Exit

During the Install_Exit function you could try to reset the device programmatically by calling

KernelIoControl(IOCTL_HAL_REBOOT, NULL, 0, NULL, 0, NULL);

However, as stated here, the device OEM may or may not allow you to reset the device from a user application, so you may need to contact the OEM of the device for other alternatives.

yms
  • 10,361
  • 3
  • 38
  • 68