Re: Start program when Vista starts



"Brad Blanchard" <nadie137@xxxxxxxxxxx> wrote in message
news:VA.00003203.196e4ff4@xxxxxxxxxxxxx

[...] this procedure, like CreateShellLink, also works on XP but on
Vista I get a 'Failed to set data for myprog.exe' message. ...

Registry.RootKey := HKEY_LOCAL_MACHINE;

Easy. Don't write in HKLM, it's not yours. Use HKEY_CURRENT_USER.

Groetjes,
Maarten Wiltink


.



Relevant Pages

  • Re: howto check for Registry write permission without UAE dialogue?
    ... In Vista, the correct way to do this is to *always* use HKCU, even if you have the privileges to write HKLM. ... And even if the user is an administrator, you're still going to fail unless the app currently actually has an admin token... ... Of course, you can always just go ahead and write to HKLM, and Vista will virtualize your registry writes to go into HKCU without your app noticing. ...
    (microsoft.public.development.device.drivers)
  • Re: database install
    ... Unfortunately, HKLM is verboten in Vista, while HKCU is ok. ... rules allowed before are now out the window, ... Hi Cy - On the other hand, HKLM was verboten in Windows2000 and WinXP ... But personally I do appreciate the particular idea not to use an Admin ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Vista + HKLM + alte/neue Programme
    ... Vista Manifest bereits in VC6 auszustatten! ... Es kan sich nicht richtig verhalten, denn jeder User hat seinen eigenen HKLM Eintrag evtl. ... im Virtual Store und es mag durch das Setup noch den alten geben... ...
    (microsoft.public.de.vc)
  • Re: RegWrite fails on Vista?
    ... reporting an error. ... Things are very different in Vista. ... When I write to HKLM, ... Microsoft MVP Scripting and ADSI ...
    (microsoft.public.scripting.wsh)
  • Re: Form 6i on Vista
    ... I got working on vista using service pack18, I had to disable uac, to ...
    (comp.databases.oracle.tools)