Jump to content











Photo

How to use genUpdates


  • Please log in to reply
22 replies to this topic

#1 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 04 September 2006 - 03:09 PM

The contents of this post is obsolete!
Please go to post #6!

When you look into the upload area, you can find there programs I use for delivering .scripts.

Here a short explanation what they do.

Let me start with how my WinBuilder folder is organized.
In addition to standard folders it contains a subfolder 'WinBuilder_Sandbox'.
WinBuilder_Sandbox is an image of the Archive, Projects\PicoXP and Projects\Standard tree structure,so let me call it 'mage' in the folowing text..

The folders inside image contain only those .scripts and .links I want to publish (In WinBuilder itself there are much more test .scripts etc.).

That means:
For the very first time, when you setup this mechanism, you have to copy the actual files from the main directory to the image folder.

If you want to publish some of your scripts, the manual way is:
1st copy the scripts to image
2nd calculate the MD5s
3rd write updates.ini

This tasks are done by genUpdates.
It makes the copies and generates the updates.ini file based on the contents of image.
Syntax&#58; genUpdate <project> &#91;<project> &#91;...&#93;&#93; &#91;/a&#93; &#91;/u&#93; &#91;/t<target base dir>&#93; &#91;/s<source dir> &#91;/c&#93; &#91;/n&#93;&#93;

   /a&#58; Include Archives folder into projects

   /u&#58; Write &#39;Updates=http&#58;//upload.boot-land.net into the scripts

   /t&#58; use <target base dir> instead of default &#39;WinBuilder&#39;

   /s&#58; read data from &#39;%BaseDir%\<source dir>&#39; instead of default &#39;%BaseDir%&#39;

   /c&#58; Copy files from &#39;%BaseDir%&#39; to &#39;%BaseDir%\<source dir>&#39; before build list

   /n&#58; Change name extentions to &#39;.Script&#39; and &#39;.Link&#39; &#40;Uppercase first letter&#41;

  Sample&#58; genUPX PicoXP MyProject /u /a /tWinBuilder_Sandbox /c /sMyDir
Instead of using the complexe syntax you can use updates.cmd.

Result
;This file is automatically generated by psc program genUpdates

&#59;Date&#58; 2006-Sep-07 08&#58;43&#58;53

&#59;Command Line&#58; genUpdates PicoXP Standard /u -TWinBuilder_Sandbox -sWinBuilder_Sandbox /a /n 

  

  &#91;update&#93;

  autoUPX.Script=009,http&#58;//upload.boot-land.net/WinBuilder_Sandbox/Archive/autoTweaks/autoUPX.Script,a62077d ...

  CDRecord.Script=001,http&#58;//upload.boot-land.net/WinBuilder_Sandbox/Archive/Build/CDRecord.Script,2b5c55e8de ...

  ....
The MD5 is actually calculated by genUpdates.

The second program is scriptData.exe. It generates scriptData.ini, a description of the files inside your image.

When you upload your files to the upload area, you cannot upload the complete image folder at once. Usually the dir structure of your image folder and the dir structure of the upload area are different. By uploading everything at once you would destroy the target area. So upload file by file!
(I'm considering tools to help or to bypass :P )

.script developers may PM me and ask for the source code.

Peter

You can download the package at http://nativeex.boot...pdateServer.zip

Edited by psc, 27 August 2009 - 05:46 PM.


#2 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 06 January 2009 - 07:53 PM

Sorry,

After trying 2 hours with many trials, i give up now :cheers:

Thank you for tutorial and providing file. ;)

#3 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 06 January 2009 - 08:01 PM

Sorry,

After trying 2 hours with many trials, i give up now :cheers:

Thank you for tutorial and providing file. ;)

That looks like I have to review the more than three years old tutorial ... (or maybe, simultaniously adapt the app to current situation ...)

Sounds reasonable ...

Peter :cheers:

#4 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 06 January 2009 - 08:04 PM

I am not even 1 year old on boot-land :cheers:
and about coding, havent born yet ;)

An idea, when you review, it will be nice to give example for creating updates.ini for NativeEx_barebone :cheers:

Thanks for all, now i have to check my late monday review, sorry things goes slow these days.

#5 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 06 January 2009 - 08:12 PM

I am not even 1 year old on boot-land ;)
and about coding, havent born yet :cheers:

An idea, when you review, it will be nice to give example for creating updates.ini for NativeEx_barebone :cheers:

Thanks for all, now i have to check my late monday review, sorry things goes slow these days.

The only hope I have, that you, because of all these troubles, do not have the time to PM me your weekly complains.

Peter :cheers:

#6 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 02 April 2009 - 06:03 PM

We have a brandnew genUpdates.exe now!

The old one could not be used any more, because some WinBuilder server structures have been changed.

Therefore I decided to rewrite the application, but hold the known name.

The new genUpdates application
  • Has to be installed in the %BaseDir%, containing a valid WinBuilder.ini
  • Generates updates.ini and index.html in the %BaseDir% directory
    (compatible with WB 076)
HowTo:
  • Download genUpdates.zip
  • Unzip genUpdates.zip into %BaseDir%
  • Edit / change genUpdIni.cmd according your project structure
  • Run genUpdIni.cmd
    It generates updates.ini and index.html for the projects mentioned in genUpdIni.cmd
  • Upload updates.ini and index.html ...
Here the magic program:
Attached File  genUpdates.zip   47.84KB   180 downloads

Peter

#7 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 02 April 2009 - 06:28 PM

Thank you thank you thank you, after 3 months :) i am very happy :good: ^_^ ^_^ ^_^ :) ^_^ :) ^_^ :)

#8 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 02 April 2009 - 06:33 PM

I hope that you after being very happy, you'll be fully satisfied! :good:

Peter ^_^

#9 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 02 April 2009 - 06:53 PM

psc

only one mini thing
genUpdates LiveXP /TLiveXP_Extra /Wapps.winbuilder.net/LiveXPExtra/Projects

doesnt create the right links
example for a wrong link created by genupdate:
http://apps.winbuild...llonious.Script

right link fixed by me:
http://apps.winbuild...llonious.Script


:good: well this does not break my satisfaction, just noticed and reported. Also this does not make I am still verrrrrrrry happy with new genupdates.


ps: yep, i missed my timing. Everything goes very fast in life when you are a migrant ^_^

#10 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 02 April 2009 - 07:01 PM

Do you think that the troubles are caused by defining a 'project subfolder' rather than defining a project?

This really could be possible. During coding, in my brain there have been only projects under %BaseDir%\Projects, inspite I used complete paths.

Maybe here is a bug.

Peter

#11 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 03 April 2009 - 06:16 AM

Peter (psc)

this is not about %BaseDir%\Projects
this is about /W switch

genUpdates LiveXP /TLiveXP_Extra /Wapps.winbuilder.net/LiveXPExtra/Projects

http://apps.winbuilder.net-livexpextra-projects/LiveXP/Apps/CDVD/!Extra/AMOK_cddvd_burning_billonious.Script


/ converted to - in creation of links on index.html

on the default download list, these are the projects that will result bad linked index.html if genupdates used by developer

vistape.net/project
thuun.boot-land.net/WinBldr/XP-2K3/Projects
bartpe.boot-land.net/projects
vistape.net/beta

no problem to use with other projects which dont have / in their address (ex: livexp.boot-land.net, nativeex.boot-land.net ....)


ps: also better to leave folder.project name than using title :good:



as mentioned before, these 2 bugies dont break my satisfaction ^_^ , both are about index.html and even with bugies index.html gives the info required ^_^ ^_^ ^_^ ^_^

#12 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 03 April 2009 - 07:13 AM

Program in post #6 replaced by a new version. :good:

Peter

#13 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 03 April 2009 - 08:29 AM

genupapdates post #6 NOW have 2 bugies fixed :good:^_^^_^

perfect, marveleous, nobugy, wonderful ^_^ ^_^ ^_^ :)

#14 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 04 April 2009 - 07:35 PM

Hi Peter psc

verrrrrrrrrry sadly ^_^ i found a bug (thanks to amalux)

current index.html created by winbuilder
http://livexp.boot-land.net/

this is created by genupdates:
looking closely to links this is a wrong link
http://livexp.boot/land.net/LiveXP/Apps/CDVD/CDImageGUI.script

it should be
http://livexp.boot-land.net/LiveXP/Apps/CDVD/CDImageGUI.script



and
the techique of giving links is different, with giving example with UltraISO.script:

winbuilder:
<!-- UltraISO.script --><tbody><table class="container"<tr><tr><td class="s1">&nbsp;<a href="LiveXP/Apps/CDVD/UltraISO.script"><img alt="" src="http://boot-land.net...ges/script.gif" border="0"> UltraISO</a></td><td class="version">035</td><td class="size">4,79 Mb</td><td class="comment">CD/DVD image creation; mounting of images. Version 9.3.3.2685. UltraISO Copyright © 2002-2009 EZB Systems, Inc.</td><td class="author">Galapo</td></tbody></table>

genupdates:
<!-- UltraISO.script --><tbody><table class="container"<tr><tr><td class="s1">&nbsp;<a href="http://livexp.boot/l...SO.script"><img alt="" src="http://boot-land.net...ges/script.gif" border="0"> UltraISO</a></td><td class="version">035</td><td class="size">4,79 Mb</td><td class="comment">CD/DVD image creation; mounting of images. Version 9.3.3.2685. UltraISO Copyright © 2002-2009 EZB Systems, Inc.</td><td class="author">Galapo</td></tbody></table>

i believe winbuilder method is superior because it works both nice with uploaded and also when executed from projects folder. (maybe this is the solution !? that should be used for - / problem )



also i dont know if it has an effect but these lines in both updates.ini are different:

winbuilder
CDImageGUI.script=LiveXP/Apps/CDVD/CDImageGUI.script,83075d56e27a1cdcf8fedaed29461b3a,6,CDImageGUI,CD/DVD#$s.iso#$simage#$screation,Galapo,http://boot-land.net/forums,#854214,2

genupdates
CDImageGUI.script=LiveXP/Apps/CDVD/CDImageGUI.script,83075d56e27a1cdcf8fedaed29461b3a,6,CDImageGUI,CD/DVD#$s.iso#$simage#$screation,Galapo,,#854214,2




here is updates.ini and index.html generated by genupdates
http://lancelot.winb...nupdates310.rar

here is updates.ini and index.html generated by winbuilder
http://lancelot.winb...es--wb075b1.rar



i love genupdates toool a looooooooooooooot and it will help to all developers around, i hope these will be fixed soon :good:

#15 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 04 April 2009 - 10:25 PM

one more finding:

with using this command:
genUpdates LiveXP Tools /TLiveXP

Ultraiso script line:
<!-- UltraISO.script --><tbody><table class="container"<tr><tr><td class="s1">&nbsp;<a href="/LiveXP/Apps/CDVD/UltraISO.script"><img alt="" src="http://boot-land.net...ges/script.gif" border="0"> UltraISO</a></td><td class="version">035</td><td class="size">4,79 Mb</td><td class="comment">CD/DVD image creation; mounting of images. Version 9.3.3.2685. UltraISO Copyright © 2002-2009 EZB Systems, Inc.</td><td class="author">Galapo</td></tbody></table>

fixing with deleting /

<!-- UltraISO.script --><tbody><table class="container"<tr><tr><td class="s1">&nbsp;<a href="LiveXP/Apps/CDVD/UltraISO.script"><img alt="" src="http://boot-land.net...ges/script.gif" border="0"> UltraISO</a></td><td class="version">035</td><td class="size">4,79 Mb</td><td class="comment">CD/DVD image creation; mounting of images. Version 9.3.3.2685. UltraISO Copyright © 2002-2009 EZB Systems, Inc.</td><td class="author">Galapo</td></tbody></table>

everything seems to be alright (winbuilder dont use /)


for testing with livexp extra project:
i use this command line
genUpdates LiveXP /TLiveXP_Extra

opened index.html with notepad and replaced
<table class="container"<tr><tr><td class="s1">&nbsp;<a href="/
with this
<table class="container"<tr><tr><td class="s1">&nbsp;<a href="
and uploaded to server

check and see everthing works fine :good:,
http://apps.winbuild...Extra/Projects/

please dont produce / in index.html with genupdates ^_^

rest is up to you ^_^

#16 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 05 April 2009 - 08:17 AM

looking closely to links this is a wrong link
http://livexp.boot/land.net/LiveXP/Apps/CDVD/CDImageGUI.script

it should be
http://livexp.boot-land.net/LiveXP/Apps/CDVD/CDImageGUI.script


Corrected version 3.2.0 in post #6

Peter

#17 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 05 April 2009 - 08:20 AM

with using this command:
genUpdates LiveXP Tools /TLiveXP

You MUST define /W, e.g. /Wlivexp.boot-land.net

That puts the server before the slash

(The new version 3.2.0 brings an error if there is no /W)

Peter

#18 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 05 April 2009 - 08:23 AM

Peter

can we have option not using /W
so
without /Wlivexp.boot-land.net no slash
with /Wlivexp.boot-land.net a slash added after livexp.boot-land.net by genupdates (/W triggering the slash existance)

this seems to me more flexiable !? and smaller file :good: , you like or not ??

#19 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 05 April 2009 - 08:31 AM

genupdates v3.2.0

still buggy

genUpdates LiveXP Tools /TLiveXP /Wlivexp.boot-land.net

a result from index.html:

http://livexp.boot/land.net/LiveXP/Apps/CDVD/ImgBurn.script

#20 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 05 April 2009 - 08:33 AM

3.3.3 on the server.


BTW: 3.2.0 was not uploaded by mistake. There was still 3.1.0

Peter

#21 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 05 April 2009 - 08:41 AM

wonderfull ^_^ ^_^ ^_^


only some cosmetics ^_^

here is a snapshot from command window

D&#58;\winbuilder_LiveXP_DOWNLOAD_1_Minimum_Blue>genupdates

Syntax&#58; genUpdate project &#91;project &#91;...&#93;&#93; /t<Web Server Name> &#91;/w<Web Site>&#93;

Sample&#58; genUpdate nativeEX_barebone nativeEX_Core /tnativeEx /Wnativeex.boot-lan

d.net

Click Return to exit





D&#58;\winbuilder_LiveXP_DOWNLOAD_1_Minimum_Blue>genUpdates LiveXP Tools /TLiveXP

Generated&#58; D&#58;\winbuilder_LiveXP_DOWNLOAD_1_Minimum_Blueupdates.ini



D&#58;\winbuilder_LiveXP_DOWNLOAD_1_Minimum_Blue>

no version number when genupdates.exe executed alone
and
slash missing
Generated: D:\winbuilder_LiveXP_DOWNLOAD_1_Minimum_Blue\updates.ini


^_^
i guess you begin to hate slashes and / sign :) :) :good: :)

#22 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 05 April 2009 - 09:11 AM

genUpdates 3.4.0 online!

Peter

#23 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 05 April 2009 - 09:24 AM

wonderful, perfect, excellent ^_^ :) ^_^ :) ^_^ ^_^ :) :) :good: ^_^ :) :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users