mirror of
https://github.com/dockur/windows.git
synced 2026-08-24 15:48:59 +01:00
fix: Hide long mode from 32-bit Windows guests (#2178)
This commit is contained in:
+9
-31
@@ -163,7 +163,6 @@ SIFInstall() {
|
||||
writeRegistry "$dir" "$shortcut" "$oem" "$regUsername" "$regPassword" "$driver" || return 1
|
||||
|
||||
appendRegistry "$dir" "$driver" || return 1
|
||||
writeNT5Effects "$dir" || return 1
|
||||
writeVBS "$dir" "$username" "$shortcut" "$driver" || return 1
|
||||
|
||||
return 0
|
||||
@@ -941,7 +940,15 @@ appendRegistry() {
|
||||
'"SCRNSAVE.EXE"="off"' \
|
||||
'"ScreenSaveActive"="0"' \
|
||||
'"DragFullWindows"="1"' \
|
||||
'"MenuShowDelay"="0"' \
|
||||
'"MenuShowDelay"="0"'
|
||||
|
||||
if [[ "$driver" == "2k" ]]; then
|
||||
printf '%s\n' '"UserPreferencesMask"=hex:9c,32,00,80'
|
||||
else
|
||||
printf '%s\n' '"UserPreferencesMask"=hex:9c,32,07,80'
|
||||
fi
|
||||
|
||||
printf '%s\n' \
|
||||
'' \
|
||||
'[HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics]' \
|
||||
'"MinAnimate"="0"' \
|
||||
@@ -1001,34 +1008,6 @@ appendRegistry() {
|
||||
return 0
|
||||
}
|
||||
|
||||
writeNT5Effects() {
|
||||
|
||||
local dir="$1"
|
||||
local target="$dir/\$OEM\$/effects.inf"
|
||||
|
||||
{
|
||||
printf '%s\n' \
|
||||
'[Version]' \
|
||||
"Signature=\"\$CHICAGO\$\"" \
|
||||
'' \
|
||||
'[DefaultInstall]' \
|
||||
'BitReg=DisableAnimations' \
|
||||
'' \
|
||||
'[DisableAnimations]' \
|
||||
'; Fade or slide menus into view' \
|
||||
'HKCU,"Control Panel\Desktop","UserPreferencesMask",0,0x02,0' \
|
||||
'' \
|
||||
'; Fade out menu items after clicking' \
|
||||
'HKCU,"Control Panel\Desktop","UserPreferencesMask",0,0x04,1' \
|
||||
'' \
|
||||
'; Fade or slide ToolTips into view' \
|
||||
'HKCU,"Control Panel\Desktop","UserPreferencesMask",0,0x08,1' \
|
||||
''
|
||||
} | unix2dos > "$target" || return 1
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
writeVBS() {
|
||||
|
||||
local dir="$1"
|
||||
@@ -1128,7 +1107,6 @@ writeVBS() {
|
||||
printf '%s\n' \
|
||||
'[COMMANDS]' \
|
||||
'"REGEDIT /s install.reg"' \
|
||||
'"RUNDLL32.EXE setupapi.dll,InstallHinfSection DefaultInstall 128 effects.inf"' \
|
||||
'"Wscript install.vbs"' \
|
||||
''
|
||||
} | unix2dos > "$dir/\$OEM\$/cmdlines.txt" || return 1
|
||||
|
||||
Reference in New Issue
Block a user