1

I am aware that I could use Task Scheduler to schedule an unattended installation. However, is it possible to run the Setup, select options and then have it start the install process at a set time or with a countdown timer? If possible, how could this functionality be created?

Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992
Robert Wigley
  • 1,917
  • 22
  • 42
  • 1
    I don't understand very well why you would want to do this. Can you provide a usage scenario, or the reason you want to do this ? It would help us answer your question better. – thomasb Aug 07 '15 at 12:14
  • In my use case this would be a package to run some updates on a database which cannot be run whilst the system is in use. Therefore, creating an option where the customer can run the package and simply leave it to install at a certain time when no-one is using the system is the ideal solution. – Robert Wigley Aug 07 '15 at 12:22

1 Answers1

2

You basically need two installers.

  1. An actual installer.
  2. A wrapper installer that will just store/install the actual installer somewhere and schedule a task to run the actual installer at a certain time.

It can actually be just one installer (binary), running with a different set of (command-line) arguments. But that's a bit more difficult to implement.

See also How to add a scheduled task with Inno Setup


Or consider using RunOnce registry key to schedule the upgrade for the next login (if that helps).

Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992