Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

what's the diff between runonce.cmd, runonceex.cmd

- - - - -

  • Please log in to reply
13 replies to this topic

#1
aspenjim

aspenjim

    Member

  • Member
  • PipPip
  • 152 posts
  • Joined 09-April 05
What's the difference between runonce.cmd and runonceex.cmd? what's the ex part mean of runonceex.cmd? Finally, when would I use each and when would i use the guirunonce part of winnt.sif?

thx

aj


How to remove advertisement from MSFN

#2
Alanoll

Alanoll

    CODE tags people, CODE tags!

  • Patrons
  • 5,496 posts
  • Joined 25-September 03
the file names themselves are irrelavant and can be anything you want them to be called.

What's INSIDE those files is what determines whether it's RunOnce, RunOnce\Setup, RunOnceEX...

RunOnce would be an invisible call to run all the windows (sorta like Windows does when starting up and starts other applications)
RunOnce\Setup is closest to RunOnceEX but that you can't change the Title, and runs IMMEDIATELY after they keys are imported into the registry.
RunOnceEX creates a window that lists all the program, can cahnge the title, and only executes after a restart or a call to the iernonce.dll process.

RunOnceEX is documented on the Unattended guide as it's the most used and there's a nifty little picture showing it in action as well.
Welcome to the Forum! Please READ Me!!
Alright, that's it for the site for now. Now on to the next project....which could concievable replace the current site :)

#3
aspenjim

aspenjim

    Member

  • Member
  • PipPip
  • 152 posts
  • Joined 09-April 05
I've been studying the tutorial. if fact just made an amazing discovery after trying several attempts at the runonceex.cmd way of installing apps.... i have to say yes to oempreinstall for anything to happen within the $OEM$ directory. I have (thanks to the help of yowzl) found a nice way to copy over the i386 directory. I'm working on installing simple stuff like acroread701.exe and netfxsp1.exe. There is so much to learn and s little time and this is a huge site with thousands of good ideas.

Reminds me of an old phrase mucho pinocha, pokita tiempo

hehehe

aj

PS... whats the EX of RunOnceEX supposed to signify?

#4
Alanoll

Alanoll

    CODE tags people, CODE tags!

  • Patrons
  • 5,496 posts
  • Joined 25-September 03
Extended
Welcome to the Forum! Please READ Me!!
Alright, that's it for the site for now. Now on to the next project....which could concievable replace the current site :)

#5
HAL 9000

HAL 9000
  • Member
  • 7 posts
  • Joined 24-December 07
Hi,

I am new in all this unattended installation and I have maybe stupied question about "RunOnceEx" in tutorial it seams that it is not well explauned or I just didn't get it. There are some commands that are not explained, such as:

REG ADD %KEY%\010 /V 2 /D "REGEDIT /S %systemdrive%\install\alcohol\register.reg" /f

what does this stand for and what letter "D" stands for? Why do you include this line for some programs and for the others not?

or

REG ADD %KEY%\015 /V 1 /D "%systemdrive%\install\DiskeeperPro_8.0.459.exe /s /v/qn" /f

what "s" and " means at the end what does "f" or "qn" at the end stands for?

Can you tell me where I can find more detaild description for this?

Thanks in advance.

#6
gospeed

gospeed

    Member

  • Member
  • PipPip
  • 103 posts
  • Joined 21-March 04
Until someone chimes in with a better guide, I have referred to this one often:
http://unattended.so.../installers.php

#7
Arie

Arie

    One Man Army

  • Member
  • PipPipPipPipPip
  • 835 posts
  • Joined 27-August 07

I am new in all this unattended installation and I have maybe stupied question about "RunOnceEx" in tutorial it seams that it is not well explauned or I just didn't get it. There are some commands that are not explained, such as:

REG ADD %KEY%\010 /V 2 /D "REGEDIT /S %systemdrive%\install\alcohol\register.reg" /f

what does this stand for and what letter "D" stands for? Why do you include this line for some programs and for the others not?

The REG command is a Registry Command Tool. To see all available parameters, type the following in a command prompt.

REG ADD /?

The above command adds a key to RunOnceEx. You can see the command between the quotes (""). This specific command imports a Registry script silently (REGEDIT /S), which contains the registration information for the application Alcohol 120%. To see all available parameters, type the following in a command prompt.


REG ADD %KEY%\015 /V 1 /D "%systemdrive%\install\DiskeeperPro_8.0.459.exe /s /v/qn" /f

what "s" and " means at the end what does "f" or "qn" at the end stands for?

Same as above; the part between quotes ("") is the command, the part before and after the quotes belong to the REG command, so to know what /F stands for... *cough* REG ADD /? *cough* ;)

As for the /s /v/qn part in the command between quotes ("") itself, it's meant to install this application silently and unattended. Every installer type has it's own parameters which it accepts. Run the installer with /? to see what parameters are available. Sometimes though this doesn't show any available parameters, so then you'll need to find out what kind of installer the application uses to know which parameters it accepts. There is information about this in the Unattended Guide, so I advise you to read it.


Can you tell me where I can find more detaild description for this?

The Unattended Guide is a good start. Read the forum. Keep trying, trying and trying. And ask if something is unclear. Good luck!
Not trying to pretend the enemy that I am.

#8
HAL 9000

HAL 9000
  • Member
  • 7 posts
  • Joined 24-December 07
Thanks for the answers now I have some clue what all those commands are used for. But as always knowlege only opens more and more questions.

One more thing do you know where can I find Windows XP Professional with no service pack nor updates at all so I can do it from scratch?

Thanks again guys.

#9
Arie

Arie

    One Man Army

  • Member
  • PipPipPipPipPip
  • 835 posts
  • Joined 27-August 07

One more thing do you know where can I find Windows XP Professional with no service pack nor updates at all so I can do it from scratch?

With starting from scratch I assume that you mean that you would like to integrate the latest Service Pack yourself as well, instead of purchasing a copy which already includes the latest Service Pack? I would personally always prefer a copy which already has the latest Service Pack integrated. First of all it saves you the work of integrating the latest Service Pack, second of all it's a cleaner source than your own slipstreamed source would be.
Not trying to pretend the enemy that I am.

#10
DarkShadows

DarkShadows

    The brighter the light, the darker the shadows.

  • Member
  • PipPip
  • 272 posts
  • Joined 12-January 05
It is possible to slipstream SP2 into a Windows XP SP1a CD-ROM. It will still work.
I'm still looking for that damned <Any> key!
Check Out My: Sysinternals Installer Builder | GUIDE: Download Everything Microsoft

#11
HAL 9000

HAL 9000
  • Member
  • 7 posts
  • Joined 24-December 07

One more thing do you know where can I find Windows XP Professional with no service pack nor updates at all so I can do it from scratch?

econd of all it's a cleaner source than your own slipstreamed source would be.


Why is that?

#12
Arie

Arie

    One Man Army

  • Member
  • PipPipPipPipPip
  • 835 posts
  • Joined 27-August 07
I've once compared a Microsoft supplied SP2 source with a self-slipstreamed SP2 source and the Microsoft supplied one was smaller in size.
Not trying to pretend the enemy that I am.

#13
HAL 9000

HAL 9000
  • Member
  • 7 posts
  • Joined 24-December 07
Have any idea why is it that way, because it seams that slipstreaming service pack is one of the easiest steps in making unattended installation.

#14
kingshawn

kingshawn

    Newbie

  • Member
  • 10 posts
  • Joined 09-December 13
  • OS:Vista Ultimate x86
  • Country: Country Flag

Sorry for digging this old post ... I have tried RunOnceEx on Windows XP and it works perfectly fine. But I am unable to do it on Windows 7 using SetupComplete.cmd. Can you tell me what am i missing ? 






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users