Is that the + on COPYs etc? I've seen people use it for copying an uninstall batch file (as they'll need to run it after WeiDU has uninstalled the COPYs), though personally I just have the batch files run from their install directory rather than copying them to the override.
Yeah, that '+'. My use was for detecting at game time (rather than at install time) the presence of a mod (it's needed for a very delicate problem between Refinements and G3Tweaks). Code follows:
<<<<<<<< nothere0.baf
IF
Global("tb#refinements0installed","global",1)
THEN
RESPONSE #100
SetGlobal("tb#refinements0installed","global",0)
Continue()
END
>>>>>>>>
<<<<<<<< here0.baf
IF
Global("tb#refinements0installed","global",0)
THEN
RESPONSE #100
SetGlobal("tb#refinements0installed","global",1)
Continue()
END
>>>>>>>>
COPY_EXISTING + ~baldur25.bcs~ ~override~
ACTION_IF NOT FILE_CONTAINS ~override/baldur.bcs~ ~tb#refinements0installed~ THEN
BEGIN
COPY_EXISTING ~baldur.bcs~ ~override/tempbaldur.bcs~
EXTEND_TOP ~tempbaldur.bcs~ ~nothere0.baf~
COPY_EXISTING + ~tempbaldur.bcs~ ~override/baldur.bcs~
END
COPY_EXISTING ~baldur.bcs~ ~override~
REPLACE_BCS_BLOCK ~nothere0.baf~ ~here0.baf~
ACTION_IF FILE_EXISTS_IN_GAME ~baldur25.bcs~
COPY_EXISTING + ~baldur.bcs~ ~override~
ACTION_IF NOT FILE_CONTAINS ~override/baldur25.bcs~ ~tb#refinements0installed~ THEN
BEGIN
COPY_EXISTING ~baldur25.bcs~ ~override/tempbaldur25.bcs~
EXTEND_TOP ~tempbaldur25.bcs~ ~nothere0.baf~
COPY_EXISTING + ~tempbaldur25.bcs~ ~override/baldur25.bcs~
END
COPY_EXISTING ~baldur25.bcs~ ~override~
REPLACE_BCS_BLOCK ~nothere0.baf~ ~here0.baf~
END
Rhetorical question to Weimer: is it possible to have the optnobackup option also for EXTEND_TOP? (this would allow me to skip the two lines regarding tempbaldur.bcs, so no biggie).
It's easier than using AT_UNINSTALL, but it's not still strictly needed