我需要提交以下命令:Inno Setup的 - BCDEDIT不工作
bcdedit /set {default} recoveryenabled No
,但它不是與Inno Setup的工作。
我已經試過如下:
[Setup]
PrivilegesRequired=admin
[Run]
Filename: "{cmd}"; Parameters: "/c ""bcdedit.exe /set recoveryenabled No""";
但我仍然看到No
不適用。正如你可以看到下面,它仍然是Yes
。但是當我手動從命令提示符執行相同的命令時,它可以工作。任何想法爲什麼它不在Inno安裝程序中工作?我也以管理員身份運行setup.exe
。
C:\windows\system32>bcdedit /v
Windows Boot Manager
--------------------
identifier {9dea862c-5cdd-4e70-acc1-f32b344d4795}
device partition=\Device\HarddiskVolume2
path \EFI\Microsoft\Boot\bootmgfw.efi
description Windows Boot Manager
locale en-GB
integrityservices Enable
timeout 30
Windows Boot Loader
-------------------
device partition=C:
path \windows\system32\winload.efi
description Windows 8.1
locale en-GB
integrityservices Enable
recoveryenabled Yes
isolatedcontext Yes
allowedinmemorysettings 0x15000075
osdevice partition=C:
systemroot \windows
nx OptIn
bootmenupolicy Standard
quietboot Yes