Application.ExecutableFile
From Xojo Documentation
Read-Only Property (As FolderItem )
Returns a FolderItem for the actual executable application even if it is in a bundle.
Notes
Application.ExecutableFile returns Nil if the app has been deleted or an error occurs finding it.
Sample Code
Use the properties and methods of the FolderItem class to get/set attributes of the executable file and/or perform operations. For example:
App.ExecutableFile.NativePath
gets the full path to the executable.
App.ExecutableFile.CreationDate
gets the date/time the executable was created.