I have produced an EXE file from a simple VI. at the end of the execution the user is asked whether they want to repeat the VI or not, to do this i have used a while loop. If the user answers yes the vi executes again. However, if the user selects no the VI stops but remains open. I require the VI/EXE to close down if no is clicked.
There are a couple of ways to do this. First, there is a function called "Quit LabVIEW" inside the "Application Control" functions palette. You can call this when you are at the very end of your application. Second, a LabVIEW application will exit, if there are no front panels open. You can use VI Server to close the front panel of your VI at the very end of execution.
I can't build standalone applications myself, but I use the "Quit LabView" VI from the Application Controls panel. I assume that using this VI in standalone mode will just quit the application.