Page 1 of 1
update 1; relaunch?
Posted: 18 Nov 2016 22:23
by JLoftus
Just updated from 17.30.0203 to 0204 using "update 1;" works great, thanks for this. One thing would be nice, like the SimpleUpdater script, would be to relaunch XY.
Maybe add a yes/no to relaunch?
Re: update 1; relaunch?
Posted: 18 Nov 2016 22:25
by admin
As I said in the change log:
Code: Select all
- When the update is finished you have to manually restart XYplorer. (If
it would be restarted from the installer it would inherit the elevated
rights of the installer, something you should better control
yourself.)
Re: update 1; relaunch?
Posted: 18 Nov 2016 22:26
by JLoftus
ah, missed that! Sorry Don, thanks!
Re: update 1; relaunch?
Posted: 18 Nov 2016 22:29
by JLoftus
BTW, I don't run XY elevated, and the SimpleUpdater script doesn't prompt UAC, yet it restarts?
Re: update 1; relaunch?
Posted: 19 Nov 2016 09:29
by admin
JLoftus wrote:BTW, I don't run XY elevated, and the SimpleUpdater script doesn't prompt UAC, yet it restarts?
Then your XYplorer.exe is not located in a protected folder.
I'm still thinking about a way to handle this...
Re: update 1; relaunch?
Posted: 19 Nov 2016 13:10
by highend
v17.30.0205 - 2016-11-19 12:58
+ SC update enhanced: Added flags that allow to auto-run the app after
install. Note, however, that the app will be run as administrator. There
is no way to run it as user (since it's done from the elevated installer).
Couldn't you just check if the current XY is a portable or installed one (portable = Startup.ini is missing ||
XYplorer.exe is NOT in an UAC protected folder)
and start the installer with / without admin permissions?
Re: update 1; relaunch?
Posted: 19 Nov 2016 13:30
by JLoftus
admin wrote:JLoftus wrote:BTW, I don't run XY elevated, and the SimpleUpdater script doesn't prompt UAC, yet it restarts?
Then your XYplorer.exe is not located in a protected folder.
I'm still thinking about a way to handle this...
Indeed, My XY is in fact installed in "C:\Program Files (x86)" however, I did grant my non-admin user full rights to that folder some time ago. Now it makes more sense, thanks.
Re: update 1; relaunch?
Posted: 19 Nov 2016 13:58
by Marco
Don, you're free to reuse my code

Re: update 1; relaunch?
Posted: 19 Nov 2016 13:59
by admin
highend wrote:v17.30.0205 - 2016-11-19 12:58
+ SC update enhanced: Added flags that allow to auto-run the app after
install. Note, however, that the app will be run as administrator. There
is no way to run it as user (since it's done from the elevated installer).
Couldn't you just check if the current XY is a portable or installed one (portable = Startup.ini is missing ||
XYplorer.exe is NOT in an UAC protected folder)
and start the installer with / without admin permissions?
Yes, I could. But that would require me to update, compile, and upload two separate installers for each beta release since the execution level has to be decided at compile time, not at runtime. That's just too much trouble.
Re: update 1; relaunch?
Posted: 19 Nov 2016 14:04
by admin
Marco wrote:Don, you're free to reuse my code

Thanks, but I prefer to outsource (almost) all problems to NSIS installer, not to insource new ones.
