Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2006
    Posts
    9

    Run file after rebooting

    I am running a program that will run an .exe file and reboot when information is entered and OK is clicked. Once the computer has rebooted, I want the program to run another .exe file (Ping Test).
    Any help is greatly appreciated.
    Thanks!!!

  2. #2
    Join Date
    Jul 2006
    Location
    Milano ( Italy )
    Posts
    35

    Try this:

    Hi,
    I have the solution for you...
    You can add the file in the startup registry.
    Registry.SetValue(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run ", "ArKoSoft", nomefile, REG_SZ);
    System.Reboot();

    -- where "ArkoSoft" is the name of the key ( you can choose a name... )
    -- where "nomefile" is the file path of the file that you want run on reboot...

    You must remember to delete this key because it will run every reboot if you don't delete it... But is better that you put the AMS program too in the reboot and it check ( on startup ) if the registry key does exist you must delete it and the ams program exit (and the other program it just running ).

    ( I'm sorry but i don't speak that good english... )

    I hope you will understand...
    If not i will try to explain again...

  3. #3
    Join Date
    Oct 2005
    Location
    MI
    Posts
    524
    Alternatively, you could write you EXE to the runonce key which will run it only on the next boot up.

    Code:
    Registry.SetValue(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Runonce, "YourAppKey", filename, REG_SZ);
    Yeah right. Who's the only one here who knows the illegal ninja moves from the government?

    ()))))))))o)))))))==============================================

  4. #4
    Join Date
    Jul 2001
    Location
    Indigo Rose Software
    Posts
    1,834
    While the suggestions mentioned above are both valid, AMS also contains the File.RunOnReboot action that could be used.
    Darryl
    Indigo Rose Corporation

    Product Guides: AMS80 | SUF9 | TU30 | VP30 |MSIFACT |DeltaMAX

  5. #5
    Join Date
    May 2007
    Posts
    3
    So I created a dependency on IE 5.5 and it runs good but has two issues. First, IE always reboots so I want to rerun the CD browser once the reboot is finished but I am not sure how to include the File.RunOnReboot function in this process. I could put it in the On Shutdown but then it would write this everytime the browser is shutdown. Any suggestions?

    Second, the cd browser actually starts before IE finishes the install and I don't want that. That leads to users pushing buttons before they should. How do I prevent this? Do I need to write my own dependency from scratch?

    Thanks for any input.

    Chris

Similar Threads

  1. Error 3038: Could not seek in compressed file
    By Rikard in forum Setup Factory 7.0
    Replies: 2
    Last Post: 05-25-2006, 11:55 AM
  2. file run on cd problem
    By jenny62 in forum Setup Factory 7.0
    Replies: 5
    Last Post: 01-11-2006, 12:01 PM
  3. Reboot & Run File Problems
    By critter in forum AutoPlay Media Studio 5.0
    Replies: 0
    Last Post: 12-08-2005, 12:54 PM
  4. Replies: 0
    Last Post: 08-17-2000, 02:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts