problem with a moved application

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
kuzja
Newbie
Newbie
Posts: 2
Joined: Sun Nov 15, 2015 1:05 pm

problem with a moved application

Post by kuzja »

Hello,
I have a small Windows database application written in Delphi. It was programmed so that no installation was needed - the application looks for its files in the directory from which it is run. It also stores several pieces of information in the registry. In Windows, it was tested that moving the app in another directory makes no harm.

When I ran this application under wine for the first time, everything was working correctly. After some time, I decided to move it in another directory. First, I just made a copy of the whole directory, and tried to run the app from the new directory. It worked. Then I deleted the old directory. After that, when I tried to run the app from the new dir again, it failed with an OLE error (most likely when opening one of its auxiliary files).

So it seems to me that even though the program itself does not store the path to the data, and does not care about its own location, there is a remembered information somewhere in WINE which - incorrectly - refers to the old directory.
(To be precise: there IS one path being stored in the registry, but this key was changed to the new dir, so it can hardly be the cause of the problem.)

As the program has no installer, it cannot be uninstalled. Is there any way to remove the hidden info in wine and to start "from the scratch"? Or what else could be the cause of this strange behaviour?

The problem was experienced under Linux Mint 17.1, Wine version 1.6.2.
Thanks for help!
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: problem with a moved application

Post by dimesio »

Delete the whole wineprefix.
kuzja
Newbie
Newbie
Posts: 2
Joined: Sun Nov 15, 2015 1:05 pm

Re: problem with a moved application

Post by kuzja »

dimesio wrote:Delete the whole wineprefix.
Okay, it should work, I guess.
But what happens to other (installed) applications...? How to prevent data loss?
Thanks.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: problem with a moved application

Post by dimesio »

If you delete the wineprefix, they will be deleted too.
Locked