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: 16735
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: 1052
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: 4972
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: 4972
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 9385 times
tuska
Posts: 1052
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 9373 times
 
I think I will use the underline in the future...
_________________________________________________
Windows 11 Pro (x64) Version 23H2 (OS Build 22631.3810)
void
Developer
Posts: 16735
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: 16735
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: 70
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: 1052
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: 16735
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: 70
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: 16735
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 ;) )
Post Reply