Jump to content

Recommended Posts

Posted

hey all,

I have this in my cmdlines.txt

[COMMANDS]
"REGEDIT32.EXE /S finalreg.reg"
".\$1\install\Desktop\runall.bat"
"RunOnceEx.cmd"

and the RunOnceEx.cmd works but the rest of the stuff will not work.

the finalreg.reg is the registry_tweaks.reg file modified for me.

and here is what i have in the runall.bat

regedit /s deployments.reg
regedit /s homepage.reg
copy deployments.exe c:\windows\
copy "WNEC Admin Sys.lnk" "c:\documents and settings\all users\desktop\"
copy yogi.ico c:\windows\
copy wfc.ico c:\windows\
copy "Workforce Central.lnk" "c:\documents and settings\all users\desktop\"

and ideas?

Thanks!


Posted

emm looks weird er well, this might not be the best but ill give it a try

runall.bat

I would change the:

".\$1\install\Desktop\runall.bat" line 
to
"runall.bat"

and put it in the $OEM$ folder along with your RunOnceEx.cmd and CMDLINES.txt (I presume you have RunOnceEx.cmd in the $OEM$ folder since that works)

-

Your runall.bat file itself is not very efficient, it calls on directory drives and not variables. You could remove the copying of them files (below) in the runall.bat and put the files in $OEM$\$$ which would place them on the drive in the Windows folder.

copy deployments.exe c:\windows\
copy yogi.ico c:\windows\
copy wfc.ico c:\windows\

For your desktop shortcuts you could use this program:

Shortcut.exe

It is a command line utility which can use variables and create shortcuts. IF YOU USE THIS PUT shorcut.exe in $OEM$\$$ folder so its copied to Windows folder.

Example of .cmd code:
shortcut.exe /F:"%ALLUSERSPROFILE%\Desktop\<name>.lnk" /A:C /T:"%systemdrive%\Program Files\Program\program.exe"

-

You also have

regedit /s deployments.reg

regedit /s homepage.reg

I dont know where you have copied these to on install but I would put them in $OEM$\$1\Install then change the lines to

REGEDIT.EXE /S %systemdrive%\Install\deployments.reg

REGEDIT.EXE /S %systemdrive%\Install\homepage.reg

"REGEDIT32.EXE /S finalreg.reg"

I had problems like this so in the end I removed the line from the CMDLINES.txt and put it in my batch file.

If i was you I would remove the

"REGEDIT32.EXE /S finalreg.reg"

line from the CMDLINES.txt and put it in your runall.bat. (sounds confusing maybe)

CMDLINES.txt

runall.bat in $OEM$

RunOnceEx.cmd in $OEM$

[COMMANDS]
"runall.bat"
"RunOnceEx.cmd"

runall.bat (change shortcut.exe programs path)

finalreg.reg in $OEM$\$1\Install

deployments.reg in $OEM$\$1\Install

homepage.reg in $OEM$\$1\Install

shortcut.exe in $OEM$\$$

REGEDIT.EXE /S %systemdrive%\Install\finalreg.reg
REGEDIT.EXE /S %systemdrive%\Install\deployments.reg
REGEDIT.EXE /S %systemdrive%\Install\homepage.reg
shortcut.exe /F:"%ALLUSERSPROFILE%\Desktop\WNEC Admin Sys.lnk" /A:C /T:"%systemdrive%\Program Files\Program\program.exe"
shortcut.exe /F:"%ALLUSERSPROFILE%\Desktop\Workforce Central.lnk" /A:C /T:"%systemdrive%\Program Files\Program\program.exe"

This is how I would do it, people might have better ideas though, good luck

Posted

allll righty...

i think i may have figured it out... i used NLite and included the .reg files as .ini files and had NLite import them into the install...

think that will screw something up?

also if i do this will it work?

C:\XPSP2\$OEM$\$Docs\All Users\Desktop

and put those 2 links in there? 'cause $Docs is documents and settings... im wondering if creating the all users and Desktop will just let me put them in there...

i'll try what you have too and see how it goes...

almost time to call it a day so i'll do what i can tomorrow and monday and go from there

thanks!

Posted

never tryed using nlite that way so I couldnt tell you.

Yes that should work if you only want the shortcuts in the ALL USERS folder, the way I described is best for user profiles :)

gl

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

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