SpaceShip Posted November 9, 2004 Share Posted November 9, 2004 The batch file for xplode (e.g. 1.bat) run normally when user click to run it, but it cannot be launced at [GuiRunOnce] in winnt.sif file.winnt.sif is below;; Generated by nLite 0.99.3 beta;[Data] MsDosInitiated = 0 UnattendedInstall = Yes[Unattended] UnattendMode=DefaultHide OemSkipEula=Yes OemPreinstall=Yes TargetPath=\WINDOWS WaitForReboot=No[Identification] JoinWorkgroup=MSNHOME[GuiUnattended] AdminPassword= EncryptedAdminPassword=NO OEMSkipRegional=1 OemSkipWelcome=1[UserData] ProductKey = "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX" FullName="" OrgName=""[RegionalSettings] Language=00000804[Branding] BrandIEUsingUnattended=Yes[GuiRunOnce] command1="%WinDir%\regedit /s %WinDir%\system32\oemlink.reg" command2="%systemdrive%\install\1.bat"Xml file shown as below<XPlode> <config> <hidewindow>Windows Update</hidewindow> <hidewindow>CMD.EXe</hidewindow> <show total='10' after='2' subcount='true' /> <!-- make antialiasing false if you're running GUIinstall mode --> <font face='Tahoma' antialias='false' small='8' large='12' /> <!-- note the position attribute - it is listed in 'x,y' positions. --> <!-- 0..8 still may be used. --> <window width='650' position='4' fixmain='0' /> <!-- can be standalone, guitransparent, or guiredraw --> <!-- for the latter two, you don't need to specify background colours, or images. --> <windowmode mode='standalone' /> <colours> <header back='#003399' fore='#FFFFFF' /> <footer back='#003399' fore='#FFFFFF' /> <progress border='#FFFFFF' back='#00000000' fore='#FFFFFFAA' fore2='#00000033' /> <main fore='#FFFFFF' current='#FFFF00' description='#FFFFFF' image='%XPLODE%\images\main.png' overlay='#FFFFFF22' /> </colours> <strings> <!-- main XPlode string --> <title>Post-Install Configuration</title> <complete>complete</complete> <!-- adduser plugin strings --> <adduser>Adding user #1#</adduser> <addusertogroup>Adding user #1# to group #2#</addusertogroup> <addgroup>Adding group #1#</addgroup> <!-- file/dir ops plugin strings --> <copy>Copying #1# (#2#/#3# - #4#)</copy> <move>Moving #1# (#2#/#3# - #4#)</move> <delete>Deleting #1# (#3#)</delete> <!-- shortcut plugin --> <shortcut>Adding shortcut: #1#</shortcut> </strings> </config> <items> <item display='MS MediaPlayer 10'> <execute display='Installing Microsoft Windows MediaPlayer 10 [Chinese Simplified]..' program='%SYSTEMDRIVE%\Install\MP10Setup.exe' arguments='/q' /> </item> <item display='MSN Messenger 6.2'> <execute display='Installing MSN Messenger 6.2 [Chinese Simplified]...' program='%SYSTEMDRIVE%\Install\MsnMsgs.msi' arguments='/qb' /> </item> <item display='WinRAR'> <execute display='Installing WinRAR...' program='%SYSTEMDRIVE%\Install\WinRAR.exe' arguments='/s' /> </item> <item display='Winamp 5.03'> <execute display='Installing Winamp 5.03...' program='%SYSTEMDRIVE%\Install\winamp.exe' arguments='/S' /> </item> <item display='Delete Temporary Files'> <delete source='%SYSTEMDRIVE%\Install' mask='*.*' /> <delete source='%SYSTEMDRIVE%\Install' /> </item> </items></XPlode>by the way, why the program cannot delete the Install Floder itself after installation? Is there anything wrong with my XML file.Please help me, it's my first time using this, feel the power it takes. So let me feel it perfectly. Thanks anyway Link to comment Share on other sites More sharing options...
BritishBulldog Posted November 9, 2004 Share Posted November 9, 2004 not sure on the regedit but start the batch file like this.[GuiRunOnce]%WinDir%\regedit /s %WinDir%\system32\oemlink.reg%systemdrive%\install\1.batyou should be able to call it up like this.[GuiRunOnce]"%SYSTEMDRIVE%\install\XPLode\XPLode.exe log:"#systemdrive#\XPlode.log"just match up your directory structure to XPLode.exe Link to comment Share on other sites More sharing options...
Alanoll Posted November 9, 2004 Share Posted November 9, 2004 you need quotes around the entire command typically, which means no embedded quotes. Link to comment Share on other sites More sharing options...
SpaceShip Posted November 10, 2004 Author Share Posted November 10, 2004 Thx Guys.Gonna Try, hopefully.and anybody can answer the second question, xml delete. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now