MSFN Forum: Clearification on RunOnceEx Instructions - 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

Clearification on RunOnceEx Instructions Clearification on RunOnceEx Instructions Rate Topic: -----

#1 User is offline   Chazz76 

  • Group: Members
  • Posts: 2
  • Joined: 07-January 08

  Posted 14 January 2008 - 04:06 PM

For the RunOnceEx Getting Started instructions, does"First of all, remove the [GuiRunOnce] entries in winnt.sif, as RunOnceEx can be used to replace [GuiRunOnce] completely." simple instructing to replace [GuiRunOnce] with [RunOnceEx] along with the path to the application files in the winnt.sif file?


Also, in the "RunOnceEx From CD" section, does "FOR %%i IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%i:\CD.txt SET CDROM=%%i:" still needed in the file when using the alternative "SetLocal enableextensions
SET CDROM=%~d0/EndLocal method?


Any assistance is providing some clearification is greatly appreciate.

The verbage is a bit confusing with english being my second language


#2 User is offline   Martin H 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 802
  • Joined: 24-November 06
  • OS:none specified

Posted 14 January 2008 - 06:35 PM

Hi Chazz76 :)

It just means that you should delete the '[GuiRunOnce]' section from 'winnt.sif' and then you instead call the batchfile that imports the RunOnceEx reg-entries from 'cmdlines.txt'.

Yes, you don't need the 'for' loop if you use the 'enableextensions' method instead.

Here's how i personally preffer to do the RunOnceEx method :

Place your batchfile that imports the RunOnceEx reg-entries(mine's called 'setup.cmd') + all your programs(or even better, your silent switchless 7z SFX installers) into a folder placed into the root and which you name 'setup'. Then download 'hidcon.exe' from the attached file at the bottom of this post and also place it in the 'setup' folder(used to hide the command-prompt completely, unlike 'cmdow.exe' and it works perfectly from T-12 i.e. 'cmdlines.txt'). Then you make another folder in the root named '$OEM$' and in there you make a text file named 'cmdlines.txt' and in which you add the following :
[Commands]
"..\setup\hidcon.exe ..\setup\setup.cmd"

It isn't possible to use environment variables in 'cmdlines.txt'(e.g. %systemdrive% etc) and hence, you need to do as i did above, if you want to get away with not having the RunOnceEx batchfile in the '$OEM$' folder(unless of course a direct path is used).

I personally find it most convenient to just have one single folder(setup) in the root, which contains all my silent switchless 7z SFX installers, batch and reg-files and then just have the single 'cmdlines.txt' file in the '$OEM$' folder. This means that when something needs to be edited in a batchfile, or some installers needs to be updated, then i always just need to go into the 'setup' folder and make the changes, instead of having to e.g. first go into '$OEM$' and edit the batch-file there which imports the RunOnceEx reg-entries and then afterwards go into the 'setup' folder and replace some outdated installers...

Here follows a snip of my batch file(setup.cmd) that imports the RunOnceEx reg-entries at T-12(cmdlines.txt) :
setlocal enableextensions
set setup=%~d0\setup
set key=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
reg add %key% /v title /d "Installing Applications" /f
reg add %key%\001 /ve /d "Acronis True Image Home v9.0" /f
reg add %key%\001 /v 1 /d "%setup%\Acronis_True_Image_Home_v9.0.3677.exe" /f
[...]
reg add %key%\009 /ve /d "Importing Registry Tweaks" /f
reg add %key%\009 /v 1 /d "regedit /s %setup%\setup.reg" /f
reg add %key%\010 /ve /d "Restarting Windows" /f
reg add %key%\010 /v 1 /d "%setup%\hidcon.exe shutdown.exe -r -f -t 60" /f
endlocal


I use nLite to integrate Xable's Light Post-SP2 UpdatePack, enable tweaks and unattended settings, add users and of course to remove unwanted components(my ISO without the added installers is only 115MB big and works perfectly for my purposses ;)).

Attached File(s)


This post has been edited by Martin H: 15 January 2008 - 03:03 PM


#3 User is offline   biatche 

  • Member
  • PipPip
  • Group: Members
  • Posts: 194
  • Joined: 23-November 05

Posted 15 January 2008 - 08:27 AM

whats msistub.exe for?

#4 User is offline   Arie 

  • One Man Army
  • PipPipPipPipPip
  • Group: Members
  • Posts: 835
  • Joined: 27-August 07

Posted 15 January 2008 - 09:06 AM

View Postbiatche, on Jan 15 2008, 03:27 PM, said:

whats msistub.exe for?

Click.

#5 User is offline   Martin H 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 802
  • Joined: 24-November 06
  • OS:none specified

Posted 15 January 2008 - 03:20 PM

Yeahh, sorry about that, i should of course have mentioned that only 'hidcon.exe' should be used from the 7z archive, but thank you Arie for your help :)

Anyway, i have edited my previous post to include Oleg Scherbakov's great little 2KB utility 'hidcon.exe' as an attached file, and i apologise for previously having directly linked to it...

CU, Martin.

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