Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6830575
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:38:03+00:00 2026-05-26T22:38:03+00:00

Is it possible to schedule a custom action after a reboot? Here’s my predicament.

  • 0

Is it possible to schedule a custom action after a reboot? Here’s my predicament.

I have a product to uninstall and reinstall but some of the files are in use by another application at the time of reinstall. This causes problems for the uninstall because the files are in use so I use a custom action which runs a batch file to rename the files in use. This is a bit of a hack but makes the uninstall and reinstall not complain about the files being in use and replaces the files I want.

The reason for doing this is that I’m not allowed to force a reboot on the machine during the installation process but I need to make sure that the files get replaced. So far so good.

This has the side effect of a bunch of files hanging around that I’ve renamed with a prefix toDelete_fileX.dll along with the new fileX.dll in the folder.

I have another custom action to delete these files which works fine but I can’t run it at the end of the installation because the other application still has a handle to these renamed “toDelete_” prefixed files.

At some point in the future the system will be rebooted and this is where I would like the custom action to run to delete the “toDelete_” prefixed files.

Thanks. Neil

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T22:38:03+00:00Added an answer on May 26, 2026 at 10:38 pm

    You can schedule actions after a reboot by using RunOnce registry key:

    • http://msdn.microsoft.com/en-us/library/aa376977(VS.85).aspx?ppud=4
    • http://support.microsoft.com/kb/137367

    However, I think your going the wrong way with this. If you can offer more details about what you need to do (the design or concept), perhaps I can suggest a better alternative.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a TimerService created with @Schedule annotation, but I want to be able
In Windows XP are scheduled tasks. With them possible schedule to run some application.
I want to schedule a thread after a thread completion. Is it possible ?
Possible Duplicate: Schedule Controls for ASP.Net MVC I have MVC3 in which I want
Is it possible to schedule some tasks in php to run automatically on the
I was wondering if it was possible to schedule a job to start after
I want to schedule push notification after some time or say after 2 days
Possible Duplicate: How does the Google Did you mean? Algorithm work? Suppose you have
I have a div that contains a student's schedule, and there is a drop-down
This phone have something very useful. That is his option to schedule power on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.