MSFN Forum: Confusion with Runonceex - 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

Confusion with Runonceex Rate Topic: -----

#1 User is offline   jid 

  • Newbie
  • Group: Members
  • Posts: 26
  • Joined: 01-August 08

Posted 01 August 2008 - 07:06 AM

Hi Folks

Again im following the guide from here and im now on the intermediate section (yeh me for getting this far....)

http://unattended.ms...xp/view/web/32/

Anyway im trying to create the files for a few applications i have using both methods....but im getting myself in a right spin

If i give a list of a few programs could someone (Via Msn / Yahoo / Email or whatever means) please help me get them sorted please.

Im a bit niave when it comes to this but i thought it would be a case of selecting what progs i wanted to be installed at startup....how wrong was i..

Hope i havent broke any rules by asking this...

Hopefully speak soon

Jid


#2 User is offline   ajua 

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

Posted 01 August 2008 - 04:17 PM

The most common method is RunOnceEx.

Please make a search on this forum and you will find plenty of questions/answers and examples of other users files. This way you can speed-start making your own and begin testing your installation.

#3 User is offline   jid 

  • Newbie
  • Group: Members
  • Posts: 26
  • Joined: 01-August 08

Posted 03 August 2008 - 09:36 AM

thanks elajua

thats where im getting confused the most. My new cd directory at the moment is located here "c:\xpcd"

I want to add my nokia pc suite and i have the installation file on my pc under c:\progs

i selected the file in runonceex and it puts it in the menu for me....but surly the installation file needs to be stored somewhere under the xcpd directory

can someone please explain where im going wrong

thanks

#4 User is offline   Martin H 

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

Posted 03 August 2008 - 09:41 PM

View Postjid, on Aug 3 2008, 05:36 PM, said:

can someone please explain where im going wrong

From the guide for which you've stated to have read :

"We will be using the $OEM$ distribution folders to install our favorite software, drivers, and registry tweaks"

"The Install folder specified at C:\XPCD\$OEM$\$1\Install\ is copied over to the systemdrive, so it turns out to be C:\install\ - More information on this can be found at the $OEM$ Distribution folders page."

#5 User is offline   jid 

  • Newbie
  • Group: Members
  • Posts: 26
  • Joined: 01-August 08

Posted 04 August 2008 - 03:27 AM

Thanks Martin

You ever get that feeling you cant see the woods for the trees....after re-reading it makes perfect sense

im interested in this part though

You might ask, "why not run application installations from the CD itself?" This is because CD-ROM drive letters are bound to be
different on every PC, which shows why there's no permanent "%CDROM%" environment variable......(although its been discussed often in the forums so it should turn up in asearch)


Can someone advise if this is worth doing and / or point me in the direction of this please....im thinking i would rather install the apps / drivers etc from the cd rather then copy them over to my pc

Thanks again everybody

#6 User is offline   Acheron 

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

Posted 05 August 2008 - 10:48 AM

The unattended guide is outdated.

#7 User is offline   ajua 

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

Posted 06 August 2008 - 08:43 AM

You can use a RunOnceEx like this to make the install from the CD/DVD:

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:\AppsRoot.txt SET DVD=%%i:

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

REG ADD %KEY% /V TITLE /D "Instalando Aplicaciones" /f

REG ADD %KEY%\001 /VE /D "Microsoft .NET Framework 3.5" /f
REG ADD %KEY%\001 /V 1 /D "%DVD%\Install\netfx35\dotNetFx35setup /qb /norestart" /f

You just have to make an empty text file in the CD/DVD root called AppsRoot.txt or whatever name you like.
In this example, the applications are located in the folder Install, which is the root of the CD/DVD.

This post has been edited by elajua: 09 August 2008 - 01:26 AM


#8 User is offline   Martin H 

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

Posted 06 August 2008 - 07:48 PM

View Postjid, on Aug 4 2008, 11:27 AM, said:

Can someone advise if this is worth doing and / or point me in the direction of this please....

I would personally recommend it, as it's the more effecient way of doing it...

Here's some tips to how i myself do it...

I place all my apps into '$OEM$\RunOnceEx\'(so as to not clutter the root of the disc with another folder) and then just use '%~dpn0\' in '$OEM$\RunOnceEx.cmd' as the install-path for your apps(as there's no reason to assign environment-variables that's longer than the assigned value, like using '%cdrom%' instead of '%~d0').

Finally, then there's no need for adding 'setlocal enableextensions' or 'endlocal', and also no reason for adding '@echo off' after 'cmdow @ /hid', but instead just use '@cmdow @ /hid'

As for the drivers, then i recommend placing them into '$OEM$\Drivers\' and then following a06lp's guide which is linked in my signature...

#9 User is offline   jid 

  • Newbie
  • Group: Members
  • Posts: 26
  • Joined: 01-August 08

Posted 07 August 2008 - 04:21 AM

thanks elajua and Martin H

after looking throught the forums alot and the guide again....i have actually gone along the [guirunonce] route as i have managed to find 90% of the apps i want to install along with the codes....

i just need to find how to get them to install from the cd now as im sure they will be copied over...

thanks again for your help though...much appreciated

#10 User is offline   ajua 

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

Posted 09 August 2008 - 01:26 AM

View Postjid, on Aug 7 2008, 05:21 AM, said:

i just need to find how to get them to install from the cd now as im sure they will be copied over...
Look my post above, that example is for installing apps from CD/DVD. If you choose this way, you can shortne the time needed to install them because in OEM folders they have to be copied to the hard disk first. So, if you use a lot of apps, this process can take very long.

Also, if you want to hide the command windows, make a search in this forums for cmdow.

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