The Oven

Builder World => PEBakery => Topic started by: NIKZZZZ on September 06, 2018, 09:41:45 AM

Title: TxtAddLine bug
Post by: NIKZZZZ on September 06, 2018, 09:41:45 AM
PEBakery Prerelease Beta 5
Script
Code: [Select]
FileCreateBlank,%w%
TxtAddline,%w%,"#NoTrayIcon",Append
TxtAddline,%w%,"#RequireAdmin",Append
Result
Code: [Select]
#NoTrayIcon
equireAdmin
Disappeared "#R" in "#RequireAdmin" .

 
Title: Re: TxtAddLine bug
Post by: Homes32 on September 06, 2018, 12:32:05 PM
Code: [Select]
[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.
Title: Re: TxtAddLine bug
Post by: ied206 on September 06, 2018, 01:48:01 PM
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].

Code: [Select]
[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).