perappdeploy.cmd when run through Windows Terminal sometimes doesn't detect Ctrl-C reliably, this makes the batch file continue on after symlink deletion. Making it a bit sketchy when all I want is to just delete the symlinks.
The changes I propose implements a pause before going into the deployment phase, and will continue only if the user answers y.
In addition, I also added empty lines around the last question to make it stand out more.
Just pressing enter without answering to all questions would have terminated the script more reliably than CTRL+C. But this is good improvement. Not everyone would have figured that out.
perappdeploy.cmd
when run through Windows Terminal sometimes doesn't detect Ctrl-C reliably, this makes the batch file continue on after symlink deletion. Making it a bit sketchy when all I want is to just delete the symlinks.The changes I propose implements a pause before going into the deployment phase, and will continue only if the user answers
y
.In addition, I also added empty lines around the last question to make it stand out more.