UWPDumper icon indicating copy to clipboard operation
UWPDumper copied to clipboard

Bug: Continuous '-c' Argument doesnt seem to be working

Open TheJaysH opened this issue 4 years ago • 3 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

TheJaysH avatar Jan 06 '22 01:01 TheJaysH

just like to add this is upon a successful dump.

TheJaysH avatar Jan 06 '22 01:01 TheJaysH

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. https://github.com/Wunkolo/UWPDumper/blob/4cd86f673b198dcd3030cc2214369063ea17a44f/UWPInjector/source/main.cpp#L411-L438

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?

Wunkolo avatar Jan 06 '22 17:01 Wunkolo

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 👍

TheJaysH avatar Jan 09 '22 01:01 TheJaysH