Windows <username>\ Application Data settings under Wi

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
alstone
Level 1
Level 1
Posts: 5
Joined: Mon Sep 22, 2008 7:34 am

Windows <username>\ Application Data settings under Wi

Post by alstone »

Hi,

Ubuntu 8.04 Hardy Heron (Desktop)
Wine 1.1.5

Some Windows applications have user settings in their corresponding

c:\Documents and Settings\<username>\Application Data\<application> folder.

What's the equivalent of this under Wine ( in order to copy the necessary files
from my Windows installation to Wine/Ubuntu ) ?

Thanks & best regards,
Alan
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Windows <username>\ Application Data settings unde

Post by vitamin »

alstone wrote:Some Windows applications have user settings in their corresponding

c:\Documents and Settings\<username>\Application Data\<application> folder.

What's the equivalent of this under Wine ( in order to copy the necessary files
from my Windows installation to Wine/Ubuntu ) ?
If the path exists you can run this:

Code: Select all

winepath -u "c:\Documents and Settings\<username>\Application Data\<application>"
Of course replace <username> and <application>.[/code]
alstone
Level 1
Level 1
Posts: 5
Joined: Mon Sep 22, 2008 7:34 am

Post by alstone »

Thanks a lot for your prompt response.

After giving your answer some further thought, I wonder...

How do you proceed for a Windows application which hasn't first been installed in Windows ( or because you dumped Windows ) but installed directly under Wine/Linux and which, for example, when adding an add-on to the application requires to (manually) copy some files to the c:\Documents and Settings\<username>\Application Data\<application> folder ?

Best,
Alan
loltsy
Level 2
Level 2
Posts: 20
Joined: Sat Jun 21, 2008 7:31 am

Post by loltsy »

What you're looking for is probably in c:\windows\profiles\<username>\Application Data

Wine seems to still be using the old win95/98/me location for user profiles even though XP has been the default for a while.
alstone
Level 1
Level 1
Posts: 5
Joined: Mon Sep 22, 2008 7:34 am

Post by alstone »

loltsy wrote:What you're looking for is probably in c:\windows\profiles\<username>\Application Data

Wine seems to still be using the old win95/98/me location for user profiles even though XP has been the default for a while.
I prefer this solution. Thanks.

This begets the question...

How do you "undo" the winepath -u "c:\Documents and Settings\<username>\Application Data\<application>" instruction ?

Best,
Alan
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

loltsy wrote:What you're looking for is probably in c:\windows\profiles\<username>\Application Data

Wine seems to still be using the old win95/98/me location for user profiles even though XP has been the default for a while.
It's not win9x. It's winNT4.0 notation
alstone wrote:How do you "undo" the winepath -u "c:\Documents and Settings\<username>\Application Data\<application>" instruction ?
There is nothing to undo. It's a path translation program that translates windows path into unix and wise-versa.
Gert van den Berg

Windows <username>\ Application Data settings under Wi

Post by Gert van den Berg »

On Mon, Sep 22, 2008 at 2:45 PM, alstone <[email protected]> wrote:
Hi,

Ubuntu 8.04 Hardy Heron (Desktop)
Wine 1.1.5

Some Windows applications have user settings in their corresponding

c:\Documents and Settings\<username>\Application Data\<application> folder.

What's the equivalent of this under Wine ( in order to copy the necessary files
from my Windows installation to Wine/Ubuntu ) ?
The Application Data folder is saved in the APPDATA environment variable.

You can see its value by running: (a weird combination of wine and Unix ;-) )
wine cmd /c set|grep APPDATA

The output you recieve should look like this:
APPDATA=C:\windows\profiles\mohag\Application Data
LOCALAPPDATA=C:\windows\profiles\mohag\Local Settings\Application Data

The physical folder would then be
~/.wine/drive_c/windows/profiles/`whoami`/Application" "Data

Gert van den Berg
Locked