The Oven
Builder World => PEBakery => Topic started by: NIKZZZZ on September 06, 2018, 09:41:45 AM
-
PEBakery Prerelease Beta 5
Script
FileCreateBlank,%w%
TxtAddline,%w%,"#NoTrayIcon",Append
TxtAddline,%w%,"#RequireAdmin",Append
Result
#NoTrayIcon
equireAdmin
Disappeared "#R" in "#RequireAdmin" .
-
[quote author=NIKZZZZ link=topic=2563.msg27617#msg27617 date=1536226905]
Disappeared "#R" in "#RequireAdmin" .
[/quote]
You need to enable the compatibility option Disable extended section parameters (e.g. #a, #r)
In previous releases #r was not case sensitive, however this was inconsistent with all other .script syntax, which is case insensitive so it was corrected in beta5. This brought about the above mentioned behavior so the compatibility option was created to counter act. (#r is PEBakery specific and is for the return value of a Run,.... command and is empty by default)
See https://github.com/pebakery/pebakery/issues/77 (https://github.com/pebakery/pebakery/issues/77) for more info.
-
Starting with beta 5, all compatibility options are turned off by default.
Turning each compat options forces PEBakery to emulate WinBuilder's bug/quirk, or turn off new features.
Since Win10PESE, Win10XPE is designed with WB082, they require several compat options being turned on.
To be short, create PEBakery.ini (in the same dir where PEBakeryLauncher.exe exists) and put these lines in section [Compat].
[Compat]
AsteriskBugDirCopy=True
AsteriskBugDirLink=True
FileRenameCanMoveDir=True
AllowLetterInLoop=False
LegacyBranchCondition=True
LegacyRegWrite=True
AllowSetModifyInterface=True
LegacyInterfaceCommand=True
IgnoreWidthOfWebLabel=True
OverridableFixedVariables=True
EnableEnvironmentVariables=True
DisableExtendedSectionParams=True
LegacySectionParamCommand=True
Then delete project temp directories, such as Temp and Target.
In next version, making PEBakery automatically provide appropriate compat options is planed (by detecting which project is being loaded).