New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nsis: installer updates #2067
nsis: installer updates #2067
Conversation
nice.
i wonder: could we integrate these tools into the (un)installer ? IIRC, windows often provides this Modify/Uninstall button in the Software Center, and I think the "clear properties" might be an excellent use-case. (I'm not entirely sure whether this would work for file associations as well, without letting the user jump through too many hoops...) |
indeed that is useful. I'll work on it. |
safer behavior: - the (un)installer refuses to do anything if it finds a currently running Pd(64). - check if there's write permission on target dir before attempting to do anything else. troubleshoot tools: - tool to clear Pd(64) preferences. (only runs at user scope). - tool to set which Pd(64) installation is used to open .pd files (scope can be user or allusers). - also these two tools are included in the uninstaller but here the '.pd' files repair is automatic (you don't have to choose which app). user scope: - admin users can choose to install or run troubleshot tools at user or allusers scope. alternate install: - user can choose to do an alternate install if there is already a default one. it prompts for a short string (like Pd-0.54-0-(alt) to be used to name the install folder, start menu folder, desktop shortcut and uninstall name. Tested to work correctly on WinXp(i386) and Win11(amd64).
it turned out that it's the simplest and useful one. it had been implemented in the uninstaller along with the 'clear prefs'. things I'm not totally sure
the installers in the link above had been updated. |
I always run into the issue that I have to change the paths manually in pd.nsi (to exclude '/tmp/' prefix) or it can't find the resources (which end up in c:/msys64/tmp/tmpblahblah). Is there a better way around this? Should that be a separate issue? |
yes this is odd. iirc during this days i built on linux without the |
well according to the message at the top of the file, the 'tmp' has to be there for miller's build environment using wine? Just seems like there should be some option or setting, and I'm wondering how other people use the scripts to make an installer on a real windows machine. Hard to imagine everyone having to manually edit the pd.nsi file every time.. (or maybe everyone just uses wine?) And if everyone does accomplish it by manually editing pd.nsi every time, that should probably be mentioned in the README or something so people don't just see an error and wonder why it isn't working. |
how about using the
|
doesn't work, I think the issue is that the script can't find things in "WORKDIR", and OUTDIR is different. I'm wondering if other people use it on windows without editing pd.nsi.
|
@sebshader thanks for the additional info. i think this warrants indeed a separate issue. |
in any case, please check whether 06d6632 in this PR fixes the issue. |
unfortunately not, now it's just: |
so trying to use the installer, I'm getting the "Refusing to continue, save and quit pd" message using the files on this branch. |
I'm pretty inexperienced with windows, but I'm not sure if the 'qprocess' exists..? |
32-bit NSISthis should be documented somewhere but the thing is that we have to compile with a 32-bit So get
then open the MINGW32 shell and compile. the About
|
running this gives:
this is the as I said above, when I use the 32-bit edit: tried with the 32 bit nsis version and it also failed. |
Oh, oh oh, thanks for the report. Scratching my head. I'm on win11 and works for me. Will test on win10 in 2'. |
Which version do you use? |
Edition Windows 10 Home |
I took from here that this should work but seems there is missing info |
I think we might have to use |
here is says that is not for all editions |
well I am on home addition and have |
https://superuser.com/questions/1440493/how-to-get-query-command-on-windows-10
thanks for leaving the documentation to a random SuperUser response, microsoft |
will work on it. Thanks for the valuable test. have to test if |
i thought a better way would be to use DDE as Pd is already using this on Windows (to open documents with an already running instance). however, it also seems that the current implementation uses the full path to the Lines 720 to 723 in c0a7c16
probably a running Pd(-GUI) should also register a more generic key which can be checked to see if there is any Pd(-GUI) running, and possibly foreground it (or quit it). also, I do not really know how easy it is to interact with DDE from NSIS (there is a very dated |
@sebshader can you test b0e8ab4 ? one good thing about @umlaeute yes, let's try to avoid using nsis plugins. |
@Lucarda yep works fine here now |
@Lucarda should we collect the feedback about the installer here? or on the mailinglist? (or can you setup a poll on your nextcloud instance?) |
I think the mailinglist is Ok (more people getting the call). If we find troubles with |
Following the call on the mailinglist, I'm going to collect the results here:
|
feel free to remove this comment again in order to not bury the summarizing table above ... since it's not mentioned there: it works perfectly well including the warning for a running Pd instance on:
(installed at user scope - since no admin rights available here) |
@ben-wes thanks. since your "11th Gen Intel(R) Core(TM) i7-1165G7" is capable of both |
@umlaeute : good point. sorry i didn't clarify. had only tested EDIT: to clarify after @Lucarda comment below: by these two versions, i refer to |
@umlaeute to not get in confusions: both of the installers are 32bit |
@Lucarda i'm not at all confused. so for now, i would avoid talking about the architecture of the installer as it doesn't give us any additional information, and - as you say - will just confuse people. |
@umlaeute warning!
it is. we get 32bit Windows programs from from 32bit
there is no "only one" on EDIT: While working on the initial |
Sure, but that's an implementation detail. Esp with your call for feedback in mind, there is no mention/hint/... of a "64bit installer" (nsis64), but there is a "64bit (Pd) installer". The context where I used "64bit installer" was when talking to a user who took the question about "CPU" literally and reported their intel model, while the question was really "which of the two installers from the download folder did you use?" |
tested to work fine on Win7 (home) amd64 |
closing as the commits are already on the |
@Lucarda now that the branch has been merged, you could delete it from your repository :-) |
done |
This PR (targeted to
develop
) attempts to have a less prone to errors installer and also includes some troubleshooting tools.safer behavior:
the (un)installer refuses to do anything if it finds a currently running Pd(64).
check if there's write permission on target dir before attempting to do anything else.
troubleshoot tools:
tool to clear Pd(64) preferences. (only runs at
user
scope).tool to set which Pd(64) installation is used to open .pd files (scope can be
user
orallusers
).also these two tools are included in the uninstaller but here the '.pd' files repair is automatic (you don't have to choose which app).
user scope:
user
orallusers
scope.alternate install
Pd-0.54-0-(alt)
to be used to name the: install folder, start menu folder, desktop shortcut and uninstall name.Tested to work correctly on WinXp(i386) and Win11(amd64).
Test artifacts: https://nc.nubegris.com.ar/index.php/s/E7Pyg3M9ZA7Hygo