RunOnce and the Exclamation Mark (!) prefix - does it work?

  • Thread starter Shepherd.Travis
  • Start date
S

Shepherd.Travis

In making our application Vista compatible, we are moving our setup
registry keys from HKCU\..\Run to HKCU\..\RunOnce so that they are
launched after a reboot. Previously we placed these keys under HKCU\..
\Run, and upon successful completion, we removed the registry key. We
did this to ensure that a failed attempt would launch again after a
reboot. However, in Windows Vista this is a problem since removing a
registry key requires admin rights.

I found an MSDN article that talks about placing an exclamation point
(!) before the value name of the RunOnce entry. Supposedly doing this
will postpone the automatic deletion of the key until after the
command executes, but it does not seem to work. The article can be
found here: http://msdn2.microsoft.com/en-us/library/aa376977.aspx. I
tried this in XP and Vista, but to no avail.

Does anyone know about this RunOnce exclamation point trick? Or have
any other suggestions for the setup finalization?
 

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