Automatic Update doesn't update details in Programs and Features

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
elqasar2
Posts: 255
Joined: 27 Oct 2017 14:04
Location: Win 11, 100% scaling, v27.20.0700

Automatic Update doesn't update details in Programs and Features

Post by elqasar2 »

If you have 19.00 installed, for example, and then manually run the installer for 19.10, then the details in Programs and Features gets updated with the new version number, install date, etc.

But if you use XYplorer's built in updating feature, then afterwards Programs and Features still has the old version information and the old installation date, etc. Nothing in there gets updated.

What other differences are there between manually installing and automatically installing?
programs.png
To see the attached files, you need to log into the forum.

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

Re: Automatic Update doesn't update details in Programs and Features

Post by admin »

There should not be any differences. This is a bug I'm going to fix. Thanks for the hint!

elqasar2
Posts: 255
Joined: 27 Oct 2017 14:04
Location: Win 11, 100% scaling, v27.20.0700

Re: Automatic Update doesn't update details in Programs and Features

Post by elqasar2 »

It works perfectly now for the installed version of XYplorer.

But the problem now is that if you use auto update on a portable XYplorer (which doesn't have anything in 'Programs and Features' or the Start Menu), then new unwanted entries in those locations get created. Maybe the auto updater should first check whether it is the installed version or a portable version and then do the correct thing.

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

Re: Automatic Update doesn't update details in Programs and Features

Post by admin »

I cannot see that happening here. Seems all fine.

1. What's the contents of your Startup.ini file?
2. Which files are wrongly written to which paths?

elqasar2
Posts: 255
Joined: 27 Oct 2017 14:04
Location: Win 11, 100% scaling, v27.20.0700

Re: Automatic Update doesn't update details in Programs and Features

Post by elqasar2 »

I've just done a fresh test on a PC that has never had XYplorer on it. Therefore there was nothing in the Start Menu for XYplorer, and XYplorer was not present in Programs and Features.

I extracted the ZIP file for XYplorer 19.50.0200 to a new folder C:\Portable\XYplorer.
I launched XYplorer.exe, saved settings, then quit XYplorer.
There is no startup.ini file anywhere.
I launched XYplorer.exe again, then held Ctrl and clicked on the menu Help, Check for Updates.
That launched the installer for XYplorer 19.50.0225.
After installation completed, there is an entry for XYplorer in the Start Menu and there is an entry for XYplorer in Programs and Features. I.e. it has done a normal installation.

What steps did you perform in your test when you tried this out?

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

Re: Automatic Update doesn't update details in Programs and Features

Post by admin »

Same steps as you. But different results.

Can you give me that start menu path?

elqasar2
Posts: 255
Joined: 27 Oct 2017 14:04
Location: Win 11, 100% scaling, v27.20.0700

Re: Automatic Update doesn't update details in Programs and Features

Post by elqasar2 »

This is the Start Menu folder that gets created by the installer:
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\XYplorer

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

Re: Automatic Update doesn't update details in Programs and Features

Post by admin »

Ah, confirmed!

I'll try to educate the installer...

Leito
Posts: 562
Joined: 26 Sep 2016 15:37
Location: Windows 10 1809 x64

Re: Automatic Update doesn't update details in Programs and Features

Post by Leito »

:tup: Thanks for this change.

elqasar2
Posts: 255
Joined: 27 Oct 2017 14:04
Location: Win 11, 100% scaling, v27.20.0700

Re: Automatic Update doesn't update details in Programs and Features

Post by elqasar2 »

So is the issue with 'Programs and Features' fixed too?

So that both scenarios work correctly, i.e. auto update will update the installation details (date, version number, etc.) in 'Programs and Features' when auto updating an installed version (as discussed originally in this discussion thread), but not creating anything in 'Programs and Features' when auto updating a portable version?

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

Re: Automatic Update doesn't update details in Programs and Features

Post by admin »

Can you give me the path?

elqasar2
Posts: 255
Joined: 27 Oct 2017 14:04
Location: Win 11, 100% scaling, v27.20.0700

Re: Automatic Update doesn't update details in Programs and Features

Post by elqasar2 »

See the screenshot in the first post. How can I get the path of that? Doesn't that list get populated from the registry?

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

Re: Automatic Update doesn't update details in Programs and Features

Post by admin »

Ah, got it.

I'll see what I can do...

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

Re: Automatic Update doesn't update details in Programs and Features

Post by admin »

There is a reason:

Code: Select all

v19.10.0238 - 2018-09-22 13:56
    ! Self Update: If you used XYplorer's built in updating feature, then 
      afterwards Programs and Features still had the old version information and 
      the old installation date. Fixed.

elqasar2
Posts: 255
Joined: 27 Oct 2017 14:04
Location: Win 11, 100% scaling, v27.20.0700

Re: Automatic Update doesn't update details in Programs and Features

Post by elqasar2 »

Yes, it was fixed like we discussed in the earlier part of this thread. Please read this thread from the beginning as a reminder.

Before you made that change, the problem was that auto-updating an installed version didn't update 'Programs and Features'. In other words, the version number and installation date, etc. was not getting updated. Now, that is fixed. But the issue I've been trying to describe today is that there is now a new problem: Using auto update on a portable version is also adding to the 'Programs and Features'.

Auto updating a portable version should not be adding the program details (and uninstallation information) into the registry.

So the previous fix has fixed one problem but introduced a different problem.

Post Reply