Hello,
This has nothing to do with a "dialog sequence". I think what you are looking for is the "Add RegistryRun Entry..." script function.
The Add RegistryRun Entry function creates a Run key that contains the name of a program to run when the computer starts.
Does this help?
Friedrich