Announcement

Collapse
No announcement yet.

Help! Setting Registry Keys - Failure

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Help! Setting Registry Keys - Failure

    I need to have my application fire up once the computer is rebooted. The Help file says the following:
    Code:
    In this example we will create a Registry key that tells the system to run "My Program.exe" whenever the system is rebooted.
    
    Registry Action: Set Value
    Main Key: HKEY_LOCAL_MACHINE
    Sub Key: Software\Microsoft\Windows\CurrentVersion\Run
    Value name: My Program
    Value type: REG_SZ
    Value data: %AppDir%\My Program.exe
    However, this does NOT work.
    Sure, it installs. I've checked the registry, and it is there. But, it does not fire up! Any thoughts???

    Thanks in advance.
    diver

  • #2
    Re: Help! Setting Registry Keys - Failure

    Just to be sure that the example is what you would like to do, that key will run your program on every startup of the computer. If you would like your program to only be run the one time, you may want to place that registry setting in the RunOnce key instead.

    Regarding your problem, are you sure that everything is spelled correctly in the Registry and that the file is in that exact location? Copy that exact path and go to Start->run and try running it from there, does it execute correctly?

    ------------------
    Sincerely,

    Darryl Hnatiuk
    Indigo Rose Corporation

    Comment


    • #3
      Re: Help! Setting Registry Keys - Failure

      Thanks for the response. Since I have posted this I have discovered something that has fixed the problem, and I don't think that the Setup Factory has anything to do with it. Here is what I discovered.

      First, this is for deployment on a laptop with an archane O/S - an early version Windows 95. Yuck. So, I'm sure there are bugs everywhere in this thing.

      What I did was download a Win 95 extra off the MSDN site, called "The Policy Manager", policy.exe zip file. It is a simple add-in that does not get loaded on a Windows install. It allows you to *add* programs to the startup in a GUI, so just point and click. Well, I did that, and it DID work. And guess what? After I did it that once with The Policy Manager, it worked EVERY time after that with the Setup Factory.

      Really have no clue, why this is the case. Very strange. I'm just glad that this Windows 95 O/S will soon be gone and everyone will be on Win 2K or higher.

      diver

      Comment

      Working...
      X