JCL Help:UnregisterAutoExec

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Unregisters the specified application for execution at logon.


Pascal

 function UnregisterAutoExec(ExecKind: TExecKind; const Name: string): Boolean;


Parameters

Parameters Description
ExecKind: TExecKind Specifies how the file was registered. See TExecKind for more information.
const Name: string Name of registry value to delete.


Return Value

The return value is that of a RegDeleteEntry except for calling UnregisterAutoExec with ekServiceRun or ekServiceRunOnce on Windows NT/2000 which causes the function to return False and do nothing.


Description

UnregisterAutoExec unregisters an application that is registered for autoexecution. You can use this function to remove an application that was registered as run always, or 'run once' if you change your mind (before reboot). If a file is registered as 'run once' and the system was rebooted there is no need to unregister because the system automatically removes the entry from the registry.


See Also

RegisterAutoExec TExecKind


About

Unit

JclRegistry


Donator

Marcel van Brakel


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page