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?
Asked
Active
Viewed 623 times
1
-
1I 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 Answers
2
You basically need two installers.
- An actual installer.
- 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
-
So, the solution would be to create a Scheduled Task still, but to do it with a second installer? – Robert Wigley Aug 07 '15 at 12:45
-
1Yes, that's the easiest approach. Or use `RunOnce`, see my edit. – Martin Prikryl Aug 07 '15 at 12:58