Problem running multiple CliWrap commands #211
RabbitWolf62
started this conversation in
General
Replies: 4 comments 2 replies
-
It's like throwing an exception that your application isn't handling. Does it step after |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi Tyrrrz, I tried that, but no exception is thrown. Tracy |
Beta Was this translation helpful? Give feedback.
1 reply
-
Hi,
I have attached a simple example that reproduces the problem.
Thank You,
Tracy
…On 5/25/2023 3:41 AM, Oleksii Holub wrote:
Can you provide a minimal but complete reproduction for this?
—
Reply to this email directly, view it on GitHub
<#211 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKD756W6SPG4KHX3DCM2IVDXH4ZO7ANCNFSM6AAAAAAYOTYCXE>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi,
One thing to keep in mind is that you need to run Visual Studio as
Administrator to use the SC command.
Tracy
…On 5/25/2023 3:41 AM, Oleksii Holub wrote:
Can you provide a minimal but complete reproduction for this?
—
Reply to this email directly, view it on GitHub
<#211 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKD756W6SPG4KHX3DCM2IVDXH4ZO7ANCNFSM6AAAAAAYOTYCXE>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have a project that is using CliWrap to execute SC commands. The commands are used to install and start or stop and uninstall a BackgroundService as a Windows Service.
My code looks like this:
The problem I am having is that the first CliWrap("sc") works, but the program just stops and exits when executing the second CliWrap("sc").
However, I have found that I can get these calls to work if I put a debugger break in the CliWrap method in BufferedCommandExtensions:
If I put a breakpoint at the line indicated above and then continue from there, everything works fine.
Thank You,
Tracy
Beta Was this translation helpful? Give feedback.
All reactions