Jump to content

Help with cmd and Runonex file placement


Recommended Posts

This is what I have so far for cmd"

[COMMANDS]

"RunOnceEx.cmd"

I did that in Notepad and saved as cmdlines.text

Is that all I need there or do I need to add info for the apps I plan I installing? what folder this goes into?

2nd question This is what I put together so far for the Runoncex

cmdow @ /HID

@echo off

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

SET PP=%systemdrive%\install\winrar.exe

REG ADD %KEY% /V TITLE /D "Installation" /f

REG ADD %KEY%\000 /VE /D "winrar" /f

REG ADD %KEY%\000 /V 1 /D "%systemdrive%\install\winrar.exe /s" /f

I saved that on the desk top for now as Winrar

Am I on the right track here ? do I just keep adding diferent apps right here?

and for the ones needing a product key do I also place that also here? and this file goes into the $OEM$ folder? this file is named RunOnceEx.cmd the actual applications go into the apps folder correct?

Link to comment
Share on other sites


Try this I added another made up entry to it for you, your cmdlines.txt looks correct.

You can add a second app to that entry or remove it before trying it.

cmdow @ /HID
@echo off
SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
SET PP=%systemdrive%\install

REG ADD %KEY% /V TITLE /D "Installation" /f

REG ADD %KEY%\005 /VE /D "winrar" /f
REG ADD %KEY%\005 /V 1 /D "%PP%\winrar.exe /s" /f

REG ADD %KEY%\010 /VE /D "More Stuff" /f
REG ADD %KEY%\010 /V 1 /D "%PP%\MORE_STUFF_FOLDER\MORE_STUFF.exe /s" /f

Edited by gunsmokingman
Link to comment
Share on other sites

:blink: Hello?!? Was that a typo here in the thread or did you actually name the file with a .text for an extension? Because there would be where your problem is for starters. It needs to be .txt not .text

Then, you'll want to also use the cleaned up version from gunsmokingman because your SET PP line shouldn't include the winrar.exe at the end for one. And you use the %PP% as illistated in his example as well. All in all, Read The Manual carefully. Paying close attention to details.

Link to comment
Share on other sites

As for installing apps and using RunOnceEx, you may find that thread useful.

Be sure to read the full posts as they are a very detailled tutorial about doing this for the first time.

Just skim through if you feel comfortable with all what is explained.

Good luck and may the msfn be with you.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...