Found,what should I do to fix ???
[main] value1=##$c##$ztest1 value2=test2
give me some minutes to prepare something here, I hope JFX will like too
Posted 08 February 2010 - 07:13 PM
Found,what should I do to fix ???
[main] value1=##$c##$ztest1 value2=test2
Posted 08 February 2010 - 07:22 PM
Not sure what you mean #$s is the only thing make sense in 0x7 and it works.@JFX
Please test with adding experimental escape strings to 0x7 registry, have fun.
example: prepare a 0x7 value with something like
string1=#$ctest1
string2=#$ztest2
I hope it works.....
Posted 08 February 2010 - 07:33 PM
Posted 08 February 2010 - 08:13 PM
Posted 08 February 2010 - 08:15 PM
JFX, test this:Not sure what you mean #$s is the only thing make sense in 0x7 and it works.
On first show, tree not build anymore (thanks, this gain lots of time), but still downloading index.html regardless of 'green arrow' , I am not sure it is intented that way, why should I need to download new index.html from previous selection if my aim is changing server !!!fixed - bug in download center: On first show tree was allways built, regardless of 'green arrow' definition
Posted 08 February 2010 - 08:33 PM
Posted 08 February 2010 - 08:46 PM
NOOOOOOOOOOOOO.Seems a bit complicated, you only check if a line exist in REG_MULTI_SZ?
Posted 09 February 2010 - 12:13 AM
Thanks for that Peter! This will simplify the ".exe and changelog" script as special .au3 program previously had be used to detect running WB executable (necessary for when WB exe has been renamed, say 'WinBuilder-078sp7.exe'.added - Variable %WBExe%
Posted 09 February 2010 - 03:40 AM
Hi Peter,added - RegAddMulti command
RegAddMulti,HKLM,Section,Key,APPEND,String RegAddMulti,HKLM,Section,Key,PREPEND,String RegAddMulti,HKLM,Section,Key,BEFORE,SubVal,String RegAddMulti,HKLM,Section,Key,BEHIND,SubVal,String RegAddMulti,HKLM,Section,Key,PLACE,Index,String RegAddMulti,HKLM,Section,Key,DELETE,SubVal
Posted 09 February 2010 - 03:45 AM
Is it feasible to check whether the string already exists and if so delete it and then write it back in to the position indicated by the command? Or is it better to just warn in the log and if a script needs a particular ordering then it should you 'DELETE' and then the other desired command, say 'PREPEND' or 'BEFORE'?Thanks! I'll prohibit that (tomorrow)
BTW: I think that all methods make it possible, because currently I do not check the presence of the string before write.
Posted 09 February 2010 - 01:59 PM
I prefer the second alternity. My opinion is that ALLWAYS the programmer has to decide, never the program.Is it feasible to check whether the string already exists and if so delete it and then write it back in to the position indicated by the command? Or is it better to just warn in the log and if a script needs a particular ordering then it should you 'DELETE' and then the other desired command, say 'PREPEND' or 'BEFORE'?
Regards,
Galapo.
[process] RegHiveLoad,WB-Software,%target_sys%\config\software RegWrite,HKLM,0x7,WB-Software\PSC,MultiInside1,one,two,three,five,six,seven If,EXISTREGMULTI,HKLM,WB-Software\PSC,MultiInside1,three,Echo,YES Else,Echo,NO If,EXISTREGMULTI,HKLM,WB-Software\PSC,MultiInside1,xxx,Echo,YES Else,Echo,NO RegAddMulti,HKLM,WB-Software\PSC,MultiInside1,INDEX,TWO,%var% Echo,%var% RegAddMulti,HKLM,WB-Software\PSC,MultiInside1,APPEND,bla RegAddMulti,HKLM,WB-Software\PSC,MultiInside1,APPEND,TWO RegWrite,HKLM,0x7,WB-Software\PSC,MultiInside2,one,two,three,five,six,seven RegAddMulti,HKLM,WB-Software\PSC,MultiInside2,PREPEND,bla RegAddMulti,HKLM,WB-Software\PSC,MultiInside2,PREPEND,TWO RegWrite,HKLM,0x7,WB-Software\PSC,MultiInside3,one,two,three,five,six,seven RegAddMulti,HKLM,WB-Software\PSC,MultiInside3,BEFORE,TWO,bla RegAddMulti,HKLM,WB-Software\PSC,MultiInside3,BEFORE,XXX,BLA RegAddMulti,HKLM,WB-Software\PSC,MultiInside3,BEFORE,three,five RegWrite,HKLM,0x7,WB-Software\PSC,MultiInside4,one,two,three,five,six,seven RegAddMulti,HKLM,WB-Software\PSC,MultiInside4,BEHIND,TWO,bla RegAddMulti,HKLM,WB-Software\PSC,MultiInside4,BEHIND,XXX,BLA RegAddMulti,HKLM,WB-Software\PSC,MultiInside4,BEHIND,three,five RegWrite,HKLM,0x7,WB-Software\PSC,MultiInside5,one,two,three,five,six,seven RegAddMulti,HKLM,WB-Software\PSC,MultiInside5,PLACE,2,bla RegAddMulti,HKLM,WB-Software\PSC,MultiInside5,PLACE,10,two RegAddMulti,HKLM,WB-Software\PSC,MultiInside5,PLACE,2,two RegAddMulti,HKLM,WB-Software\PSC,MultiInside5,PLACE,three,blabla RegWrite,HKLM,0x7,WB-Software\PSC,MultiInside6,one,two,three,five,six,seven RegAddMulti,HKLM,WB-Software\PSC,MultiInside6,DELETE,bla RegAddMulti,HKLM,WB-Software\PSC,MultiInside6,DELETE,two RegHiveUnLoad,WB-Software
Posted 09 February 2010 - 07:59 PM
๐๑๒๓๔๕๖๗๘๙
Posted 09 February 2010 - 08:13 PM
"Extract To Desktop" still not working (written previously on current topic at post 14)
On first show, tree not build anymore (thanks, this gain lots of time), but still downloading index.html regardless of 'green arrow' , I am not sure it is intented that way, why should I need to download new index.html from previous selection if my aim is changing server !!!
"Rebuild download tree only on on green arrow click (makes green arrow visible)"
1) typo: on on
Posted 09 February 2010 - 08:43 PM
I'm sorry, I do not understand any more.Request for RegWriteBinary:
RegWriteBinary,<HKEY>,<KeyType>,<Section>,<Keyname>,<Value>
Reason:
I can not write Thai localization infos to registry:
Posted 09 February 2010 - 09:46 PM
we do not even need RegAddMulti for CURRENT projects , all scripts already uses workaround which I try to explain to you for a loooooooooong while.current WB version is suited to be used for CURRENT projects
wrong, I wrote you the request for regwritebinary 1 or 2 days ago, check your archive.I do not know RegWriteBinary ?????
As seen from previous post, I request this command to get logable with winbuilder.Who intriduced this command in the WinBuilder version under discussion ?????
Partially wrong, probably you never get questions / requests / issues about specially Thai but you get questions / requests / issues about Asian Codes (probably Chinese). I remember topics about users asking support to write assian charecters (either for iniread or for regwrite , and probably for chinese) and since the Usual reply is wb not supporting unicode, they get away from things that requires unicode. check old topics asking support for unicode related stuff where you replied.And I never got some questions / requests / issues about Thai
I have not get response for minor things on my previous post ????? Extract to WRONG desktop is not necessary for building, but annoying like a bad working FF. Sorry I did not know reading right key from registry is that much hard.Let's go to this first post 'translated to simply question': Can this (or the current trash) be used to run current projects?
If not, I'm waiting for a description of the demanded NECESSARY changes.
Posted 09 February 2010 - 09:47 PM
Excellent, will do what we need.[b]changed - improved syntax check with warnings / errors in RegAddMulti command
added - RegAddMulti,HKLM,Section,Key,INDEX,SubVal,%Index%
added - If,EXISTREGMULTI,HKLM,Section,Key,SubVal,Command
Posted 10 February 2010 - 05:31 PM
Posted 11 February 2010 - 12:40 AM
Posted 11 February 2010 - 07:36 AM
Hi Peter,
There's a bug with CopyOrExpand not accepting PRESERVE and NOWARN passed as parameters.
http://www.boot-land...?...ost&p=91067
Thanks,
Galapo.
Posted 11 February 2010 - 08:23 AM
Thanks, Peter. CAPI now working!fixed - bug in scriptline parameter count check
Posted 11 February 2010 - 08:39 AM
Just wondering if you fixed Lancelot's issue of file extraction to desktop in scenario where user profile doesn't reside on %SystemDrive%?
lib := GetEnvironmentVariable('SystemRoot') + '\system32\shell32.dll'; h := LoadLibraryEx(PAnsiChar(lib), 0, LOAD_LIBRARY_AS_DATAFILE); // 21769 "Desktop" s := GetEnvironmentVariable('UserProfile') + '\' + getResString(h, 21769) + '\';I do not see any reason why in Lancelot's case the OS tells me the wrong desktop path.
Posted 11 February 2010 - 09:34 AM
Next Upload will have the value from registry. Maybe that helps.
RegReadInternal('HKEY_CURRENT_USER', 'Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders', 'Desktop', S);But the read value is "%USERPROFILE%\Desktop"
s := AnsiReplaceText(s, '%USERPROFILE%', GetEnvironmentVariable('UserProfile'));For me no logical difference to the old solution
Posted 11 February 2010 - 11:02 AM
Posted 11 February 2010 - 01:18 PM
I agree with you. Path to extract to desktop should be determined by a GetEnvironmentVariable('UserProfile') call.
Could Lancelot's issue be something to do with WB running under x64?
Posted 11 February 2010 - 01:27 PM
0 members, 0 guests, 0 anonymous users