可以载程序里写,加到注册表里
[HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/Run
Reg := TRegistry.Create;
Reg.RootKey:=HKEY_LOCAL_MACHINE;
Reg.CreateKey('Software/Microsoft/Windows/CurrentVersion/Run');
Reg.OpenKey('Software/Microsoft/Windows/CurrentVersion/Run' , True);
Reg.WriteString('xxts2.0',NewFileName+'FILENAME.exe');