MSFN Forum: Maybe a noob problem with script - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Maybe a noob problem with script Rate Topic: -----

#1 User is offline   elmatadorbr 

  • Newbie
  • Group: Members
  • Posts: 11
  • Joined: 09-May 08

Posted 11 May 2008 - 07:44 PM

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!

This post has been edited by elmatadorbr: 11 May 2008 - 07:49 PM



#2 User is offline   ajua 

  • Custom Installer Maker
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,260
  • Joined: 16-April 05

Posted 16 May 2008 - 02:01 AM

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.

#3 User is offline   elmatadorbr 

  • Newbie
  • Group: Members
  • Posts: 11
  • Joined: 09-May 08

Posted 16 May 2008 - 04:19 PM

View Postelajua, on May 16 2008, 05:01 AM, said:

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

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy