VS2003 and Vista

J

JR

Hi,
My program has in Vista an access denaid error
this is the code.

Dim Reg_ClassRoot As RegistryKey = Registry.ClassesRoot
Reg_ClassRoot.CreateSubKey(".tbl").SetValue("", sRegistryDiscription)'this
line is in error

It works fine in XP, ME and 2000

someone has an idee

Jan
 
R

rowe_newsgroups

Hi,
My program has in Vista an access denaid error
this is the code.

Dim Reg_ClassRoot As RegistryKey = Registry.ClassesRoot
Reg_ClassRoot.CreateSubKey(".tbl").SetValue("", sRegistryDiscription)'this
line is in error

It works fine in XP, ME and 2000

someone has an idee

Jan

My first guess is that your program is running under a limited user
account which iirc does not have permission to modify the Registry.

Thanks,

Seth Rowe
 
P

Phill W.

JR said:
My program has in Vista an access denaid error
this is the code.

Dim Reg_ClassRoot As RegistryKey = Registry.ClassesRoot
Reg_ClassRoot.CreateSubKey(".tbl").SetValue("",
sRegistryDiscription)'this line is in error

Run from a "User" process this will fail, because a "User" process is no
longer allowed to write to HKEY_CLASSES_ROOT (or, indeed, /most/ of the
Registry).

/Why/ are you trying to change this value?
It looks to me like your creating a file association - can you do this
as part of /installing/ your program (Installers run with Elevated
permissions and /would/ be able to update this key).

HTH,
Phill W.
 
H

Herfried K. Wagner [MVP]

Phill W. said:
Run from a "User" process this will fail, because a "User" process is no
longer allowed to write to HKEY_CLASSES_ROOT (or, indeed, /most/ of the
Registry).

.... not even unter Windows XP.
 
A

Anon-E-Moose

Run from a "User" process this will fail, because a "User" process is no
longer allowed to write to HKEY_CLASSES_ROOT (or, indeed, /most/ of the
Registry).

/Why/ are you trying to change this value?
It looks to me like your creating a file association - can you do this
as part of /installing/ your program (Installers run with Elevated
permissions and /would/ be able to update this key).

/whats/ /with/ /the/ /slashes/? /:)/
 
A

Andrew Morton

Anon-E-Moose said:
/whats/ /with/ /the/ /slashes/? /:)/

Slashes indicate italics. Asterisks represent *bold* text. Underscores
indicate _underlining_.

Some news clients will convert them on-screen, for example OE-Quotefix with
OE can. Doesn't Xnews have such an option?

Andrew
 
J

JR

rowe_newsgroups said:
My first guess is that your program is running under a limited user
account which iirc does not have permission to modify the Registry.

Thanks,

Seth Rowe
It's an administrator account
 
J

JR

Phill W. said:
Run from a "User" process this will fail, because a "User" process is no
longer allowed to write to HKEY_CLASSES_ROOT (or, indeed, /most/ of the
Registry).

/Why/ are you trying to change this value?
It looks to me like your creating a file association - can you do this as
part of /installing/ your program (Installers run with Elevated
permissions and /would/ be able to update this key).

HTH,
Phill W.

1. I beleve it is not the programmers choice to force the user to accept.
I let them make the decicion. So it is an option in the menu. However if
that will be the only good solution I need to change that.

2. My program also runs on a computer without installing if framework 1.1 is
installed

Thanks Jan
 
G

Guest

Slashes indicate italics. Asterisks represent *bold* text. Underscores
indicate _underlining_.

Some news clients will convert them on-screen, for example OE-Quotefix
with OE can. Doesn't Xnews have such an option?

Nope, not that I'm aware off. Good to know :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top