You must be registered to see links
Sorry about the large filesize, but it was written in a clunky scripting language.
This tool can edit the hosts file even if it's marked as read-only, and marks it as read-only after running. It will also remove previously existing (non-commented) GG entries from the file.
Use this in your installer or as a launcher wrapper.
.ini options:
DoNotAskForConfirmation: Remove the confirmation window that allows you to cancel the procedure. Set to 1 if you need a 100% silent/automated execution.
ServerIPAddress: The IP address of your gunbound server, to be placed in the hosts file.
PromptForIPAddress: Ask the user in real time for the server's IP address. If you do not provide a ServerIPAddress, this value is ignored and the user is always asked. If you provide a ServerIPAddress and this value is 1, the query box will be filled with the ServerIPAddress by default.
NoWarnings: Disables the several warnings that tell you what went wrong if something does go wrong. Set to 1 if you want a silent/automated execution.
RunAfter: Set to 1 if you are using this tool as a launcher wrapper and wish to run the real launcher afterwards.
RelativeLauncherPath: The path to the real launcher, relative to the path of this tool (not used if RunAfter is 0).