BritishBulldog Posted October 16, 2004 Share Posted October 16, 2004 this might be a daft question but can you run the app directly from a cd?i only see entries in the xplode.xml as %systemdrive% none as %CDROM% Link to comment Share on other sites More sharing options...
BritishBulldog Posted October 16, 2004 Author Share Posted October 16, 2004 managed to do it.got all my apps installing straight from DVD without copying to HDD If anyone is interested i will post details Link to comment Share on other sites More sharing options...
Vel Straty Posted October 17, 2004 Share Posted October 17, 2004 Yes! I would like to see the great work!pls it with us! Link to comment Share on other sites More sharing options...
BritishBulldog Posted October 17, 2004 Author Share Posted October 17, 2004 Ok its nothing spectacular but it works.because XPlode.xml does not understand %CDROM% there had to be a way of getting this info before XPlode.exe started.my DVD was built up as below in the picture, all my programs are in an install directory direct on the root and not in %OEM% so they dont get copied the the hard drive.The main problem is getting the %CDROM%, so out of my cmdlines.txt i call up a findcd.cmd before XPlode is started.cmdlines.txt[COMMANDS]"konten.cmd""findcd.cmd"".\$1\Install\XPlode\XPlode.exe /xml:#Systemdrive#\Install\XPlode\XPlode.xml /log:#Systemdrive#\XPlode.log"the findcd.cmd contains the routine to find the CD/DVDfindcd.cmdcmdow @ /HID@echo offIF EXIST D:\CD.txt set CDROM=DIF EXIST E:\CD.txt set CDROM=EIF EXIST F:\CD.txt set CDROM=FIF EXIST G:\CD.txt set CDROM=GIF EXIST H:\CD.txt set CDROM=HIF EXIST I:\CD.txt set CDROM=IIF EXIST J:\CD.txt set CDROM=JIF EXIST K:\CD.txt set CDROM=KIF EXIST L:\CD.txt set CDROM=LIF EXIST M:\CD.txt set CDROM=MIF EXIST N:\CD.txt set CDROM=NIF EXIST O:\CD.txt set CDROM=OIF EXIST P:\CD.txt set CDROM=PIF EXIST Q:\CD.txt set CDROM=QIF EXIST R:\CD.txt set CDROM=RIF EXIST S:\CD.txt set CDROM=SIF EXIST T:\CD.txt set CDROM=TIF EXIST U:\CD.txt set CDROM=UIF EXIST V:\CD.txt set CDROM=VIF EXIST W:\CD.txt set CDROM=WIF EXIST X:\CD.txt set CDROM=XIF EXIST Y:\CD.txt set CDROM=YIF EXIST Z:\CD.txt set CDROM=ZREGEDIT /S %CDROM%\install\CDROM\%CDROM%.regok it can be shortened. when the CD drive is found then the coresponding .reg file is put into the registry through the last line.so if the CD/DVD was at f: then F.reg would be loaded to the registry, if it was g: the g.reg is loaded.I am sure there is another way of doing this without all the .reg files.F.regWindows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\HARDWARE\CD]"CDROM"="F:"G.regWindows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\HARDWARE\CD]"CDROM"="G:"all that is needed now is that XPlode.xml calls up the value from the registry.this is done before my first application is installed, the routine is below called Preparing CD ROM.- <item display="Preparing CD ROM"> <registry display="Reading CDROM" method="read" hive="HKLM" key="Hardware" item="CD" variable="CDROM" /> </item>So now instead of having everything copied to the hard drive they will install from the CD/DVD saving time.my XPlode.xml is below, it is not finished I am still having problems with the 'filecopy' and 'dircopy' so if any of you can give me tips they are appreciated.MS Office , Paintshop and WinAmp dont work at the moment but the others all do. Link to comment Share on other sites More sharing options...
BritishBulldog Posted October 17, 2004 Author Share Posted October 17, 2004 Hope that was understandable...here is my XPlode.xmlIf you use this method check that your switches are OK as some of them need to write to a log file.XPlode.xml Link to comment Share on other sites More sharing options...
hunter Posted October 17, 2004 Share Posted October 17, 2004 #SOURCEPATH# works Link to comment Share on other sites More sharing options...
BritishBulldog Posted October 17, 2004 Author Share Posted October 17, 2004 did not know that, all my hard work for nothing.stil i am learning Link to comment Share on other sites More sharing options...
CorbenDallas Posted November 6, 2004 Share Posted November 6, 2004 What does #sourcepath# do then? Could someone explain to a newb? BTW, maybe somone can explain what the difference is between % and #.Sometimes when I look at Xplode.xml I see %systemdrive% and sometimes #systemdrive#. Does both work? Link to comment Share on other sites More sharing options...
BritishBulldog Posted November 6, 2004 Author Share Posted November 6, 2004 #sourcepath# is the CDROM drive letter.So far as i see there is no real difference between % abd # although some variables work better with the # in XPLode, i only use the # now Link to comment Share on other sites More sharing options...
Wraith Posted November 7, 2004 Share Posted November 7, 2004 # was added because certain variables (%XPLODE%, %SOURCEPATH%) are handled by the commandline, rather than XPLode, depending on how you call them.On the command line, these would be set to a blank string, so it screws s*** up.Using # works fine there....In the XML, both are interchangeable. 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