v6 released

Discussion & Support for xplorer² professional

Moderators: fgagnon, nikos, Site Mods

User avatar
nikos
Site Admin
Site Admin
Posts: 16344
Joined: 2002 Feb 07, 15:57
Location: UK

Re: v6 released

Post by nikos »

I didn't mean to reset your settings, I meant to leave the installer options intact so you get all the extra files needed for xplorer2 to run properly, e.g. the manifest file and the toolbar skins
EMathews3
Bronze Member
Bronze Member
Posts: 100
Joined: 2014 Aug 23, 12:54

Re: v6 released

Post by EMathews3 »

nikos wrote: 2024 Jul 09, 04:41 I meant leave the installer options [as default] so you get all files needed to run properly: manifest and toolbar skins
Yes this worked for that purpose as suggested. But it also unexpectedly reverted to (near-?)default settings, which leads me to ask whether the installer does some registry (re-)writing about where to find the settings. Can you confirm or deny?

For whatever historical reason, my registry has
HKEY_CLASSES_ROOT\Directory\shell\open\command => d:\Path\Xplorer2\xplorer2_64.exe /M /N /I:"d:\Path\x2settings.INI" "%1"

Code: Select all

/M => Does not allow window to open in minimized mode on startup
/N => Do not restore slow folders from last session (e.g. network) in case they are unavailable
/I => (portable version) Initialize registry with a custom settings file.
       The settings file should be in the same folder as xplorer² and be created with Actions | Extract settings on your "home" PC.
       For ultimate version this can also be a INI file bypassing the registry
       Pathname to Settings file cannot be enclosed in double-quotes.
"%1" => leftFolder, if specified on command line
"Settings pathname cannot be in double-quotes" Is this still true? It seems nuts. Perhaps notable that when the .BAT file which launches xp2 uses /I: it does not enclose the pathname.
User avatar
nikos
Site Admin
Site Admin
Posts: 16344
Joined: 2002 Feb 07, 15:57
Location: UK

Re: v6 released

Post by nikos »

installer doesn't touch your settings, and anyway you have them stored to INI as it seems
you are using the /I command line switch which I haven't even thought about for ages... perhaps that's why advanced settings won't launch for you
(btw for your own computer it's must faster to save settings in registry)
if you have spaces in your path, you must enclose the lot in quotes, INCLUDING the /I: part

Code: Select all

"/I:path with spaces\test.ini"
EMathews3
Bronze Member
Bronze Member
Posts: 100
Joined: 2014 Aug 23, 12:54

Re: v6 released

Post by EMathews3 »

nikos wrote: 2024 Jul 10, 08:35 the /I command line switch I haven't thought about for ages... perhaps that's why advanced settings won't launch for you
Okay, is the error message out of date, or what does the /A switch do [in the Lite version]? Could not find anything in the docs, and PHPBB advanced search couldn't find anything in the forums.
nikos wrote: 2024 Jul 10, 08:35installer doesn't [change] your settings
Right but I'm asking whether the installer changes where xp2 searches to find my settings. The answer is Yes because when the installer launches xp2 by the default option <Start xp2 now> there are no command line switches, and my settings are not found (or maybe not loaded because parsing fails).

In order to recover my settings, the next launch of v6 explicitly uses /I: to find my settings, and they are loaded except they display crumbbar wrong, or they display crumbbar even though SettingsEditor shows crumbbar is Off aka addressbar is On. Whut.

Does using /I: interfere with the implicit handling of x2Settings.INI? Like, shouldn't a custom settings file be named something other than 'x2Settings' so that xp2 doesn't get confused between its built-in read+write and the /I: switch? By the way, the /I: switch should be considered to point at d:\Users\UserName\AppData\Roaming\Zabkat\x2Settings.INI which is where the implicit handling locates it, AFAIUI.

So again, what Registry Key or INI section+Key pertains to crumbbar versus addressbar? Clues:
crumbbar On:
[xplorer2_UC\MainFrame Settings\Toolbars] nToolbars=4
[xplorer2_UC\MainFrame Settings\Toolbars\3_60158] @=CrumbBar does yes exist
crumbbar Off:
[xplorer2_UC\MainFrame Settings\Toolbars] nToolbars=3
[xplorer2_UC\MainFrame Settings\Toolbars\3_60158] @=CrumbBar does not exist
However now that these regkeys are identified, editing/removing them does not work as one might think.

The easiest restore is revert to v5.
User avatar
nikos
Site Admin
Site Admin
Posts: 16344
Joined: 2002 Feb 07, 15:57
Location: UK

Re: v6 released

Post by nikos »

if you have a custom command line then yes, the installer will overwrite the xplorer2 desktop shortcut with the "plain" one
so to avoid this, create a COPY of the desktop shortcut that includes your custom arguments
(however if you had used the DEFAULT location for the INI file in appdata folder, you wouldnt have to worry such)

I am still puzzled why you cannot start the advanced settings editor from xplorer2 menus
can you try launching it manually?
browse the installation folder, open a console window, and type

Code: Select all

x2SettingsEditor.exe "d:\path to your\x2settings.INI"
(you must quit xplorer2 then otherwise the options editor won't start)

if you are using layouts make sure you are editing the correct layout because crumbs are layout-specific
Gandolf
Gold Member
Gold Member
Posts: 575
Joined: 2004 Jun 12, 10:47

Re: v6 released

Post by Gandolf »

x² portable on a USB stick, "P:\xplorer2_ult 6.0.0.2\", using "P:\xplorer2_ult 6.0.0.2\x2settings.ini."

Run x² from a link (on the USB stick) - "P:\xplorer2_ult 6.0.0.2\xplorer2_64.exe" /P "/I:P:\xplorer2_ult 6.0.0.2\x2settings.ini".

Tools > Advanced options

Code: Select all

Error:
	Cannot find registry information for xplorer2_UC
	Please run xplorer2 first
	
	For LITE version settings use /A command line switch	
Why does it try to use the registry?
Why does it ask "run xplorer2 first"?

There is no x² V6 settings in the registry - I don't want to run V6 using the registry.

Run "P:\xplorer2_ult 6.0.0.2\x2SettingsEditor.exe", make changes. "P:\xplorer2_ult 6.0.0.2\x2settings.ini" is not altered.

It would appear that it is not possible to change the advanced settings in a portable version of V6, without first having a registry version.
User avatar
nikos
Site Admin
Site Admin
Posts: 16344
Joined: 2002 Feb 07, 15:57
Location: UK

Re: v6 released

Post by nikos »

first of all, for portable use just place the INI file next to xplorer2 executable, then you don't need to use /I -- it will be picked up automatically
the only way I can explain the error message is if you are using layouts, and the default layout [xplorer2_UC] is missing from your INI file
Gandolf
Gold Member
Gold Member
Posts: 575
Joined: 2004 Jun 12, 10:47

Re: v6 released

Post by Gandolf »

No Layouts. Straight "out of the box" x².

The reason I tried the /I option was because x² would not allow me to use the advanced options, appearing to expect a registry entry.

[xplorer2_UC] is the first line in the ini file.

Basically, it appears x² has serious problems as a portable application.
Robert2
Gold Member
Gold Member
Posts: 702
Joined: 2004 Jun 17, 15:39

Re: v6 released

Post by Robert2 »

I had personally no use for a portable version of xplorer², but I just tested installing the V6 Ultimate version on a USB key.
I installed it “out of the box” with its default settings. I just excluded all associations with the Windows Desktop or Registry.
I then made sure that any changes to the settings would be saved to the INI file (“file in the installation folder” in the Options “Save settings on exit” drop-down).
I was then able to make changes to the Options and Advanced Options without a hitch.
My own 2 cents, as they say…
Gandolf
Gold Member
Gold Member
Posts: 575
Joined: 2004 Jun 12, 10:47

Re: v6 released

Post by Gandolf »

WHAT A MESS!!!

I run x² from a link, as Administrator. I need to run it from a link since I need the /P option.

If I turn off Administrator, then the Advanced options setting work. I didn't bother to make any changes, not worth it since if I can't run as Admin, I won't run x².
Robert2
Gold Member
Gold Member
Posts: 702
Joined: 2004 Jun 17, 15:39

Re: v6 released

Post by Robert2 »

I made a new install to a USB key.
I created a Windows Desktop shortcut running xplorer² with Administrative Privileges and the following command-line:
F:\xplorer²\xplorer2_64.exe /P
I could make changes to the Options and Advanced Options.
x2settings.ini got updated seamlessly in the USB key home folder.
Gandolf
Gold Member
Gold Member
Posts: 575
Joined: 2004 Jun 12, 10:47

Re: v6 released

Post by Gandolf »

The shortcut is on the USB stick, I don't see the point of having it on the Desktop.

Anyway, putting it on the Desktop made no difference.

Do you have V6 installed and using the registry? I don't, because I can't use V6 as I have too many programs that use the V5 dialogues, that Nikos has changed, and the V6 dialogues totally screw-up my code.

I'm only running V6 on a USB stick to see if it's worth re-writing loads of code. Basically, V6 does nothing I want that I can't do with V5, so little point in upgrading. Also, I've found other file managers that do what I want, and better in some cases, so by changing how V6 works Nikos has actually driven me away from x²!!
User avatar
nikos
Site Admin
Site Admin
Posts: 16344
Joined: 2002 Feb 07, 15:57
Location: UK

Re: v6 released

Post by nikos »

Gandolf can you email me the INI file that doesn't work so I can try it out?
Gandolf
Gold Member
Gold Member
Posts: 575
Joined: 2004 Jun 12, 10:47

Re: v6 released

Post by Gandolf »

DONE!
szpunk
New Member
Posts: 3
Joined: 2005 Apr 20, 07:28

Re: v6 released

Post by szpunk »

szpunk wrote: 2024 May 29, 10:45 The Dark Mode title bar and menu still NOT Dark :(
https://github.com/ysc3839/win32-darkmode