Main: 481 - Invalid picture

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
yusef88
Posts: 1148
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

Main: 481 - Invalid picture

Post by yusef88 »

portable xy doesn't start and write this error log to the disk: Main: 481 - Invalid picture
this error happens when I use this batch at the startup of winpe

Code: Select all

setx mycd "Y:"
setx PATH "%PATH%;d:\Programs\dcrypt" /M
START /B reg.exe add "HKCU\Environment" /v mycd /t REG_SZ /f /d "Y:"
xyplorer.exe
but when I use the Install version XY starts normally
also without this batch portable XY starts normally
So is this something wrong with XY or just because I don't run it on normal windows?
---------
update:not xy fault
https://superuser.com/questions/130029/ ... t-variable
If the environment variable is set by another application and is not being updated, it is often easiest to either restart the "explorer.exe" process, log out and back in, or reboot. Essentially, you just need to tell explorer to reload the environment variables. If it is an application that you have developed, such as an installer, ensure that it is calling SendMessage (HWND_BROADCAST, WM_SETTINGCHANGE, 0, (LPARAM)"Environment");. This tells explorer to refresh its cache of the environment variables.

This is important because applications launched by another process inherit their environment variables from their parent. As such, if you launch cmd from explorer, you get the variables as explorer sees them.
To see the attached files, you need to log into the forum.

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

Re: Main: 481 - Invalid picture

Post by admin »

Can't help.

Post Reply