Kitz Forum

Broadband Related => Router Monitoring Software => Topic started by: roseway on April 21, 2017, 04:47:56 PM

Title: DSLstats experimental self-extracting installers
Post by: roseway on April 21, 2017, 04:47:56 PM
Not before time, some may say, I've built self-extracting installers for the Windows and Linux versions of v5.9.3. The Raspberry Pi version isn't available as an installer at present, because the installer system I'm using doesn't support that architecture.

The Windows installer creates menu entries and desktop icons for launching the program. The Linux installers create desktop icons in the same folder as the extracted DSLstats files. If your Linux desktop supports program launch icons, you can drag the icon from the folder to the desktop. All the installers generate uninstall programs in the same folder.

I would appreciate it if you could try out these installers and let me know whether they do the job.

http://dslstats.me.uk/downloads.html (http://dslstats.me.uk/downloads.html) (scroll down the page)

Later: Please don't use the Windows version until I've done some more testing

Later still: New Windows version now available for download


Title: Re: DSLstats experimental self-extracting installers
Post by: Dray on April 21, 2017, 04:57:15 PM
On Win 10 after installation I get the message 'Unable to read data from file "specialrouters.dat"' when I run the exe
Title: Re: DSLstats experimental self-extracting installers
Post by: roseway on April 21, 2017, 06:25:06 PM
That's slightly odd. Did you use the default installation directory?
Title: Re: DSLstats experimental self-extracting installers
Post by: Dray on April 21, 2017, 06:46:09 PM
Yes, I just ran the installer
Title: Re: DSLstats experimental self-extracting installers
Post by: roseway on April 21, 2017, 07:12:13 PM
I just tried it on a Win8.1 system, and I got the same result. Yet the installed files routers.dat and specialrouters.dat are in place and they're not corrupted. The installer works fine on WinXP which is what I used to build and test it. More head scratching required.
Title: Re: DSLstats experimental self-extracting installers
Post by: 4candles on April 21, 2017, 09:08:53 PM
Perfect install on Win XP.   :)


Appeared in "Start - All Programs" as a new program, with the uninstall option.
Title: Re: DSLstats experimental self-extracting installers
Post by: Dray on April 21, 2017, 09:48:41 PM
Given that WinXP is now unsupported, is it worth/possible building an installer that targets win 8.1?
Title: Re: DSLstats experimental self-extracting installers
Post by: roseway on April 21, 2017, 10:39:46 PM
It's the same program building the installer, and it's packaging the same files. I don't think it makes any difference what version of Windows is used. But I am going to try building it on a Win 8.1 machine.
Title: Re: DSLstats experimental self-extracting installers
Post by: roseway on April 22, 2017, 10:41:51 AM
I've worked out what the problem with the Windows version is: DSLstats isn't happy being installed under C:\Program Files, except with Win XP. The installer does a perfectly good job of installing the files, but the default installation directory isn't suitable. What I have to work out now is what default directory to offer in the installer, which will fit all versions of Windows. If anyone can advise I would be grateful.
Title: Re: DSLstats experimental self-extracting installers
Post by: renluop on April 22, 2017, 10:46:10 AM
I have been naughty, having a nose around the self installer, or rather trying to: AVAST is avidly blocking the download.
Title: Re: DSLstats experimental self-extracting installers
Post by: roseway on April 22, 2017, 11:00:37 AM
Perhaps it doesn't like you to download executables directly? Self-extracting installers are quite common, so it seems to be excessively diligent.
Title: Re: DSLstats experimental self-extracting installers
Post by: d2d4j on April 22, 2017, 11:27:15 AM
Hi roseway

I could be wrong, so apologies in advance but I think you may have better luck using c:/users/all users/app data/local/

I may have not remembered the correct path, as I am not looking at a computer and memory is not as good as it once was sorry, but if you check /users/, you should see it, and by placing it in all users, it should have correct permissions

The only other thing which comes to mind is, most pc are 64 bit, so your original location would need to be program file (x86)

Once again, apologies if I am wrong sorry

Many thanks

John
Title: Re: DSLstats experimental self-extracting installers
Post by: renluop on April 22, 2017, 11:35:50 AM
Yep 32 bit progs do reside where you say, John.
Title: Re: DSLstats experimental self-extracting installers
Post by: roseway on April 22, 2017, 11:51:38 AM
Thanks for the suggestion. The problem with hard coding a directory like that is that it may not apply to all versions of Windows. A few people still use Windows XP, and that directory doesn't exist in XP. For the moment I've decided to use HOMEPATH, although of course the installer allows you to change it if you want. I've checked that this works on WinXP and Win 8.1, and DSLstats is happy there.

The new installer using this directory is now available for download.
Title: Re: DSLstats experimental self-extracting installers
Post by: Dray on April 22, 2017, 12:18:50 PM
That now works ok, but I would prefer it in a subdirectory of HOMEPATH called dslstats, rather than just putting all the files in HOMEPATH if that's possible
Title: Re: DSLstats experimental self-extracting installers
Post by: roseway on April 22, 2017, 12:45:37 PM
Yes, you're quite right. I meant to install the files in a subdirectory under HOMEPATH. I'll change it immediately.

Edit: Now changed to HOMEPATH\dslstats
Title: Re: DSLstats experimental self-extracting installers
Post by: renluop on April 22, 2017, 01:07:22 PM
downloaded ok. but refuses to list routers.
Title: Re: DSLstats experimental self-extracting installers
Post by: Dray on April 22, 2017, 02:45:27 PM
That appears to work properly under Win 10 now and the Uninstall icon is successful too :)
Title: Re: DSLstats experimental self-extracting installers
Post by: roseway on April 22, 2017, 02:50:41 PM
Thank you. :)
Title: Re: DSLstats experimental self-extracting installers
Post by: roseway on April 22, 2017, 02:55:56 PM
downloaded ok. but refuses to list routers.

Did you download the latest version, filename dslstats-5.9.3-2-windows-installer.exe?
And did you clean out your DSLstats configuration files before running it for the first time?
Title: Re: DSLstats experimental self-extracting installers
Post by: NewtronStar on April 22, 2017, 06:19:02 PM
Yeah the installer works on WIN10 and Windows defender makes a complaint my preferred location for DSLstats has always been C:\User\Me\documents\DSLstats, but with the installer I don't get the nice DSLstats Icon just a plain one.

Title: Re: DSLstats experimental self-extracting installers
Post by: roseway on April 22, 2017, 06:28:11 PM
Thanks for that. I'll check out the icon.
Title: Re: DSLstats experimental self-extracting installers
Post by: renluop on April 22, 2017, 07:20:00 PM
Did you download the latest version, filename dslstats-5.9.3-2-windows-installer.exe?
And did you clean out your DSLstats configuration files before running it for the first time?
I had cleaned out old stuff, but somehow had downloaded v.3.9.3.1. Another thorough clean, and this time found 5.3.9.2

AOK now! :fingers:

Thanks for help.
Title: Re: DSLstats experimental self-extracting installers
Post by: roseway on April 22, 2017, 07:29:05 PM
Excellent. Thank you for persevering. :)
Title: Re: DSLstats experimental self-extracting installers
Post by: roseway on April 22, 2017, 07:31:45 PM
Yeah the installer works on WIN10 and Windows defender makes a complaint my preferred location for DSLstats has always been C:\User\Me\documents\DSLstats, but with the installer I don't get the nice DSLstats Icon just a plain one.

I can't do much about Windows Defender unfortunately, but I have sorted out the icon. I won't upload yet another version just yet, to see if any other comments come in.
Title: Re: DSLstats experimental self-extracting installers
Post by: NewtronStar on April 22, 2017, 08:47:34 PM
Have also used the Installer on Windows 8.1 Pro and it works fine and uninstalls and the appdata where the DSLstats config file resides is unharmed  :thumbs:
Title: Re: DSLstats experimental self-extracting installers
Post by: roseway on April 22, 2017, 10:38:25 PM
Thank you for checking all that.
Title: Re: DSLstats experimental self-extracting installers
Post by: BigJ on April 23, 2017, 10:53:02 PM
Hi Roseway

Installing and uninstalling on Linux Mint 18.1 worked OK. One small suggestion if I may. How about offering an option to delete the contents of the .dslstats directory when uninstalling?
Title: Re: DSLstats experimental self-extracting installers
Post by: roseway on April 23, 2017, 10:56:59 PM
Thanks BigJ, that's a good thought.
Title: Re: DSLstats experimental self-extracting installers
Post by: Chrysalis on April 24, 2017, 12:42:31 AM
Generally speaking there should be no binaries inside the user profile folder, but I am guessing there is issues with using program files as other developers have also gone the same route.

I am using the portable version of dsl stats so never tested the installer.
Title: Re: DSLstats experimental self-extracting installers
Post by: tickmike on April 24, 2017, 02:03:40 AM
64Bit PCLinuxOS KDE on test laptop.
Clicked on your 64Bit Linux file on your website.
Menu box came up asking if I wanted to 'save file'. click >Save.
The correct directory came up (which I cleaned out old dslstats files).
Then clicking on the dslstats-5.9.3-linux-x64-installer.run in that directory another menu box came up 'Open With' Unless I choose say 'Ark' nothing happened.  :'(  :(
Not installed yet wait for your reply.
Works well on main laptop with normal method of Download the 'tar.gz' file to directory, extract it with 'Ark' put a  short-cut in start up 'Manage which programs start up automatically with KDE.' Program.
Title: Re: DSLstats experimental self-extracting installers
Post by: roseway on April 24, 2017, 07:18:28 AM
The .run file needs to be executable. It's lost it's executable bit somewhere along the way. Just make it executable and it should work fine.

This is not uncommon with downloads, and I need to add a comment to the instructions.
Title: Re: DSLstats experimental self-extracting installers
Post by: roseway on April 24, 2017, 07:24:54 AM
@Chrysalis: You're right. I found that the installer worked fine on Windows XP when installed under Program Files, but not with later versions of Windows which require administrator permission there. Working round that was beyond me so I took the easy option.
Title: Re: DSLstats experimental self-extracting installers
Post by: tickmike on April 24, 2017, 11:40:02 AM
The .run file needs to be executable. It's lost it's executable bit somewhere along the way. Just make it executable and it should work fine.

This is not uncommon with downloads, and I need to add a comment to the instructions.
Yes that now works ok and put icon on desktop. :)

The .run file has permissions of
Owner  r   w
Group   r   w
Others  r
Is executable = no
Owner = tickmike
Group = tickmike
--------------------------------
Now if I look at the tar.gz file permissions
Owner  r   w
Group   r   w
Others  r
Is executable = no
Owner = tickmike
Group = tickmike
----------------------------------------
If I look at the tar.gz file with 'Ark'    Owner = eric    Group = eric.

Hope this helps.
Title: Re: DSLstats experimental self-extracting installers
Post by: roseway on April 24, 2017, 11:53:39 AM
Thanks for that. The problem is that the executable bit isn't user dependent, and it's certainly set in the original file which I uploaded, but it gets lost somewhere in the upload/download process. I'll check if it still has the executable bit set on the server.
Title: Re: DSLstats experimental self-extracting installers
Post by: broadstairs on April 24, 2017, 03:36:42 PM
Eric I just downloaded the 64bit Linux installer and it did not have the executable bit set once downloaded.

Stuart

Just had a thought... could it be that using the http download it gets lost but if we were able to FTP download it might still have the bit set?
Title: Re: DSLstats experimental self-extracting installers
Post by: roseway on April 24, 2017, 04:04:14 PM
It's a thought, Stuart. I haven't had a chance to look at it yet.
Title: Re: DSLstats experimental self-extracting installers
Post by: roseway on April 24, 2017, 04:27:47 PM
I've now checked the files on the server, and the executable bit wasn't set on the files, so it was stripped during the FTP upload. But after setting the bit on the files on the server, it still gets lost in the download. I've tried wget, with the same result.

I can't give people direct access to the FTP server for security reasons, so I think I'm going to leave it there and add a comment advising Linux users that they need to set the executable bit before trying to run the downloaded .run files.
Title: Re: DSLstats experimental self-extracting installers
Post by: broadstairs on April 24, 2017, 05:10:15 PM
Actually it makes sense in some ways from a security perspective, make you think about executing it.... or not...

Stuart