[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help with Windows installer - nsis
From: |
Richard Shann |
Subject: |
Re: Help with Windows installer - nsis |
Date: |
Tue, 02 Jun 2020 10:29:50 +0100 |
On Tue, 2020-06-02 at 10:14 +0100, Joe Wilkinson wrote:
> Hi Richard,
> On a 5 year old HP laptop running Windows 10 it installed fine.
> There is a shortcut in the start menu and one on the desktop.
Ah! I don't see those on Vista - what icon is used (I'm guessing some
sort of system default rather than the Denemo icon)?
> And the program seems to start fine, asking me if I want to keep my
> old
> commands, snippets etc.
That would be very strange if you already had run any denemo version
2.4.0 on the machine - is it that this machine hasn't previously run
that version?
> (I haven't run it fully, just started it up)
> Was it supposed to run denemo by a click on a music.denemo file?
You have to set up file associations - if you right click a
music.denemo file and choose "Open with ..." and select Denemo.bat and
then click on "Use this always" or some such it will happen.
I think it would be possible to tell the installer to do that but my
guess is it would involve registry entries and I wanted to avoid that
for fear of upsetting someone.
> That
> doesn't happen - I go into an XML reader.
> It downloaded
Do you mean installed?
> rather slower than I am used to with the daily file; were
> you standing on your ethernet cable (??!!)
> And it gave a window with every file name being extracted
that's an optional feature - I think it helps to reassure people that
something is happening.
> (this may be
> normal- I don't install many applications these days). The sheer
> number
> of them made me wonder at the size of the beast!
yes, it's got LilyPond in there and a certain amount of stuff not
needed but which would take too much investigations to identify :(
Thanks very much for the help.
Richard
> with best wishes
> Joe
>
> On 01/06/2020 22:04, Richard Shann wrote:
> > It occurred to me that it should be quite easy to make an installer
> > that would install the version 2.4 of Denemo for Windows that is
> > only
> > available as a zip file. That would be more comfortable for novice
> > users.
> > I came up with this script for the nsis installer creation program:
> >
> > 8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><
> > !include "MUI.nsh"
> > !define MUI_ABORTWARNING
> > !insertmacro MUI_PAGE_WELCOME
> > !insertmacro MUI_PAGE_DIRECTORY
> > !insertmacro MUI_PAGE_INSTFILES
> > !insertmacro MUI_PAGE_FINISH
> > !insertmacro MUI_LANGUAGE "English"
> >
> > Name "Denemo"
> > OutFile "DenemoInstaller.exe"
> > InstallDir "$PROGRAMFILES\Denemo"
> > ShowInstDetails show
> > RequestExecutionLevel admin
> > Section
> > SetOutPath $INSTDIR
> > File /r denemo\*
> > CreateShortcut "$SMPROGRAMS\Denemo.lnk" "$INSTDIR\Denemo.bat"
> > CreateShortcut "$DESKTOP\Denemo.lnk" "$INSTDIR\Denemo.bat"
> > SectionEnd
> >
> >
> > 8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><
> >
> > Using that I got this installer
> >
> > http://www.denemo.org/~rshann/Denemo2.4Installer.exe
> >
> > I've tested this on an old Windows vista laptop (all I have access
> > to)
> > and it does install Denemo correctly. However, the script is
> > intended
> > to create a shortcut in the start menu and one on the Desktop to
> > launch
> > the program and these don't appear.
> >
> > 1) Could people with more modern Windows gear test that it works?
> >
> > 2) Could someone suggest why the links don't appear?
> >
> > Thanks in advance!
> >
> > Richard
> >
> >
> >
>
>