windows icon indicating copy to clipboard operation
windows copied to clipboard

[Question]: install.bat is required for normal operation

Open ghzxs opened this issue 3 months ago • 2 comments

Is your question not already answered in the FAQ?

  • [x] I made sure the question is not listed in the FAQ.

Is this a general question and not a technical issue?

  • [x] I am sure my question is not about a technical issue.

Question

@echo off
powershell -ExecutionPolicy Bypass -Command "winget install Mozilla.Firefox.zh-CN  --accept-source-agreements"
powershell -ExecutionPolicy Bypass -Command "winget install 9PKTQ5699M62 --accept-package-agreements"
powershell -ExecutionPolicy Bypass -Command "Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0"
powershell -ExecutionPolicy Bypass -Command "Start-Service sshd"

Tried running the script manually in CMD, so the result was normal. Unfortunately, the installation application does not run properly on the first deployment of Windows. How can this problem be resolved? The OEM has already been placed in the install.bat file.

ghzxs avatar Sep 26 '25 18:09 ghzxs

I would advice to redirect the output of the batch file to a .txt file for logging. Then after installation you can just open the .txt file and see what the errors are.

kroese avatar Oct 23 '25 09:10 kroese

I have the same issue from 2 days ago. Some before it, the install.bat run ok, but now is like skip the commands. only the echo "xxx" are writed to the log.txt file.

mrcheidel avatar Oct 30 '25 16:10 mrcheidel