Skip to content

Commit

Permalink
winPB: Create Shortname for 'Program Files (x86)' before major instal…
Browse files Browse the repository at this point in the history
…lations (#1672)

* winPB: Create Shortname for 'Program Files (x86)' before any installations

* remove trailing space

Co-authored-by: George Adams <[email protected]>
  • Loading branch information
Willsparker and gdams authored Nov 16, 2020
1 parent e095426 commit a1df08e
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,15 @@
dest: C:\Users\Public\Desktop\cmd.lnk
icon: C:\Windows\System32\cmd.exe,0
tags: basic_config

# Builds need a shortname for Program Files (x86), that needs to be made without any major installations
# See: https://github.com/AdoptOpenJDK/openjdk-infrastructure/issues/1594#issuecomment-704229594
- name: Enable shortname creation
win_shell: "fsutil behavior set disable8dot3 0;"
tags: basic_config

- name: Ensure 'Program Files (x86)' has a shortname
win_shell: "fsutil file setshortname \"C:\\Program Files (x86)\" \"PROGRA~2\""
args:
executable: cmd
tags: basic_config

0 comments on commit a1df08e

Please sign in to comment.