update 1; relaunch?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
JLoftus
Posts: 600
Joined: 22 Jan 2014 14:58

update 1; relaunch?

Post 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?

admin
Site Admin
Posts: 66677
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: update 1; relaunch?

Post 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.)

JLoftus
Posts: 600
Joined: 22 Jan 2014 14:58

Re: update 1; relaunch?

Post by JLoftus »

ah, missed that! Sorry Don, thanks!

JLoftus
Posts: 600
Joined: 22 Jan 2014 14:58

Re: update 1; relaunch?

Post by JLoftus »

BTW, I don't run XY elevated, and the SimpleUpdater script doesn't prompt UAC, yet it restarts?

admin
Site Admin
Posts: 66677
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: update 1; relaunch?

Post 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...

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: update 1; relaunch?

Post 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?
One of my scripts helped you out? Please donate via Paypal

JLoftus
Posts: 600
Joined: 22 Jan 2014 14:58

Re: update 1; relaunch?

Post 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.

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: update 1; relaunch?

Post by Marco »

Don, you're free to reuse my code :mrgreen:
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

admin
Site Admin
Posts: 66677
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: update 1; relaunch?

Post 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.

admin
Site Admin
Posts: 66677
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: update 1; relaunch?

Post by admin »

Marco wrote:Don, you're free to reuse my code :mrgreen:
Thanks, but I prefer to outsource (almost) all problems to NSIS installer, not to insource new ones. :)

Post Reply