Sunday, July 13, 2014

Diskpart fixes broken USB thumb drives

Ever used a thumbdrive for some funky stuff, like shipping a PS2 bootloader or a linux distro and afterwards your drive reports to only being a fraction of it's original size?

A simple format will often fix that, but this time i wasn't so lucky. Even in computer management it was impossible to format the unallocated space.



But there is another tool in the shed, and it's called diskpart.


Simply type diskpart in CMD to start it.
Then follow the procedure below to clean the master boot record on your device and replace it with a fresh new one.

Be aware that choosing the wrong disk in this dialog will ruin your day.
But once that is done you can go format the thumb drive like usual, and it's now back to it's full potential again.

Such space... wow!

Saturday, July 12, 2014

Single file .exe installer for Get Money Game

Having finished a project is always nice, but when trying to share your work you might find that a few things could be done better. For example it's not very convenient for other people to download shared folders.
And expecting the end user to keep track of the dependencies for you project is something only a Linux developer would consider sane.

This is the reason that the absolute majority of widely adopted software is being distributed as single file installers. Whether it's an self extracting archive, .msi or .exe doesn't matter much, as long as it follows the routine of:  'double click' ---> next ---> next ---> next ---> finish

And so i made my own custom installer for the game i made:
The project is on GitHub (Get Money Game installer)

And the installer can be downloaded directly

Now, this is a bit more work than using Install Shield or the OneClick installer, but it feels damn good to avoid the bloat and junk that comes with Install Shield. Currently the installer just installs, no uninstall is available, but the files are dropped to desktop and you just delete them if you want.


This shows an example on how an embedded resource can be retrieved and used.