Corrupted HDD installation, new installation crashes when launching scripts

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Arikdefrasia
Posts: 16
Joined: 10 Jun 2022 17:35

Corrupted HDD installation, new installation crashes when launching scripts

Post by Arikdefrasia »

So I had a secondary drive corrupt which had xyplorer installed on it. After getting a new HDD and reinstalling everything to where it should be, xyplorer crashes if I click on a script button in the toolbar. Even something as simple as a script to go to a specific folder causes it to crash (even with admin privileges). All my scripts worked fine before the corruption, but now just crash after crash. I tried a fresh install of XY on the new drive and on a different drive and it still crashes. Any ideas?

highend
Posts: 14991
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Corrupted HDD installation, new installation crashes when launching scripts

Post by highend »

XY version?
Crash = XY completely exits without any error message?
Post the most simple script that you have that leads to a crash
One of my scripts helped you out? Please donate via Paypal

Arikdefrasia
Posts: 16
Joined: 10 Jun 2022 17:35

Re: Corrupted HDD installation, new installation crashes when launching scripts

Post by Arikdefrasia »

highend wrote: 19 Aug 2025 14:44 XY version?
Crash = XY completely exits without any error message?
Post the most simple script that you have that leads to a crash
XY 27.10.0500
Yes a crash, closes without error message.

Example scripts:

Code: Select all

goto "I:\Music\Soulseek";
or

Code: Select all

$explorer = "%windir%\explorer.exe";
    if (exists("<curitem>") == 1) { // Selected file
        run """$explorer"" /select,""<curitem>""";
    } elseif (exists("<curitem>") == 2) { // Selected folder
        run """$explorer"" ""<curitem>""";
    } else { // No selection
        run """$explorer"" ""<curpath>""";
    }
I just made a backup of the config file and did a complete uninstall with Revo uninstaller, reinstalled and restored the config file and it's still crashing upon script execution. Is there a chance that it's caused by a missing Microsoft Visual C++ Redistributable or anything like that?

highend
Posts: 14991
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Corrupted HDD installation, new installation crashes when launching scripts

Post by highend »

Code: Select all

goto "I:\Music\Soulseek";
Paste it into the address bar and hit {ENTER}.
Does it crash as well?

If it does, enter this in the address bar fresh;
and try the script in that instance.
Is there a chance that it's caused by a missing Microsoft Visual C++ Redistributable or anything like that?
No, XY has no MVC++ dependencies
One of my scripts helped you out? Please donate via Paypal

Arikdefrasia
Posts: 16
Joined: 10 Jun 2022 17:35

Re: Corrupted HDD installation, new installation crashes when launching scripts

Post by Arikdefrasia »

highend wrote: 19 Aug 2025 15:23

Code: Select all

goto "I:\Music\Soulseek";
Paste it into the address bar and hit {ENTER}.
Does it crash as well?

If it does, enter this in the address bar fresh;
and try the script in that instance.
Crashed when executing the script from the address bar,
crashed when executing fresh; from the address bar,
and crashed when trying the script again.

highend
Posts: 14991
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Corrupted HDD installation, new installation crashes when launching scripts

Post by highend »

Download this: https://www.xyplorer.com/download/xyplo ... nstall.zip
Create C:\Temp
Extract the archive in that folder, run that instance in there, execute
goto "I:\Music\Soulseek"; in it
One of my scripts helped you out? Please donate via Paypal

Arikdefrasia
Posts: 16
Joined: 10 Jun 2022 17:35

Re: Corrupted HDD installation, new installation crashes when launching scripts

Post by Arikdefrasia »

highend wrote: 19 Aug 2025 15:34 Download this: https://www.xyplorer.com/download/xyplo ... nstall.zip
Create C:\Temp
Extract the archive in that folder, run that instance in there, execute
goto "I:\Music\Soulseek"; in it
Looks like scripts do function in that instance.

highend
Posts: 14991
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Corrupted HDD installation, new installation crashes when launching scripts

Post by highend »

Copy over your XYplorer.ini file from the non-working instance into

Code: Select all

C:\Temp\xyplorer_27.10.0500_noinstall\Data
and check if it now crashes again executing a script.

If it crashes, make a copy of the .ini and rename the extension to .xys.
Attach it to your next post
One of my scripts helped you out? Please donate via Paypal

Arikdefrasia
Posts: 16
Joined: 10 Jun 2022 17:35

Re: Corrupted HDD installation, new installation crashes when launching scripts

Post by Arikdefrasia »

highend wrote: 19 Aug 2025 17:21 Copy over your XYplorer.ini file from the non-working instance into

Code: Select all

C:\Temp\xyplorer_27.10.0500_noinstall\Data
and check if it now crashes again executing a script.

If it crashes, make a copy of the .ini and rename the extension to .xys.
Attach it to your next post
Yeah that caused it to start crashing again. Here's the config

highend
Posts: 14991
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Corrupted HDD installation, new installation crashes when launching scripts

Post by highend »

I've removed your config from your post (don't leave your license in that file^^).

Unfortunately, with the same portable version that I've linked and your XYplorer.ini I don't get any crash at all when using scripts...
One of my scripts helped you out? Please donate via Paypal

Arikdefrasia
Posts: 16
Joined: 10 Jun 2022 17:35

Re: Corrupted HDD installation, new installation crashes when launching scripts

Post by Arikdefrasia »

highend wrote: 19 Aug 2025 20:21 I've removed your config from your post (don't leave your license in that file^^).

Unfortunately, with the same portable version that I've linked and your XYplorer.ini I don't get any crash at all when using scripts...
Thanks for that (it been a long few weeks). I've continued trying to track down the cause and through process of elimination via copy/pasting ini lines, I've discovered the culprit.

Code: Select all

[General]
StepScripts=1
If it's set to 0, all's good, but it being set to 1 was wreaking the havoc. I'm not sure what it does, but at least now everything's working as it should. Thanks for the help.

Post Reply