Upgrading Portable Version Successfully

Discussion related to "Everything" 1.5 Alpha.
Post Reply
focused_retention999
Posts: 3
Joined: Sun May 05, 2024 7:02 am

Upgrading Portable Version Successfully

Post by focused_retention999 »

Hello,

I am having the following trouble: Using recent features in Everything 1.5 alpha, most importantly sessions.
For example, I enable the session_store_restore_on_first_shown_window, but it doesn’t work.
I currently have version 1.5.0.1378a (x64).
I am almost sure the problems stems form using portable versions, and not removing and upgrading them properly when I switched between version.
I did find the threads instructing on how to cleanly remove the current portable version, before upgrading. However, I found out about the importance of these instructions later than I should, and, after applying them, they didn’t solve the problem.
Please advise on how to properly uproot or remove all previous everything versions, and then work with the most updated portable version with all features working.

Is it possible that I am doing something wrong with the options and activating sessions?
I have the program running in the tray, and I have an autohotkey-binding to open the Everything64.exe of the portable version 1.5.0.1383a.

The instruction that I followed:
  • 1. To completely uninstall the portable version of Everything:
    From a command prompt, run:

    Code: Select all

    Everything.exe -uninstall
    2. 2023 thread viewtopic.php?t=13048:
    If you would like to update with the portable version:
    • Completely exit Everything (right click the Everything system tray icon and click Exit).
    • From the Start menu, type in:
    services.msc
    • Right click Services and click Run as administrator.
    • Right click Everything and click Stop Service.
    • Overwrite your existing Everything.exe with the latest portable version.
    • In Services, Right click Everything and click Start Service.
    • Run Everything.exe
void
Developer
Posts: 17153
Joined: Fri Oct 16, 2009 11:31 pm

Re: Upgrading Portable Version Successfully

Post by void »

session_store_restore_on_first_shown_window was replaced with session_store_restore_on_first_new_window and closed_window_restore_on_first_new_window in Everything 1.5.0.1383a.

Please enable both of these if you want to auto restore your previous session.

There was issues with previous versions.



To update your portable Everything.exe (for Everything 1.5):
  • Exit Everything (File -> Exit)
  • Open the Task Manager with Ctrl + Shift + ESC
  • Click the Services tab.
  • Right click Everything and click Stop.
  • Replace your Everything.exe
  • Restart Everything.
tuska
Posts: 1098
Joined: Thu Jul 13, 2017 9:14 am

Re: Upgrading Portable Version Successfully

Post by tuska »

Based on a forum post by the author (link below),
I am performing an update/upgrade as follows in Everything 1.5:

The following setting must be made once:
Everything.ini

Code: Select all

stop_service_on_exit=1
Menu "Tools" > "Debug" > Config > stop_service_on_exit=1 > Save and close the file "Everything.ini" >
Switch back to 'Everything' and confirm e.g. this query by clicking on the "Yes" button:
Everything wrote:⚠ Reload configuration file?

C:\Everything\Everything.ini

The Everything configuration file has been modified outside of Everything.
Do you want to reload the modified configuration file?

Everything will restart to reload the modified configuration file.
                            Yes        No        Cancel
Remarks
File > Exit ALT+F4 ... stops the Everything Service (but does NOT uninstall the Everything Service!)).
After restarting 'Everything', the Everything Service is automatically executed immediately again.

⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺
Reference:
Can I avoid killing the Everything Service every time I...?
 
To update your portable Everything.exe (for Everything 1.5):
  • Exit Everything (File -> Exit)
  • Replace your Everything.exe and/or Everything64.exe
  • Restart Everything
When using multiple instances, I pay attention to the setting: stop_service_on_exit=1
- For the main instance I use the setting: stop_service_on_exit=1
- For sub instances I use the setting: stop_service_on_exit=0

See also from here onwards: Everything is not exiting when I close it
⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺

2void
It is not clear to me why the setting: stop_service_on_exit=1 is deleted from the
"Everything.ini" file in the installed Everything variant after a restart of 'Everything'.

C:\Program Files (x86)\Everything 1.5a\Everything.exe
C:\Users\user\AppData\Roaming\Everything\Everything-1.5a.ini

C:\Program Files (x86)\Everything 1.5a\Everything.exe    + file: NO_ALPHA_INSTANCE
C:\Users\user\AppData\Roaming\Everything\Everything.ini

C:\Program Files\Everything 1.5a\Everything64.exe         + file: NO_ALPHA_INSTANCE
C:\Users\user\AppData\Roaming\Everything\Everything.ini

Everything-1.5a.ini, Everything.ini  -->  (x64, x86) - write permissions available.

Please provide information.
Thank you.
therube
Posts: 5056
Joined: Thu Sep 03, 2009 6:48 pm

Re: Upgrading Portable Version Successfully

Post by therube »

• Completely exit Everything (right click the Everything system tray icon and click Exit).
• From the Start menu, type in:
services.msc
• Right click Services and click Run as administrator.
• Right click Everything and click Stop Service.
• Overwrite your existing Everything.exe with the latest portable version.
• In Services, Right click Everything and click Start Service.
• Run Everything.exe
Alternative to above (to directly running services.msc):

• Completely exit Everything (right click the Everything system tray icon and click Exit).
• From a command prompt in the directory where Everything.exe is located
C:\Everything_DIR> Everything.exe -uninstall-service
• Overwrite your existing Everything.exe with the latest portable version.
• From a command prompt in the directory where Everything.exe is located
C:\Everything_DIR> Everything.exe -install-service
• Run Everything.exe

(The -uninstall-service / -install-service steps should automatically prompt for Admin credentials.)
therube
Posts: 5056
Joined: Thu Sep 03, 2009 6:48 pm

Re: Upgrading Portable Version Successfully

Post by therube »

@tuska, (While we're here...) what is in those boxes, how does it display, on your end?
.
Everything - tuska, what is in those boxes.png
Everything - tuska, what is in those boxes.png (5.03 KiB) Viewed 14318 times
tuska
Posts: 1098
Joined: Thu Jul 13, 2017 9:14 am

Re: Upgrading Portable Version Successfully

Post by tuska »

2therube

That's what I see here with:
Symbol for line: UTF-16LE: 0x2E3A

Code: Select all

[b][size=150][color=#BF0000]⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺[/color][/size][/b]
2024-07-08_Symbol for line_UTF-16LE_0x2E3A.png
2024-07-08_Symbol for line_UTF-16LE_0x2E3A.png (21.99 KiB) Viewed 14306 times
 
I think I will use the underline in the future...
_________________________________________________
Windows 11 Pro (x64) Version 23H2 (OS Build 22631.3810)
void
Developer
Posts: 17153
Joined: Fri Oct 16, 2009 11:31 pm

Re: Upgrading Portable Version Successfully

Post by void »

stop_service_on_exit is a 'machine' setting.

This setting can only be changed in your Everything.ini in the same location as your Everything.exe



I will add a search command to stop the service: /stop-service /exit
I will also review an 'extract portable exe' option in the installer. (this would stop the service and extract the exe)
focused_retention999
Posts: 3
Joined: Sun May 05, 2024 7:02 am

Re: Upgrading Portable Version Successfully

Post by focused_retention999 »

Thank you all. It did work using the first suggestion.

On this note, I do have a feature suggestion if relevant: Pinning tabs.

That would retain certain tabs, with their queries (and maybe used filters), every time the program is opened. Thought I note this.
void
Developer
Posts: 17153
Joined: Fri Oct 16, 2009 11:31 pm

Re: Upgrading Portable Version Successfully

Post by void »

Pinned tabs is on my TODO list.

Thank you for the suggestion.
Herkules97
Posts: 78
Joined: Tue Oct 08, 2019 6:42 am

Re: Upgrading Portable Version Successfully

Post by Herkules97 »

therube wrote: Mon Jul 08, 2024 7:00 pm
• Completely exit Everything (right click the Everything system tray icon and click Exit).
• From the Start menu, type in:
services.msc
• Right click Services and click Run as administrator.
• Right click Everything and click Stop Service.
• Overwrite your existing Everything.exe with the latest portable version.
• In Services, Right click Everything and click Start Service.
• Run Everything.exe
Alternative to above (to directly running services.msc):

• Completely exit Everything (right click the Everything system tray icon and click Exit).
• From a command prompt in the directory where Everything.exe is located
C:\Everything_DIR> Everything.exe -uninstall-service
• Overwrite your existing Everything.exe with the latest portable version.
• From a command prompt in the directory where Everything.exe is located
C:\Everything_DIR> Everything.exe -install-service
• Run Everything.exe

(The -uninstall-service / -install-service steps should automatically prompt for Admin credentials.)
I don't know if I should ask this here or make a separate post referencing this..
What is the benefit of using the service vs. just running it as admin?
I've never used the service, maybe for the very first 1.4 db I ever had before I started with portable versions.
tuska
Posts: 1098
Joined: Thu Jul 13, 2017 9:14 am

Re: Upgrading Portable Version Successfully

Post by tuska »

The topic is well described in Wikipedia:
User Account Control
void
Developer
Posts: 17153
Joined: Fri Oct 16, 2009 11:31 pm

Re: Upgrading Portable Version Successfully

Post by void »

Running as admin Cons:
When running Everything as admin, any file you open will also run as admin.
non-admin windows cannot communicate with admin windows.
UAC prompts when running Everything.

The Everything Service allows the search GUI to run as a standard user and index your NTFS volumes.
The Everything Service has no noticeable resource usage. It's just a dumb/stateless wrapper to index NTFS volumes.

Also see the Index as admin option if you don't want to install the service in portable mode.
Herkules97
Posts: 78
Joined: Tue Oct 08, 2019 6:42 am

Re: Upgrading Portable Version Successfully

Post by Herkules97 »

void wrote: Tue Jul 30, 2024 10:48 am Running as admin Cons:
When running Everything as admin, any file you open will also run as admin.
non-admin windows cannot communicate with admin windows.
UAC prompts when running Everything.

The Everything Service allows the search GUI to run as a standard user and index your NTFS volumes.
The Everything Service has no noticeable resource usage. It's just a dumb/stateless wrapper to index NTFS volumes.

Also see the Index as admin option if you don't want to install the service in portable mode.
Ok, should I have made a separate post for my question? For the future.

I think the only program that hasn't worked for me via admin EBV is Adobe Reader.
But that seems like an Adobe issue.
Last edited by Herkules97 on Wed Jul 31, 2024 5:40 am, edited 1 time in total.
void
Developer
Posts: 17153
Joined: Fri Oct 16, 2009 11:31 pm

Re: Upgrading Portable Version Successfully

Post by void »

Ok, should I have made a separate post for my question? For the future.
Yes, please.
(it doesn't really matter -I will move your post to a new thread if it's completely off topic ;) )
void
Developer
Posts: 17153
Joined: Fri Oct 16, 2009 11:31 pm

Re: Upgrading Portable Version Successfully

Post by void »

Everything 1.5.0.1384a adds a stop-service search command:

Code: Select all

/stop-service
/exit
(update Everything)
tuska
Posts: 1098
Joined: Thu Jul 13, 2017 9:14 am

Re: Upgrading Portable Version Successfully

Post by tuska »

void wrote: Fri Nov 29, 2024 6:46 am Everything 1.5.0.1384a adds a stop-service search command:

Code: Select all

/stop-service
/exit
(update Everything)
Thank you very much for the new command! :)

Bookmark
Name:

Code: Select all

Update Everything - STOP Everything Service  | https://www.voidtools.com/forum/viewtopic.php?p=71979#p71979 | Upgrading Portable Version Successfully || Everything.ini stop_service_on_exit=1 (Everything portable only!)
Search > Custom:

Code: Select all

/stop-service
/exit

Keyboard shortcut: ALT+X

I have carried out successful tests with these versions:

Everything 1.5.0.1385a (x64) (installed)
Everything 1.5.0.1385a (x64) (portable)

Everything 1.5.0.1385a (x86) (installed)
Everything 1.5.0.1385a (x86) (portable)
therube
Posts: 5056
Joined: Thu Sep 03, 2009 6:48 pm

Re: Upgrading Portable Version Successfully

Post by therube »

Oh, so you never actually needed to -uninstall-service, you could have simply (manually) stopped it, updated the Everything.exe, (& then manually restarted the service).

(Call me old fashioned, I'll continue to use the -uninstall-service.
Heh. I still even use the -instance name, even though that is no longer effective.)


Now, I'll suppose that the Service, when it automatically restarts, is what, actually "changed", based upon the Everything.exe that you updated to?
tuska
Posts: 1098
Joined: Thu Jul 13, 2017 9:14 am

Re: Upgrading Portable Version Successfully

Post by tuska »

therube wrote: Fri Nov 29, 2024 6:39 pm Oh, so you never actually needed to -uninstall-service, you could have simply (manually) stopped it,
updated the Everything.exe, (& then manually restarted the service).
Yes, that's exactly how I've done it so far, e.g. also for multiple instances.

The following are currently still exceptions:
- Switching between x64 and x86
- Switching between portable and installed versions
therube wrote: Fri Nov 29, 2024 6:39 pm Now, I'll suppose that the Service, when it automatically restarts, is what, actually "changed",
based upon the Everything.exe that you updated to?
I don't understand this question.

Currently, I do the update as described here under “EDIT: Upgrade/Update & Everything Service”.
I always start the (updated) version afterwards, e.g. after updating from Everything 1.5.0.1383a (x64) to Everything 1.5.0.1385a (x64).
(In this case, I would NOT start Everything 1.5.0.1385a (x86) right after).
therube
Posts: 5056
Joined: Thu Sep 03, 2009 6:48 pm

Re: Upgrading Portable Version Successfully

Post by therube »

/stop-service, only stops the service for 30 seconds, after which it automatically restarts (is set back to a Running [rather then Stopped] status).

IOW, if you go for that cup of coffee, you won't be able to upgrade ;-).


And then, say you were on the 1383 "service", & updated to the Everything.exe 1385, an updated "1385 service", is also "installed" such that you're not running with a a restarted 1383 service & a 1385 GUI, but rather 1385's on each end.

(And not that I really the service end, but am surmising something akin to that happens, automatically, if need be.)
void
Developer
Posts: 17153
Joined: Fri Oct 16, 2009 11:31 pm

Re: Upgrading Portable Version Successfully

Post by void »

If you leave Everything running, the Everything client will restart the Everything service after 30 seconds.

The Everything service will never be restarted if you exit Everything. ( /exit )

The Everything service will be restarted if you restart Windows or Everything.



The Everything.exe that hosts the Everything Service can be updated while the Service is stopped.
There's no need to uninstall the Service.
You don't even need to restart the Everything Service, the Everything GUI will do this once launched.



Old versions of Everything (1.4 and early 1.5a builds) used named Everything services.
Currently 1.5a builds only have one shared Everything Service.
Post Reply