WINEPREFIX ?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
crow_se
Level 2
Level 2
Posts: 14
Joined: Sat May 17, 2008 6:33 am

WINEPREFIX ?

Post by crow_se »

I have seen posts regarding WINEPREFIX so that Windows programs can be installed elsewhere than in the default .wine/drive_c/... folder.
I have 2 or 3 Windows programs in the default folders which I run under Wine, and another program (Serif PagePlus 11) also in the default folder that does not run and I want to uninstall. Wine uninstall does not work for this program. I gather I can uninstall by deleting the .wine folder, but that will delete the other programs as well. I also gather that by the use of WINEPREFIX a windows program can be installed elsewhere than in .wine, and then deleting and recreating .wine will have no affect on such an installation. If this is true, could I move these programs out of .wine to another folder by moving from .wine/drive_c/Program Files/... to another folder setup by wineprefixcreate and modifying the program calls to take this WINPREFIX setup into account ?
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

WINEPREFIX ?

Post by austin987 »

On Wed, Jul 2, 2008 at 7:37 AM, crow_se <[email protected]> wrote:
I have seen posts regarding WINEPREFIX so that Windows programs can be installed elsewhere than in the default .wine/drive_c/... folder.
I have 2 or 3 Windows programs in the default folders which I run under Wine, and another program (Serif PagePlus 11) also in the default folder that does not run and I want to uninstall. Wine uninstall does not work for this program. I gather I can uninstall by deleting the .wine folder, but that will delete the other programs as well. I also gather that by the use of WINEPREFIX a windows program can be installed elsewhere than in .wine, and then deleting and recreating .wine will have no affect on such an installation. If this is true, could I move these programs out of .wine to another folder by moving from .wine/drive_c/Program Files/... to another folder setup by wineprefixcreate and modifying the program calls to take this WINPREFIX setup into account ?





You can move the ~/.wine folder, yes. You'll have to edit any
shortcuts involved with the prefix. You'll still have that extra
program installed, but can simply ignore it, or (ideally), you could
remove ~/.wine, and reinstall each program in its own prefix.
Jim
Level 2
Level 2
Posts: 48
Joined: Mon Feb 25, 2008 6:09 pm

Re: WINEPREFIX ?

Post by Jim »

crow_se wrote:I have seen posts regarding WINEPREFIX so that Windows programs can be installed elsewhere than in the default .wine/drive_c/... folder.
I have 2 or 3 Windows programs in the default folders which I run under Wine, and another program (Serif PagePlus 11) also in the default folder that does not run and I want to uninstall. Wine uninstall does not work for this program. I gather I can uninstall by deleting the .wine folder, but that will delete the other programs as well. I also gather that by the use of WINEPREFIX a windows program can be installed elsewhere than in .wine, and then deleting and recreating .wine will have no affect on such an installation. If this is true, could I move these programs out of .wine to another folder by moving from .wine/drive_c/Program Files/... to another folder setup by wineprefixcreate and modifying the program calls to take this WINPREFIX setup into account ?
So you want to move ~/.wine/drive_c/Program Files/SomeProgram to ~/.someotherwineprefix/drive_c/Program Files/SomeProgram

Sometimes this works fine. In general, if you can copy a particular program from one Windows machine to another Windows machine then you can also do the same between Wine prefixes. The most common reason that this may not work has to do with the way an application uses the registry to register components (eg OLE/COM/ActiveX) and store application settings.

If you just want to move/rename the whole .wine folder to another location, you shouldn't run into problems other than desktop/menu shortcuts (eg in KDE or Gnome) that will need fixed.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: WINEPREFIX ?

Post by vitamin »

Jim wrote:So you want to move ~/.wine/drive_c/Program Files/SomeProgram to ~/.someotherwineprefix/drive_c/Program Files/SomeProgram

Sometimes this works fine. In general, if you can copy a particular program from one Windows machine to another Windows machine then you can also do the same between Wine prefixes. The most common reason that this may not work has to do with the way an application uses the registry to register components (eg OLE/COM/ActiveX) and store application settings.
WINEPREFIX contains all of the registry so this is an advantage Wine has over windows. That means you can copy whole WINEPREFIX as-is and it should work.
Jim wrote:If you just want to move/rename the whole .wine folder to another location, you shouldn't run into problems other than desktop/menu shortcuts (eg in KDE or Gnome) that will need fixed.
This is the only thing that needs to be taken care of. Which is as simple as editing command and changing ... the WINEPREFIX.
crow_se
Level 2
Level 2
Posts: 14
Joined: Sat May 17, 2008 6:33 am

WINEPREFIX ?

Post by crow_se »

Thanks for the advice.
The Windows programs I was concerned about were Forte Agent 2, Icon Snatcher, AnyPass and CCleaner.
I moved them to other folders referenced with wineprefixcreate, changed the panel icons to point to these new folders and all 4 are running fine.
Thanks again
Locked