Code center > Darwinbots Program Source Code

NSIS-based installer

<< < (2/5) > >>

Numsgil:
DarwinBots is what Carlo uses (the original coder).  I use Darwinbots.  I would say that Darwinbots is the modern spelling, and DarwinBots is an archaic spelling.

For adding files: are you familiar with the fact that you can save different simulating settings in settings files?  These have a .set file type.  Which is different than saving a simulation with file type .sim.  Basically they're a template for a new simulation.  I would add a few that set up some good settings for the different bots you're including.

And as for uninstalling, I think there should just be a warning if it wasn't able to delete something for some reason.  Don't know if the software allows that or not, though, but it would be nice.

goffrie:
Okay, I'll use "Darwinbots" then.

I am aware of .set files, although I wasn't too sure what you meant by "my new install does not start a simulation". Anyways, I did add Dominator Invincibalis, and created some basic (more or less tested) .set files. The only problem is that Republican Bee is significantly better at combat than the other bots, so I basically had to rig the settings in favour of the other bot, but it would still usually win in the end.

Also, I get what you mean by the warnings now. I'll see if I can do anything about that.

Numsgil:
Much appreciated

Oh, also, Excalibur might be another good bot to include.  It's had some fans recently, and been praised highly for its strength vs. ease of understanding.

goffrie:
Okay, new version time!

Has Alga Minimalis, Animal Minimalis, Dominator Invincibalis, Excalibur, Republican Bee, and Seasnake 1.0.
It now creates shortcuts on the desktop (always, just one) and in the start menu (there is an installer page for that). It also creates an entry in Add/Remove Programs.
If the uninstaller is unable to remove any files, it will warn the user. If it cannot then delete the folder, it will prompt to recursively delete the folders, and if it still cannot do so, it will ask if it can schedule the deletion for the next bootup. Yay NSIS.
It includes several basic setting files, although none of them include Excalibur because that was added at the last minute and I was lazy
It's been tested a few times (*cough* I've installed/uninstalled around... what, 20 times already? ) although I don't know if the delete-on-reboot works (it is an NSIS option so it should be okay.)

Once again, if you can put the latest version of Darwinbots in a standard place, I can have the installer automatically download it. You can have a zip called 'Darwin.zip' and it can contain the properly versioned .exe and it should be okay.

Hope you like it

[attachment=957:Darwin_setup.exe]
P.S. Go LZMA, 9MB executable -> 2.5MB installer = win

Numsgil:

--- Quote from: goffrie ---Once again, if you can put the latest version of Darwinbots in a standard place, I can have the installer automatically download it. You can have a zip called 'Darwin.zip' and it can contain the properly versioned .exe and it should be okay.
--- End quote ---

That's really Eric's area, since he's the one that'll have to place the new versions in the appropriate place.  Assuming we did it, though, would it be able to update all the shortcuts to point to the newest version?  It's really a pain trying to find the newest version to run from a list of 20 exes in the directory.

I'm testing the installer now...

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version