Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Opera registry entries

343 views
Skip to first unread message

Zakharin

unread,
Jan 25, 2003, 7:21:33 PM1/25/03
to
I am writing a program that manipulates Opera's contacts. In the past I could be sure that
I could append the name "contacts.adr" to the
HKEY_CURRENT_USER\SOFTWARE\Opera Software\Last Directory entry. With Opera 7,
it seems to support multiple profiles on Windows XP, but how can I be absolutely sure
where contacts.adr is located regardless of the system? Is there a registry entry or ini file
for this?

Thanks,
Boris Zakharin

Rijk van Geijtenbeek

unread,
Jan 26, 2003, 7:23:09 PM1/26/03
to
On Sat, 25 Jan 2003 19:21:33 -0500, Zakharin <zakh...@seas.upenn.edu>
wrote:

> I am writing a program that manipulates Opera's contacts. In the past I
> could be sure that I could append the name "contacts.adr" to the
> HKEY_CURRENT_USER\SOFTWARE\Opera Software\Last Directory entry.

That would not have worked on my system, as I created separate profiles
myself (with a little help from Phil's Opera Profile Maker).

> With Opera 7,
> it seems to support multiple profiles on Windows XP, but how can I be
> absolutely sure where contacts.adr is located regardless of the system?
> Is there a registry entry or ini file for this?

You can't be *really* sure which is the active Opera program (maybe a beta
test version is the last installed one). But in the Opera install
directory, you'll find the file OperaDef6.ini. In this file, look for this
section and line:

[System]
Reg Version=9
Multi User=0/1

... where 0=single-user and 1=multi-user.

--
If you don't like having choices | Rijk van Geijtenbeek
made for you, you should start | Documentation & QA
making your own. - Neal Stephenson | mailto:ri...@opera.com

Zakharin

unread,
Jan 27, 2003, 6:24:13 PM1/27/03
to
But Opera itself must somehow determine where the file is located. Assuming
Multi User is 1, is there always an exact place where the file is stored? How does
Opera know where to look in your example where a third-party tool is used to
move the files?

"Rijk van Geijtenbeek" <ri...@opera.com> wrote in message news:oprjmt0v...@news.opera.com...

Rijk van Geijtenbeek

unread,
Jan 28, 2003, 5:44:10 AM1/28/03
to
On Mon, 27 Jan 2003 18:24:13 -0500, Zakharin <zakh...@seas.upenn.edu>
wrote:

> But Opera itself must somehow determine where the file is located.

> Assuming Multi User is 1, is there always an exact place where the file
> is stored? How does Opera know where to look in your example where a
> third-party tool is used to
> move the files?

I used to start from shortcuts with a different opera6.ini file specified
on the command line, one for each user, pointing to a different opera6.ini
in a different directory.

With Opera 7 in multi-user mode, you go to
C:\Windows\Profiles\<username>\Application Data\Opera\Opera7\Profile\ #

At least on Windows 98/ME - I know the location of user data is a bit
different in WinNT or WinXP.

The 'Opera7' part in the path is the name of the installation directory. If
you choose to install Opera 7 in C:\Program files\Opera700, the path to the
user data becomes C:\Windows\Profiles\<username>\Application
Data\Opera\Opera700\Profile\

Zakharin

unread,
Jan 28, 2003, 8:09:39 AM1/28/03
to
I'm using XP and I have an environment variable called APPDATA which points
to the current "Application Data" folder. Is that variable available on Win9x?

"Rijk van Geijtenbeek" <ri...@opera.com> wrote in message news:oprjphfw...@news.opera.com...

Rijk van Geijtenbeek

unread,
Jan 28, 2003, 9:07:04 AM1/28/03
to
On Tue, 28 Jan 2003 08:09:39 -0500, Zakharin <zakh...@seas.upenn.edu>
wrote:

> I'm using XP and I have an environment variable called APPDATA which
> points to the current "Application Data" folder. Is that variable
> available on Win9x?

I'm not a windows expert, but I assume it is.

Rijk van Geijtenbeek

unread,
Jan 28, 2003, 9:11:19 AM1/28/03
to
On Tue, 28 Jan 2003 08:09:39 -0500, Zakharin <zakh...@seas.upenn.edu>
wrote:

> I'm using XP and I have an environment variable called APPDATA which

> points to the current "Application Data" folder. Is that variable
> available on Win9x?

I'm not a windows expert, but I assume it is.

--

Zakharin

unread,
Jan 28, 2003, 8:09:39 AM1/28/03
to
I'm using XP and I have an environment variable called APPDATA which points
to the current "Application Data" folder. Is that variable available on Win9x?

"Rijk van Geijtenbeek" <ri...@opera.com> wrote in message news:oprjphfw...@news.opera.com...

Andrzej Olaczek

unread,
Jan 29, 2003, 8:51:20 AM1/29/03
to
On 1/28/2003 12:24 AM, Zakharin wrote:
> But Opera itself must somehow determine where the file is located. Assuming
> Multi User is 1, is there always an exact place where the file is stored? How does
> Opera know where to look in your example where a third-party tool is used to
> move the files?

This is a simple Delphi function I use in my applications:


function GetUserProfilePath:string;
var
PidlDir:PItemIDList;
begin
SetLength(Result,MAX_PATH);
SHGetSpecialFolderLocation(0,CSIDL_APPDATA,PidlDir);
SHGetPathFromIDList(PidlDir,PChar(Result));
SetLength(Result,StrLen(PChar(Result)));
end;

--
Andrzej Olaczek

Opera Search.ini Editor
http://www.operapl.prv.pl/en/

0 new messages