MSFN Forum: [help] runonce installer - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

If you have questions about customizing Windows XP that are nLite-specific, please post them in the nLite forum, not here. If you have questions regarding the unattended installation of Windows XP, please post them in the Unattended Windows 2000/XP/2003 section.
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

[help] runonce installer when a user with admin privs logs on Rate Topic: -----

#1 User is offline   epic 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 316
  • Joined: 13-January 05

Posted 25 March 2008 - 02:03 PM

Looking for a script or a application that will allow me to enter a UNC path of an application to install/upgrade.

Ideally, I would like to enter the workstations name (ie. GRUB) then select an application (preconfigured) which this application will enter into the 'RUNONCE' registry. Once that user with administrative or power user rights logs on it will automatically run the application via the UNC path.

Would also like to add / remove / modify UNC paths to those applications (if they change).

Otherwise looking for some help to start me off with creating an application that will inject a UNC path into the 'runonce' registry upon request.

Quick sample of what I'm looking for:


User enters Hostname: GRUB
-> User selects preconfigured installer / msi / exe to install run (ie. spybot search & destroy).
-> Application / Script enters the selected preconfigured UNC path into the 'runonce' registry field.
-> User logs onto computer with administrative privs.
-> Preconfigured application (entered into runonce) runs before all services and applications are started.


Questions or clarification, please ask.

This post has been edited by epic: 25 March 2008 - 02:15 PM



#2 User is offline   Smiley357 

  • Junior
  • Pip
  • Group: Members
  • Posts: 86
  • Joined: 12-October 07

Posted 27 March 2008 - 08:48 AM

This example Install.bat will start on remote machine ABC when the next user logs on. If admin rights are needed it will not run for a normal user. Just replace C:\Install.bat with the location of the file you want to run.

SET KEY1="\\ABC\HKLM\SOFTWARE\Microsoft\Windows\Currentversion\RunOnce"
REG ADD %KEY1% /f /v "INSTALL" /d "C:\Install.bat"

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