Topic: TxtAddLine bug  (Read 843 times)

TxtAddLine bug
« on: September 06, 2018, 09:41:45 AM »

NIKZZZZ

  • Code Baker
  • Chef
  • ***
  • Date Registered: Feb 2011
  • Posts: 129
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" .

 

Re: TxtAddLine bug
« Reply #1 on: September 06, 2018, 12:32:05 PM »

Homes32

  • Code Baker
  • Chef
  • ***
  • Date Registered: Dec 2010
  • Posts: 177
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 for more info.
« Last Edit: September 06, 2018, 12:37:43 PM by Homes32 »

Re: TxtAddLine bug
« Reply #2 on: September 06, 2018, 01:48:01 PM »

ied206

  • Moderator,
  • Chef
  • *****
  • Location: South Korea
  • Date Registered: Jan 2014
  • Posts: 257
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).
« Last Edit: September 06, 2018, 01:55:23 PM by ied206 »

 

Powered by EzPortal