Bitcoin Forum

Alternate cryptocurrencies => Announcements (Altcoins) => Topic started by: fruor on January 26, 2014, 12:45:12 AM



Title: [ANN] Installer / Setup Script for Windows Wallets
Post by: fruor on January 26, 2014, 12:45:12 AM
FOR COIN DEVELOPERS ONLY
DO NOT ACCEPT .EXE FILES FROM SOURCES YOU DO NOT TRUST!

I will not include any precompiled executables ITT, and I don't want any of those posted by random users.
If you are a Coin Dev and need help editing or compiling or you want an added feature, icons, folders etc. leave me a PM and I see what I can do.

---
Installing a client wallet on Windows is pretty easy, but still people do complain when struggling with config files, forgot where they unzipped the binaries to, don't find the AppData folder etc. As some of the Altcoins are aiming for the masses, it has become necessary to offer an easy-to-go install and usage of every client.

To make things easier I wrote an installer script for Altcoins, creating a convenient setup.exe out of the windows binaries. It can easily be adapted to match any Coin and should only be released by Coin devs themselves.

What does the setup file do?
- create and install the coin-qt.exe and daemon in the Program Files(x86)\ folder (or Program Files\ on 32bit Windows)
- copy a pre-prepared conf file to the user's \Appdata\Roaming folder
- make it available as uninstallable windows program
- create start menu items for the coin-qt.exe and the uninstaller
- create an optional desktop icon
- offer the user to import an existing wallet when installing on a new computer

Benefits:
Setup and Go - no more use for .conf file editing for the user if the released one works fine
Wallet Protection - the wallet (created on first launch or imported) will never be affected by uninstalling the client
Overwrite Protection - program files require user interaction if they already exist in their target destination (e.g. for updates), wallet file will never be overwritten
Cleaner Look - Shortcut Icons where they should be, and the client program has finally found its way to the Program Files folder
Open Source - this script is for your reviewing and editing and can be compiled with the well-respected Open Source Compiler Inno Setup

Quick & Dirty How-To:
  • Download coininstaller.iss and copy it to the path where the windows binary files reside
    You can also open this in a text editor and follow the routines, the language used is very close to Perl
    https://www.dropbox.com/s/cd87dfkx4qunaeh/coininstaller.iss (https://www.dropbox.com/s/cd87dfkx4qunaeh/coininstaller.iss)
  • Copy a .conf file to the same folder - this should be a .conf file the user will be having in it's Roaming\Appdata\CoinName\ folder, include nodes!
  • Download a copy of Inno Setup
    http://www.jrsoftware.org/isdl.php (http://www.jrsoftware.org/isdl.php)
  • Open the attached coininstaller.iss with it and edit it to match your coin
  • Go to Build-Compile or hit Strg+F9

the setup.exe (which has all files included) will be in the \SETUP folder of your windows binaries - test it and release to the masses

Donations are welcome!

BTC - 1Hh5AQjuvJjoSRXWV2NUpM2ctQdHH53SAS

LTC - LPf2V2JkYB7XiiNuGkHch8PcKJ2qFr4MFR

COINYE - 5SF2Qf9cUcSRvVvubAT8LmMCoiy6vUSse1


Title: Re: [ANN] Installer / Setup Script for Windows Wallets
Post by: Bit_Happy on March 13, 2014, 07:34:44 PM
This looks helpful, thanks.
Has anyone here tested it yet?


Title: Re: [ANN] Installer / Setup Script for Windows Wallets
Post by: d2dtk on April 30, 2014, 06:16:02 PM
This looks helpful, thanks.
Has anyone here tested it yet?

It installs everything needed to get the wallet running however there are not many nodes so it isn't connecting. Virus scan showed no results.