Bug: Continuous '-c' Argument doesnt seem to be working
TheJaysH opened this issue · comments
Hi,
Had great success with the project many times. However, I am using it in an automated manner and the -c
argument isnt working as intended. Unfortunatly I am still getting the "Press any key to continue..." message. And thus the process waits for input before it closes.
Thank you for the project! Great work btw 👍
As a
User who uses the application in a programmatic fashion
I expect
The application to exit automatically when the
-c
argument is used
So that
I do not have to watch STDOUT to find out when the application has finished.
Arguments used:
UWPInjector.exe -c -p 1234 -d "C:\Folder"
UWPInjector.exe -p 1234 -d "C:\Folder" -c
just like to add this is upon a successful dump.
Strange... All instances of the Press any key to continue...
(called by system("pause")
) should be guarded by the -c
flag. Especially on a successful dump.
UWPDumper/UWPInjector/source/main.cpp
Lines 411 to 438 in 4cd86f6
You say you see Press any key to continue...
even after it has finished dumping? It should immediately exit if you haven't seen that message any time up to that point already either. Does it do this even when you call the above commands directly from the terminal?
I havent had chance to work on my project this week, so will do some more testing once i get chance. Thanks for looking into this for me 👍