# This is a comment
main:
downl http://www.somewere.org/setup.zip
unzip setup.zip
after:
run setup.exe
But for advanced Stuff (like "if") we can go the Basic way here, too.
For more information about the package manager see the wiki and the topic Packet Manager on this board. General Things about it should be posted there.
Last edited by Dr. Fred on Thu Jan 06, 2005 5:20 pm, edited 2 times in total.
A batch file one is not good enough. It does not allow for file version checks, registering files, extra user input, downloading extra parts, updating and creating settings and much more. It simply does not have what is required.
Phalanx wrote:A batch file one is not good enough. It does not allow for file version checks, registering files, extra user input, downloading extra parts, updating and creating settings and much more. It simply does not have what is required.
Of course you can do that, it just depends which commands you implement. Just because it's a batch style, doesn't mean you're bound to standard batch file commands.
The lack of variables and control structures are the problem in doing the above things. It will mean you will have to create programs to do the install and updates and running them is all the batch script will do, which just makes more work.
I realize this might be an ignorant question, but why not just ship with (my favourite scripting language) Python? It's very simple, intuitive syntax, and is also very powerful.
Failing that, I would vote for basic ahead of batch.
4DOS Batch files have variabls, arrays, and alot of other things standard batch files don't... and since it's a win32 version, the screen drawing functions should be replaced with form drawing functions.
@echo off
openwin /title="My Window" /handle=01
addbutton /window=01 /x=50 /y=240 /caption="My Button" /errorlevel=1
...add more controls here...
do while errorlevel 0
loop
on errorlevel 1 do something
What do you think? Sort of Batch sort of event driven, and very powerful.[/code]