sdaviswnec Posted May 19, 2005 Posted May 19, 2005 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.batregedit /s deployments.regregedit /s homepage.regcopy 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!
Mike_Wilson Posted May 19, 2005 Posted May 19, 2005 emm looks weird er well, this might not be the best but ill give it a try runall.batI 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.exeIt 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 haveregedit /s deployments.regregedit /s homepage.regI dont know where you have copied these to on install but I would put them in $OEM$\$1\Install then change the lines toREGEDIT.EXE /S %systemdrive%\Install\deployments.regREGEDIT.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.txtrunall.bat in $OEM$RunOnceEx.cmd in $OEM$[COMMANDS]"runall.bat""RunOnceEx.cmd"runall.bat (change shortcut.exe programs path)finalreg.reg in $OEM$\$1\Installdeployments.reg in $OEM$\$1\Installhomepage.reg in $OEM$\$1\Installshortcut.exe in $OEM$\$$REGEDIT.EXE /S %systemdrive%\Install\finalreg.regREGEDIT.EXE /S %systemdrive%\Install\deployments.regREGEDIT.EXE /S %systemdrive%\Install\homepage.regshortcut.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
sdaviswnec Posted May 19, 2005 Author Posted May 19, 2005 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\Desktopand 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 therethanks!
Mike_Wilson Posted May 19, 2005 Posted May 19, 2005 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
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now