Forums on Intune, SCCM, and Windows 11

Welcome to the forums. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your topics and posts, as well as connect with other members through your own private inbox!

SOLVED Deploying an app fails on first try but simple retrying fixes it

  • Thread starter Thread starter Bei60
  • Start date Start date
  • Replies Replies 0
  • Views Views 1K

Bei60

Member
Messages
12
Reaction score
0
Points
1
Hello,
So I'm trying to deploy VS Test Agent 2019 to my devices but it fails.
After running it for the first time from Software Center, it downloads everything but then fails. When I look the `Appenforce.log` it says it failed on the detection method, because it's undetected, but other than that it exists with the code 0.
When I go look for the folder of the program, it's not there for the first few minutes, but then it is created. If I go and click "retry" on the failed installation inside of the software center, then it will be successfully installed because now the folder is there. I'm not sure why it takes the folder a few minutes to be created.
This is my detection method:
ybjDWV3.png


All I use for installation is `vs_TestAgent.exe --quiet`.

Any idea what I can do?

Edit:

Found the solution. Seems like adding "--wait" fixes the issue. It waits for the installation process to return the finish before returning the exit code.
 
Last edited:
Back
Top