bravomail / tinier11

This is a script to automate the build of a streamlined Windows 10/11 image, similar to tiny11.
Apache License 2.0
84 stars 7 forks source link

Oscdimg not being recognized #3

Closed ShadowCodeX-debug closed 1 year ago

ShadowCodeX-debug commented 1 year ago

Oscdimg is not being found in the folder in which the bat file is in.

Steps on reproduction

  1. Download repository and then download ADK installer.
  2. Download the module with oscdimg in it.
  3. Move oscdimg.exe to the unzipped repository folder.
  4. Run the bat as admin.

Expected Behavior

It to work. Not a "not found" error.

image

Desktop Info

Additional

I used the amd64 version of oscdimg

bravomail commented 1 year ago

Hi. I was able to reproduce. I kept my oscdimg.exe in my utilities folder, not in script folder. Running as normal user (non-admin) would find oscdimg.exe, but running as admin changes current folder to \Windows\system32. I'm moving "changedir" command higher in the script to fix it. I already tested it locally.

bravomail commented 1 year ago

I commited the change to main fork. Test it. I already did. Thanks for finding this issue!

ShadowCodeX-debug commented 1 year ago

Np. It will take a bit for me to test it since I'm not at my computer.

ShadowCodeX-debug commented 1 year ago

Update: It does work, this is solved 🔥

bravomail commented 1 year ago

Closing the issue