Peter
I have seen a SetEsc, command, what is it for? I think this wasn't in earlier versions.
@Paraglider your help is the holy tool for the builder.
EDIT by pscEx: Moved to the support sub forum
Posted 01 June 2011 - 10:26 AM
Peter
Posted 01 June 2011 - 10:48 AM
I have seen a SetEsc, command, what is it for? I think this wasn't in earlier versions.
@Paraglider your help is the holy tool for the builder.
EDIT by pscEx: Moved to the support sub forum
%MyVariable%=%YourVariable%in [Variables] of script.project.
Set,%MyVariable%,%YourVariable%,PERMANENTnor with
Set,%MyVariable%,#$pYourVariable#$p,PERMANENTyou will have sucess. Try it for yourself! But do not forget to
Set,%YourVariable%,BlaBlaThe wanted result is reached with the SetEsc command:
SetEsc,%MyVariable%,#$pYourVariable#$p,PERMANENTPeter
Posted 01 June 2011 - 12:02 PM
Posted 01 June 2011 - 12:06 PM
Posted 01 June 2011 - 12:54 PM
Why is it needed in the first place?SetEsc
Set,%MyVariable%,%YourVariable%,PERMANENT
Posted 01 June 2011 - 01:57 PM
It works as intended, but perhaps the user expects a different result.Why is it needed in the first place?
Set,%MyVariable%,%YourVariable%,PERMANENT
If the switch does not work as intended, what is the purpose of a PERMANENT switch in that case?
[variables] %YourVariable%=BlaBla [Process] Set,%MyVariable1%,%YourVariable%,PERMANENT Set,%MyVariable2%,#$pYourVariable#$p,PERMANENT SetEsc,%MyVariable3%,#$pYourVariable#$p,PERMANENTIt results in script.project:
%MyVariable1%=BlaBla
%MyVariable2%=#$pYourVariable#$p
%MyVariable3%=%YourVariable%
Posted 01 June 2011 - 02:14 PM
SET YourVariable=BlaBla SET MyVariable1=%YourVariable% SET MyVariable2=a suffusion of yellow SET MyVariable3=YourVariable ::making PERMANENT using external program SETX MyVariable1=%YourVariable% SETX MyVariable2=a suffusion of yellow SETX MyVariable3=YourVariable
Posted 01 June 2011 - 02:50 PM
It works as intended, but perhaps the user expects a different result.
PERMANENT writes the value into [Variables] of script.project.
Posted 01 June 2011 - 03:54 PM
My view is very different.Project developers shouldn't use script.project for global variables that are continuously changing. This need would be better satisfied at an external file where only the scripts that require these settings will actually read and write them.
Too many variables hog the processing performance.
Posted 01 June 2011 - 04:25 PM
Posted 01 June 2011 - 05:09 PM
Posted 01 June 2011 - 05:42 PM
The LiveXP project of WB 072 times had 65 variables / macros. From my archive:The growing number of variables (91!) listed in a script.project is an example of messy structuring inside our current projects.
Forcing all app scripts to read a file is also another example where better structuring is needed.
These variables could be read once at runtime from an external file and stay in memory globally. This way you keep script.project readable and we can wipe out the external file with specific windows source details when needed.
This should be our goal for future times, adding a setEsc command is not something that we really need, is it?
[Variables] %target_win%=%TargetDir%\I386 %target_sys%=%TargetDir%\I386\System32 %source_win%=%SourceDir%\I386 %source_sys%=%SourceDir%\I386 %ProjectName%=livexp %GlobalTemp%=%BaseDir%\Temp %GlobalSupport%=%BaseDir%\Workbench %ProjectTemp%=%GlobalTemp%\%ProjectName% %GlobalTemplates%=%GlobalSupport%\Common %ProjectTemplates%=%GlobalSupport%\%ProjectName%\UserData %ProjectCache%=%GlobalSupport%\%ProjectName%\Cache %PPISODir%=%ProjectTemplates%\Data %PreISOName%=ISO-PreProcess.Script.txt %PostISOName%=ISO-PostProcess.Script.txt %PreISOScript%=%PPISODir%\%PreISOName% %PostISOScript%=%PPISODir%\%PostISOName% %shcTemp%=%ProjectTemp%\shcTemp.ini %HoJoPEdir%=%ProjectCache%\Prebuild %ProjectInfo%=%ProjectTemplates%\ProjectInfo.ini %ReOpenRoot%=%ProjectDir%\Tools\ReOpen %ProcessUPX%=%ProjectDir%\Tools\processUPX.Script %AutoRunFile%=%target_sys%\autorun.cmd %HoJoPEexe%=HoJoPE.exe %Core%=%ProjectDir% %ScriptLog%=%Core%\Basic\Build\ScriptLog.Script %EmptyHive%=%Core%\Basic\Build\EmptyHive.Script %AutoRunScript%=%Core%\Basic\Build\autoruns.Script %BuildModelScript%=%Core%\Basic\Build\4 - buildModel.Script %WBMScript%=%Core%\Basic\!WBManager\!WBManager.Script %OptionsScript%=%Core%\Basic\!WBManager\!myOptions.Script %ReOpenScript%=%Core%\Tools\ReOpen.Script %OLESupportScript%=%Core%\Basic\Build\7 - OLESupport.Script %API%=%ProjectDir%\Basic\Build\api.script Add_Shortcut=Run,%API%,AddShortcut Require_File=run,%API%,Expand_file Unpack=Run,%API%,Depack %reg_temp%=wb-hive %reg%\=%reg_temp%\ hive_load=run,%API%,reg_hiveload hive_unload=run,%API%,reg_hiveunload reg_add=RegWrite,"HKLM" associate_file=run,%API%,do_associate Not_Compatible=Run,%API%,NotCompatible Process_log=Run,%ScriptLog%,Process-log //Api_Cmd=run,%API%,ExecuteApiSection CopyProgram=run,%API%,Copy_Program Add_Asso=Run,%API%,Association %Target_prog%=%TargetDir%\Programme %PE_Programs%=%SystemDrive%\Programme reg_del=RegDelete,"HKLM" _FileCopy=run,%API%,Copy_Files _Calculate=run,%API%,Calculate %Debug%=0 %HoJoPELevel%=2 %RAMDriveLetter%=R: %SettingsDrive%=R: %ClearTarget%=1 %justCopy%=0 %RegTyp%=0x1 %bootfix%=True %OS%=XP %Open%=0 %ActiveShell%=C:\Dokumente und Einstellungen\Peter\Desktop\WB Archiv\Beta8\Projects\LiveXP\Basic\Shells\Explorer.Script %ExplorerShortcut%=shc-model
Posted 02 June 2011 - 12:34 PM
Posted 02 June 2011 - 01:39 PM
We do not need a setEsc command.
To be honest, I see no added value from having either PERMANENT or SetEsc.
If a developer wants to change a global variable, let them edit directly script.project using ini write.
Project developers shouldn't use script.project for global variables that are continuously changing. This need would be better satisfied at an external file where only the scripts that require these settings will actually read and write them.
Posted 02 June 2011 - 02:47 PM
Posted 02 June 2011 - 03:08 PM
Posted 02 June 2011 - 06:57 PM
Sorry that I do not respect your privacy. I give you to know.Sometimes I wonder what the heck is crossing the minds of both....
NO, I don't want to know...
Posted 03 June 2011 - 02:30 AM
Posted 03 June 2011 - 07:39 AM
I am sorry, but right now I cannot see the utility of that command.
I have the feeling that we could have solved the issue that made you add this command in anohther, IMHO better way.
A good idea would be, in the future, to discuss this kind of issues and their resolutions together before adding new commands, as I fear that adding too many commands may result in an unneeded complexity.
You must understand how adding commands in the actual Winbuilder executable have long lasting consequences and increases the chances of problems in portability of .scripts (or updating them) and/or "versioning nightmare" should the command be later removed or replaced by another one, we must be very careful when changing syntax, even if we only add a harmless command, it is important that we discuss it between us and publicly with the developers.
What the heck have you done!
Remove that §@ç#ing command, NOW!
From now on NEVER add a command before consulting me!![]()
Posted 03 June 2011 - 09:01 AM
Posted 06 June 2011 - 09:10 AM
0 members, 0 guests, 0 anonymous users