MSFN Forum: Installing Application from RunOnceEX.cmd - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

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

Installing Application from RunOnceEX.cmd A Better Way Rate Topic: -----

#1 User is offline   Worf 

  • Worf
  • PipPip
  • Group: Members
  • Posts: 177
  • Joined: 26-October 04

Posted 11 January 2007 - 07:36 PM

Ok, i first posted this as a reply to another post and thought i would post it again here for all to read.

Nobody has seemed to have mentioned this method of installing applications so i thought i would post this method which is the way i do it. Now, the method i have seen posted here using the RunOnceEX.cmd installed applications after the first login which i do not like, this method will install the applications on the first reboot after Windows has finnished installing.


Below is the way i do it, which is a lot better i think.

This is my $OEM$ folder.

-----$OEM$

|---- $1

|----Temp
|-----RunOnceEX.cmd

My RunOnceEX.cmd is copied to my harddrive inside the Temp Folder.
Anything in the $1 folder is copied to the root of your harddrive. I.E. C:\Temp\RunOnceEX.cmd
You can if you wish leave the RunOnceEx.cmd on your CDROM and run it from there.

-----------------------------------------------------------------------------------------

This is part of my RunOnceEX.cmd file.

cmdow @ /HID

@echo off

The lines below looks for the CD.TXT on the CDRom and assigns that letter to CDROM.

IF EXIST D:\CD.TXT SET CDROM=D:
IF EXIST E:\CD.TXT SET CDROM=E:
IF EXIST F:\CD.TXT SET CDROM=F:
IF EXIST G:\CD.TXT SET CDROM=G:
IF EXIST H:\CD.TXT SET CDROM=H:
IF EXIST I:\CD.TXT SET CDROM=I:
IF EXIST J:\CD.TXT SET CDROM=J:

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx


REG ADD %KEY%/V TITLE /D "Installing Applications" /f
REG ADD %KEY%/V1 /D "Please wait while Your Applications" /f


; Install SpyWare Doctor

REG ADD %KEY%06 /VE /D "SpyWare Doctor" /f
REG ADD %KEY%06 /V 1 /D "%CDROM%\apps\SpywareDoctor\sdsetup.exe /VERYSILENT /SP- /NORESTART" /f

; Cleaning Up And Rebooting

REG ADD %KEY%95 /VE /D "Cleaning Up And Rebooting" /f
REG ADD %KEY%95 /V 1 /D "%CDROM%\CleanUP\cleanup.cmd" /f

Exit
---------------------------------------------------------------------------------------------

The line below goes in my WINNT.sif file, it is the very last line in this file.
Since my RunOnceEX.cmd was copied to the root of the harddrive ie C:\Temp\RunOnceEX.cmd
i use the line UserExecute="%systemdrive%\Temp\RunOnceEX.cmd (%systemdrive% being C:)
If you wish to leave your RunOnceEX.cmd on the CDROM and have it run from there, then change %systemdrive% to %CDROM%

[SetupParams]

UserExecute="%systemdrive%\Temp\RunOnceEx.cmd"


This way as i said before will install my applications on the first reboot after Windows has finished installing and not after my first login.

Try it, you will fined it a lot better than the other method....

Hope this helps anyone?

Worf.

This post has been edited by Worf: 13 January 2007 - 04:55 PM



#2 User is offline   ajua 

  • Custom Installer Maker
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,260
  • Joined: 16-April 05

Posted 12 January 2007 - 01:30 AM

i install tons of programs and congifs on first login and have been like this for ages without any problems so far.
but thanks for the alternative method just in case.

#3 User is offline   Sonic 

  • Sonic
  • Group: Patrons
  • Posts: 1,595
  • Joined: 04-December 03

Posted 12 January 2007 - 05:28 AM

I think it's same as cmdlines.txt stage, so some applications doesn't install in SYSTEM session (as .NET FrameWork not tweaked for example)

#4 User is offline   Acheron 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 915
  • Joined: 28-June 04

Posted 12 January 2007 - 09:54 AM

View PostSonic, on Jan 12 2007, 12:28 PM, said:

I think it's same as cmdlines.txt stage, so some applications doesn't install in SYSTEM session (as .NET FrameWork not tweaked for example)


By forcing to install everything at T12 you actually install in the Default User profile. So every new user you create on the system will have all programs available as were it an single user system. I'm currently processing all setup programs to force creating their stuff into the UserProfile\Appdata folder, so everything can get managed centralized :hello:

I will post instructions on my website when I have time.

#5 User is offline   Sonic 

  • Sonic
  • Group: Patrons
  • Posts: 1,595
  • Joined: 04-December 03

Posted 12 January 2007 - 04:45 PM

Oh okay thanks for precision.

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