MSFN Forum: RunOnce for all Windows versions - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

RunOnce for all Windows versions Rate Topic: -----

#1 User is offline   bookie 

  • Group: Members
  • Posts: 5
  • Joined: 05-August 04

Posted 06 August 2004 - 06:52 AM

Hi,

I am programming a cd with a batch which installs several parts of security updates. It consists of these parts:

1. McAfee-Install
2. OS-Check
3. Servicepack-Update
4. IE-Update
5. Security-Updates (hotfixes)

Everything works fine but I can't find out how to resume the updates after a reboot, how to include the information in the software\microsoft\windows\runonce-registry so that no user-activity is needed after that.

I also don't know, how to save the cd-rom's drive letter with my batch-files


Anyone with suggestions would mean a big help.

Thanks

Markuss


#2 User is offline   Miphnik 

  • Group: Members
  • Posts: 5
  • Joined: 05-April 04

Posted 06 August 2004 - 07:18 AM

As I understand it, and I freely admit I can be wrong. The runonce registry key can not be repopulated from a function that is called from the runonce key.

In the past I had tried to have some actions happen, import new settings into runonce key and reboot hoping those new settings would fire off on reboot. No joy.

What I ended up doing was having the tasks I wanted to start on the second reboot initiate from the run key then have reg import to the runonce key that would clear the run key on next reboot.

Hope that makes sense.

Cheers

#3 User is offline   Stinger12348 

  • Junior
  • Pip
  • Group: Members
  • Posts: 78
  • Joined: 31-July 03

Posted 06 August 2004 - 07:25 AM

I always used teh RunOnceEx key, wonder what the difference is exactly.

#4 User is offline   bookie 

  • Group: Members
  • Posts: 5
  • Joined: 05-August 04

Posted 06 August 2004 - 07:55 AM

Miphnik, on Aug 6 2004, 07:18 AM, said:

What I ended up doing was having the tasks I wanted to start on the second reboot initiate from the run key then have reg import to the runonce key that would clear the run key on next reboot.

Hi Mip,

What I want is a fuction in a batch file, that allows to restart an application after reboot only once.

I know how to import into the runonce key but I don't manage to get it done in a batch (especially as 98 doesn't know the 'REG ADD' command) and with a link to the cd-rom.

Markus

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy