Jump to content

Maybe a noob problem with script


Recommended Posts

Hi guys!

I'm new on unattend install, and i having some problems...i get the idea about driverpacks, updates, themes, tweaks, etc...but the apps autoinstall are making me nuts!! I made some installations with autoit, others with silent switches, and about this everything is ok. But, why the script aren't working? It shows only a command prompt with a syntax error for every line:

(RunOnceEx Method, huh?)

cmdow @ /HID

@Echo Off

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:\win51ip.SP2 SET CDROM=%%i:

SET PP=%cdrom%\Install\

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

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

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

REG ADD %KEY%\000 /V 1 /D "%PP%wrar370.exe /s" /f

REG ADD %KEY%\001 /VE /D "Messenger 8.5" /f

REG ADD %KEY%\001 /V 1 /D "%PP%WLM85.MSI" /f

REG ADD %KEY%\002 /VE /D "O&O Defrag" /f

REG ADD %KEY%\002 /V 1 /D "%PP%\oodefrag10pro\oodefrag.cmd" /f

REG ADD %KEY%\003 /VE /D "Nero 8 Ultra Edition" /f

REG ADD %KEY%\003 /V 1 /D "%PP%Nero.exe" /f

REG ADD %KEY%\004 /VE /D "Picasa2" /f

REG ADD %KEY%\004 /V 1 /D "%PP%\Picasa2\Picasa.cmd" /f

REG ADD %KEY%\005 /VE /D "Office 2003" /f

REG ADD %KEY%\005 /V 1 /D "%PP%office2003br.exe" /f

REG ADD %KEY%\006 /VE /D "Flash" /f

REG ADD %KEY%\006 /V 1 /D "%PP%flash.exe /silent" /f

REG ADD %KEY%\007 /VE /D "Messenger Plus! Live" /f

REG ADD %KEY%\007 /V 1 /D "%PP%Instalarmsgpluslive.exe" /f

REG ADD %KEY%\008 /VE /D "..." /f

REG ADD %KEY%\008 /V 1 /D "%PP%taskkill.exe /F /IM msnmsgr.exe" /f

REG ADD %KEY%\009 /VE /D "Tweaks" /f

REG ADD %KEY%\009 /V 1 /D "%PP%REGEDIT32 /s tweaks.reg" /f

REG ADD %KEY%\010 /VE /D "DirectX Março 2008" /f

REG ADD %KEY%\010 /V 1 /D "%PP%\directx\dxsetup /silent" /f

EXIT

EDIT: SORRY!! posted on the wrong forum. Posting in xp forum!

Edited by elmatadorbr
Link to comment
Share on other sites


make a search in this forum for FirstLogonCommands, i have posted about it before. Also, another user (sorry, i don't remember who) made a post explaining how to do it.

Link to comment
Share on other sites

make a search in this forum for FirstLogonCommands, i have posted about it before. Also, another user (sorry, i don't remember who) made a post explaining how to do it.

Yeah, i've resolved this problem! The syntax is wrong and nlite requires i put the script on another place...

Thanks a lot guys!!!!

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...