Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: V1.1.13 Error upon launch from DVD (Read 3814 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

V1.1.13 Error upon launch from DVD

I have a FB2K portable install on DVD, launched from a .BAT file on the DVD containing:

Code: [Select]
foobar2000\foobar2000.exe ".\" /play

But this fails, with a "Could not access profile folder" error.

This is a surprise, since http://www.foobar2000.org/releasenotes/11 says

Quote
Note that in case of a portable foobar2000 installation, the profile folder is the same as the installation folder

Launch by double-clicking the FB2K exe is OK.

This is on both Win XP and Win 7.

Any ideas?

V1.1.13 Error upon launch from DVD

Reply #1
Launch by double-clicking the FB2K exe is OK.

This is on both Win XP and Win 7.

Correction: Though the .BAT file failure occurs on both Win XP and Win 7, the double-clicking of FB2K exe fails only on Win XP - it succeeds on Win 7.

Interestingly, if on Win XP, I take a HD copy and set all the files Read-Only, then both kinds of launch succeed. Though then exit does cause three errors: unable to write theme, configuration and playlist files.

V1.1.13 Error upon launch from DVD

Reply #2
Though then exit does cause three errors: unable to write theme, configuration and playlist files.
Of course, since DVDs are read-only media. I would guess that the other problems stem from the same fact. Can't you use a USB thumbdrive?
It's only audiophile if it's inconvenient.

V1.1.13 Error upon launch from DVD

Reply #3
Of course, since DVDs are read-only media. I would guess that the other problems stem from the same fact.

I would guess all the problems stem from the fact that foobar2000 is not fit for use on read-only media (though quite how the finding of the profile folder is prone to this, I cannot fathom).

Can anyone suggestion a near-equivalent that is? Thanks.


V1.1.13 Error upon launch from DVD

Reply #5
you have portable mode enabled and obviously it cannot create a profile in the same folder as where foobar is running from.

i'd expect foobar to work from read only media if it was not in portable mode. it would create its profile in the logged on user's %appdata% folder. (typically c:\users\NAME\appdata\roaming\foobar2000)


V1.1.13 Error upon launch from DVD

Reply #6
obviously it cannot create a profile in the same folder as where foobar is running from.


Agreed, but (obviously) it does not need to. The profile created by the install is already there.

i'd expect foobar to work from read only media if it was not in portable mode.


Actually I find if the profile folder is read-only, foobar shows this failure regardless of mode.

it would create its profile in the logged on user's %appdata% folder.


Thanks, but then then the installation isn't portable. It uses whatever settings are in %appdata% rather than its own settings.

V1.1.13 Error upon launch from DVD

Reply #7
Agreed, but (obviously) it does not need to. The profile created by the install is already there.


even if a profile is already there, foobar creates a file called running when it starts. i guess this is why you see an error. perhaps a pre v1 version would work?

i did test of putting foobar on an ISO and then mounting it so the OS think its running from a CD. this is what i did....

i installed foobar in portable mode
i renamed the file portable_mode_enabled and to user_profiles_enabled
on the first run, foobar grumbled foobar2000 shell associations updater.exe being missing.
it then asked if i wanted it to prevent foobar trying to register supported file formats. i clicked yes.
now foobar is working fine on subsequent restarts with its profile in my appdata folder.

therefore, you could even copy a pre-made profile from the CD to the appdata folder before foobar starts on a clean machine to prevent errors and even remove it when foobar is closed.

V1.1.13 Error upon launch from DVD

Reply #8
therefore, you could even copy a pre-made profile from the CD to the appdata folder before foobar starts on a clean machine to prevent errors and even remove it when foobar is closed.

Thanks, but that would mess up any existing %appdata% profile.

The point of a portable install is that it runs independently of the host computer settings - not affected by them nor affecting them.

V1.1.13 Error upon launch from DVD

Reply #9
well you have all the information now. what you do with it is up to you.

-find another program
-run it from usb
-copy the portable install from dvd to the desktop. delete it when done
-have a batch file rename any existing appdata folder and rename it back when you're done

the choice is yours.

V1.1.13 Error upon launch from DVD

Reply #10
A further problem is that program exit reports errors on attempts to write changes to config and theme files, even if no changes have been made.

well you have all the information now.


If anyone knows the number of latest version that does not suffer from these issues, it would be good to know. Thanks.

V1.1.13 Error upon launch from DVD

Reply #11
all versions of foobar will try and write to disk when closed regardless of whether you think any changes have been made or not.

i'm done now as you're clearly not listening to reason.

V1.1.13 Error upon launch from DVD

Reply #12
all versions of foobar will try and write to disk when closed regardless


Goodness, that's dumb.

Devs (if you're reading): please don't try to write to read-only media. Or at least, make the errors it causes conditional on a config option. Thanks.

V1.1.13 Error upon launch from DVD

Reply #13
Goodness, that's dumb.

Devs (if you're reading): please don't try to write to read-only media. Or at least, make the errors it causes conditional on a config option. Thanks.
To match your tone, I guess Peter will be delighted to implement that important feature, so you don't have to spend 5$ on a USB thumbdrive, which solves all your problems. Can't you just accept the fact that your original idea of using read-only media is flawed?
It's only audiophile if it's inconvenient.


V1.1.13 Error upon launch from DVD

Reply #15
This publication is required to play on MP3-compatible CD players as well as computers. Hence a USB drive is not an option.


Try Boom, from the same author. That should work.

V1.1.13 Error upon launch from DVD

Reply #16
You are mistaken. This publication is required to play on MP3-compatible CD players as well as computers. Hence a USB drive is not an option.
Why didn't you say so earlier? Then of course foobar2000 is the wrong choice of player, try skamp's suggestion.

Also, you're saying "publication", so I assume you distribute those CDs with an installed version of foobar2000. This violates the foobar2000 license:
Quote
Only unmodified installers can be redistributed; redistribution of foobar2000 binaries in any other form is not permitted.

Boom has no such restrictions.
It's only audiophile if it's inconvenient.