MSFN Forum: XPlode cannot be launched at [GuiRunOnce] command - MSFN Forum

Jump to content



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

XPlode cannot be launched at [GuiRunOnce] command Rate Topic: -----

#1 User is offline   SpaceShip 

  • Newbie
  • Group: Members
  • Posts: 10
  • Joined: 07-November 04

Posted 09 November 2004 - 03:18 PM

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


#2 User is offline   BritishBulldog 

  • Member
  • PipPip
  • Group: Members
  • Posts: 271
  • Joined: 11-October 04

Posted 09 November 2004 - 03:57 PM

not sure on the regedit but start the batch file like this.

[GuiRunOnce]
%WinDir%\regedit /s %WinDir%\system32\oemlink.reg
%systemdrive%\install\1.bat


you 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

#3 User is offline   Alanoll 

  • CODE tags people, CODE tags!
  • Group: Patrons
  • Posts: 5,496
  • Joined: 25-September 03

Posted 09 November 2004 - 04:24 PM

you need quotes around the entire command typically, which means no embedded quotes.

#4 User is offline   SpaceShip 

  • Newbie
  • Group: Members
  • Posts: 10
  • Joined: 07-November 04

Posted 09 November 2004 - 07:33 PM

Thx Guys.
Gonna Try, hopefully.
and anybody can answer the second question, xml delete.

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