VS2003 and Vista

  • Thread starter Thread starter JR
  • Start date Start date
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
 
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
 
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.
 
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.
 
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/? /:-)/
 
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
 
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
 
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
 
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 :-)
 
Back
Top