SimpleUpdater — Rev. 10.69 / 2016/06/19

Discuss and share scripts and script files...
klownboy
Posts: 4139
Joined: 28 Feb 2012 19:27

Re: SimpleUpdater — Rev. 10.69 / 2016/06/19

Post by klownboy »

Hi Marco, I have been using SimpleUpdater.xys since you posted it a very long time ago. I noticed that after the update was completed, if I ran the following line of code XYplorer would exit. The code line is contained in a script which essentially gets me back to my normal layout and setup and will close an instance 2 if open/active.

Code: Select all

if(get("instance") == '2') {exit "n";end 1;}
See this thread for further background viewtopic.php?f=2&t=18520 In performing further testing and stepping through the script it turns out that echo get("instance"); will yield a "2" not a "1" when your script is completed and XY is restarted. I know your script uses SC get("instance"), but I'm having problems determining why, when XY restarts, it's in instance 2. Any thoughts? Using Don's internal SC update does not do this. Don't spend much time thinking about it unless you know off the top of your head...just curious. I'm using Rev 10.69 (latest) and using the 3 separate load lines to run discussed in the original post. Thanks.
Windows 11, 22H2 Build 22621.1555 at 100% 2560x1440

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

Re: SimpleUpdater — Rev. 10.69 / 2016/06/19

Post by Marco »

Hey,
frankly... I have no idea. If I knew how get("instance") works under the hood maybe I could give a diagnosis - the script in fact kills the current XY instance, and maybe that has some influence.
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

klownboy
Posts: 4139
Joined: 28 Feb 2012 19:27

Re: SimpleUpdater — Rev. 10.69 / 2016/06/19

Post by klownboy »

Thanks Marco, not a big deal. When I mentioned it to Don, he thought without looking at the script, that it might be due to "if it (the script) starts a new instance of XYplorer before closing its own instance (and itself), then this new instance will be #2." Of course we know now that when you close an instance 1 when a second instance exist, instance 2 remains as instance 2 (i.e., it doesn't automatically change to 1). Thanks again.
Windows 11, 22H2 Build 22621.1555 at 100% 2560x1440

Post Reply