Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Run a program after reboot


6 replies to this topic

FPSStephen

FPSStephen
  • Members
  • 5 posts

Posted 08 November 2001 - 18:39

What is the easiest way to tell Windows Installer to run a program after a Scheduled Reboot? Because of profiles I'm trying to stay away from a shortcut in the Startup folder

Kiril

Kiril
  • Members
  • 39 posts

Posted 08 November 2001 - 19:20

You can write to RunOnce registry and it will run after reboot.


FPSStephen

FPSStephen
  • Members
  • 5 posts

Posted 08 November 2001 - 20:03

In which key do I write to runonce? Do I write the program name there?

Kiril

Kiril
  • Members
  • 39 posts

Posted 11 November 2001 - 12:34

Hi ,

In HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce

Create new string value and set your application path in data of  this value.


FPSStephen

FPSStephen
  • Members
  • 5 posts

Posted 12 November 2001 - 17:48

Is there a way to write this registry key only when  the user has selected to install a certain feature or component?

jsp

jsp
  • Members
  • 96 posts

Posted 14 November 2001 - 17:55

Hi,
Yes of course it is possible to conditionnaly install this registry key: use MsiGetFeatureState function in your script.
Hope it helps.
Regards,
JSP

Ian Blake

Ian Blake
  • Members
  • 483 posts

Posted 14 November 2001 - 21:14

Given that a registry key is related to a particular component then the registry key will only ever be installed if the related component is installed