Jump to content

mdes

Member
  • Posts

    342
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    France

Posts posted by mdes

  1.            REM -------------------------------------------------------------------------------
               REM On System Drive, the files DRIVE-.? indicate letters not to be assigned
               REM -------------------------------------------------------------------------------
    =>         FOR %%U IN (!TMP_OLD_LETTER!:\DRIVE-.?) DO (
                   SET TMP_NOT_FREE=%%~xU
                   SET TMP_FREE_LETTER-!TMP_NOT_FREE:~1!=
               )

    I can verify that is code does in fact fix the problem with free letters not be reserved.

    Thanks a lot, gwilkes :) Tomorrow, I will update the .CMD in the 1st mail.
  2. CD-Rom Drive problem.....FIXED!  :thumbup
    I have only a DVD writer, so, I could not really test it :( But I am very happy of your help.
    Still have one other problem,  the drive letter exclusions don't seem to have any effect.

    As I mentioned in my previous post I made the drive exclusion files as instructed:

    DRIVE-.I  through DRIVE-.Z and put them on the root of the system drive (C:) in an attempt to force the Removeable drives to take the letters G & H.  It is not working still.

    Could you change one line in the batch file as (marked with a leading "=>")?
               REM -------------------------------------------------------------------------------
               REM On System Drive, the files DRIVE-.? indicate letters not to be assigned
               REM -------------------------------------------------------------------------------
    =>         FOR %%U IN (!TMP_OLD_LETTER!:\DRIVE-.?) DO (
                   SET TMP_NOT_FREE=%%~xU
                   SET TMP_FREE_LETTER-!TMP_NOT_FREE:~1!=
               )

    and tell me if the problem is solved? (In any case, I can reproduce this bug on my system)

    Also, I call the MapDrive.cmd file using a start /wait from my RunOnceEX.cmd file and the MapDrive.cmd doesn't seem to contain an appropriately placed EXIT command so the cmd Window Titled "ReAssign letters to Drives" remains open and my RunOnceEx.cmd file will not continue until I close the "ReAssign letters to Drives" window.

    The reason for the start /wait is because I am relying on accurate Drive Letters for the CDROM variable in my RunOnceEX.cmd file to work.  Since the script takes a little time to finish I have to "Start /WAIT" launch the file.

    I placed two EXIT commands in the file here:

    ...
    EXIT
    GOTO :EOF
    ...
    GOTO :EOF
    EXIT

    It seems to work perfectly when I use it.  Are these EXITs located in an appropriate place?

    EXIT has the same effect as GOTO :EOF, so I cannot see why it should work with these 2 EXIT added ??? Type GOTO /? and/or CALL /? in a command box for a description of the GOTO :EOF extension that will allow you to "return" from a batch script

    Thank for your help for debugging :yes:

  3. I didn't get any errors however The CD-rom drive letter did not get reported as changed in the log file.
    Hi Chiphead,

    I found the problem :blushing:

    Here is a new version (I didn't test it :o , but I will do it in a few hours): try it and, please, report here any success, or any failure.

    ps1: The "beta" version in this post is no more a beta, but I forgot to update the one in the first post of this thread :blushing: So, for anyone, take the beta one... As soon as the bug described here will be corrected, I will update the 1st post.

    ps2: Instead of using the QUOTE tag, use the CODE one, so the files will be beautifully displayed :P

    EDIT 2005/07/20: Attachment deleted, see first post for the last version.

  4. According to MS:

    SVC-HF1\WindowsXP-KB896358-x86-FRA.exe      replaces SVC-HF1\WindowsXP-KB890175-x86-FRA.exe
    SVC-HF1\WindowsXP-KB890046-x86-FRA.exe      replaces -
    SVC-HF1\WindowsXP-KB896422-x86-FRA.exe      replaces -
    SVC-HF1\WindowsXP-KB896428-x86-FRA.exe      replaces -
    SVC-HF1\WindowsXP-KB883939-x86-FRA.exe      replaces SVC-HF1\WindowsXP-KB890923-x86-FRA.exe
    SVC-HF1\WindowsXP-KB893066-v2-x86-FRA.exe   replaces -
    SVC-MRT\Windows-KB890830-V1.5-FRA.exe       replaces SVC-MRT\Windows-KB890830-V1.4-FRA.exe

    Everything is OK :)

    SVC-HF1\WindowsInstaller-KB893803-v2-x86.exe
    SVC-HF1\windowsmedia10-kb887078-x86-enu.exe
    SVC-HF1\WindowsXP-KB873333-x86-FRA.exe
    SVC-HF1\WindowsXP-KB873339-x86-FRA.exe
    SVC-HF1\WindowsXP-KB883939-x86-FRA.exe
    SVC-HF1\WindowsXP-KB884020-x86-fra.exe
    SVC-HF1\WindowsXP-KB884883-v2-x86-FRA.exe
    SVC-HF1\WindowsXP-KB885250-x86-FRA.exe
    SVC-HF1\WindowsXP-KB885523-x86-fra.exe
    SVC-HF1\WindowsXP-KB885626-v2-x86-fra.exe
    SVC-HF1\WindowsXP-KB885835-x86-FRA.exe
    SVC-HF1\WindowsXP-KB885836-x86-FRA.exe
    SVC-HF1\WindowsXP-KB885894-x86-fra.exe
    SVC-HF1\WindowsXP-KB886185-x86-fra.exe
    SVC-HF1\WindowsXP-KB886677-x86-fra.exe
    SVC-HF1\WindowsXP-KB887472-x86-fra.exe
    SVC-HF1\WindowsXP-KB887742-x86-FRA.exe
    SVC-HF1\WindowsXP-KB887797-x86-fra.exe
    SVC-HF1\WindowsXP-KB888113-x86-FRA.exe
    SVC-HF1\WindowsXP-KB888240-x86-ENU.exe
    SVC-HF1\WindowsXP-KB888302-x86-FRA.exe
    SVC-HF1\WindowsXP-KB890046-x86-FRA.exe
    SVC-HF1\WindowsXP-KB890859-x86-FRA.exe
    SVC-HF1\WindowsXP-KB891781-x86-FRA.exe
    SVC-HF1\WindowsXP-KB893066-v2-x86-FRA.exe
    SVC-HF1\WindowsXP-KB893086-x86-FRA.exe
    SVC-HF1\WindowsXP-KB893357-v2-x86-FRA.exe
    SVC-HF1\WindowsXP-KB896358-x86-FRA.exe
    SVC-HF1\WindowsXP-KB896422-x86-FRA.exe
    SVC-HF1\WindowsXP-KB896428-x86-FRA.exe

    SVC-HF2\WMC.EXE

    SVC-MRT\Windows-KB890830-V1.5-FRA.exe

    SVC-MSX\KB831240.hmtcdwizard_fra.exe
    SVC-MSX\NDP1.1sp1-KB867460-X86.exe
    SVC-MSX\NDP1.1sp1-KB886903-X86.exe

    SVC-QCH\Q815062_W2K_spl_X86_EN.exe

    SVC-SWF\swflash.cab

    SVC-WMP\mp10setup.exe

    SVC-X2M\dotnetfx.exe
    SVC-X2M\INSTALL_MSN_MESSENGER_DL.EXE
    SVC-X2M\langpack.exe
    SVC-X2M\setup.JournalViewer.exe

    and in RunOnceEx.cmd:

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

    REG ADD %KEY%\060 /VE  /D "Remote Desktop Client" /f
    REG ADD %KEY%\060 /V 1 /D "msiexec /i \"%SystemDrive%\Install\HotFixes\msrdpcli.msi\" /qb /quiet /norestart" /f

  5. Puff, this is heavy stuff. I am just doing unattend for a few days now ; trying to unattend server 2003 with a slipstreamed sp1.

    But having a lot of trubbles; also with the diskpart.

    i just don't know how to use it. tried reading a lot but í don't get it working.

    what i would like to do is - when staring the unattend- 2 partitions are created; a c with the installation from 9 giga; and a d that should use the rest of the available memory. Both partitions should be dynamic volumes. Because i am using different sized harddisks, the d partition can be for 1 server 9 giga and for a other server 21 giga. Also, the cdrom should be given the Z

    Hope someone can help me; i am stuck and totally blacked-out.

    I know nothing about Dynamic volumes, so I cannot help you about this point :no:

    To assign the letter Z to your CDROM, just create a file names CDR.Z on the system volume (for unattended installation, you should create it in the $OEM$\$1 folder, and of course MAPDRIVE.CMD should be executed during the installation: see above for insertion in CMDLINES.TXT).

    In the same way, if you create another file DRIVE.D in the root of the volume that you want to be assigned letter D, it will be assigned.

    I hope this will help you partially :wacko:

  6. I process CDR and DVD in separate ways, so "normaly", it will not be a problem with 2 CDR and 2 DVD.

    Erm... Explain please?
    I manage only one pool of free letters.

    I assign one array of variables for each CDR, and one for each DVD.

    So the DVDs will be assigned Z: and Y:, and the CDRs X: and W: (if there is no DVD.x nor CDR.x on the system drive root).

    Before, I didn't work with array, only a variable.

    2 little messages pop up, but it doesn't influence the process:
    Environment variable TMP_NEW_CDR_LETTER- not defined

    Environment variable TMP_NEW_DVD_LETTER- not defined

    That's fixed :thumbup (at least, I hope)

    The last version is available in the first post of this thread. Have a look at the batch file :whistle:

    @Ben.Hahlen: Thanks a lot for debugging :)

  7. It seems to be working OK.

    2 little messages pop up, but it doesn't influence the process:

    Environment variable TMP_NEW_CDR_LETTER- not defined

    Environment variable TMP_NEW_DVD_LETTER- not defined

    I have no clue why this pops up...

    Great to see that unspecified DVD/CD drives are automatically assigned to Z and Y :thumbup

    Making a second-test run now, since it didn't work with the first try from cmdlines.txt, but that seems to be a problem from my end (corrupt download).

    EDIT: Second test just ended. It works perfectly now. I think a problem will exist for people who have two DVD's or two CD's in their computer, since it will assign one to the last letter specified, and the other to Z.

    But that's something that you can't fix, I think, since it's probably a limitation of the diskpart-program.

    Great work though :thumbup

    I may reproduce the "not defined" variables, but not yet solved... As you quoted, it is not very important :blushing:

    I process CDR and DVD in separate ways, so "normaly", it will not be a problem with 2 CDR and 2 DVD :)

  8. Here is the new version :thumbup but I leave it in Beta status because I have only one DVD.

    So test it with multiple CDR/DVD, and tell me if it is ok. When it will be correct, I will update the first post of this thread.

    Thanks for your help.

    ps: The modifications are the following:

    Allow multiple CDR/DVD.

    Suppress the "Drive not ready" message box on empty removable drives (like USB SD/CF/... card readers).

    Suppress the "TMP_OLD/NEW_CDR/DVD_VOLUME- is not defined" message.

    Display all the assignments (effective or not).

    EDIT: The non-beta version could be downloaded on the first thread of this post.

    MapDrive.cmd

  9. i have a little problem with mapdrive.

    vmware

    one hdd with 4 partitions

    mapdrive should give the fourth partition the Letter "L" <- this work

    mapdrive must to leave the third partitions @ Letter "E" <- but mapdrive give this part the letter "Y". no DRIVE.x file at this part.

    an installation without mapdrive works. E remains constant.

    i made a DRIVE-.E file, but it won´t help.

    what make i incorrect?

    If your drive does not have to be assigned by MapDrive, MapDrive is assigning a free letter starting with Z, Y, X,... This is MY choice (the easyest to code in batch; but see below), but this could be changed by replacing the line (around 434)
    FOR /F "usebackq tokens=2 delims=-=" %%L IN (`SET TMP_FREE_LETTER-`) DO SET X=%%L

    by

    FOR /F "usebackq tokens=2 delims=-=" %%L IN (`SET TMP_FREE_LETTER- |SORT /R`) DO SET X=%%L

    but as far as I remember, this will not work in FOR loops with back quotes; so I will have to use a temporary file, and, so, replace the FOR line by the 2 following lines:

    SET TMP_FREE_LETTER- |SORT /R >tempFile
    FOR /F "usebackq tokens=2 delims=-=" %%L IN (tempFile) DO SET X=%%L

    (Note that I did NOT test it!)

    I choose to start from the end of alphabet because, when inserting an USB key (e.g.), Windows hide it sometimes under another drive; so I prefer to leave the first letters free.

  10. How do I get MapDrive.cmd to run correctly from cmdlines.txt?

    I currently have

    "MapDrive.cmd ENU %TEMP% >%TEMP%\MapDrive.log"

    this in there,  but it doesn't seem to work.

    What should I do to get it to run from cmdlines.txt?

    Perhaps is %TEMP% not yet defined at this point! Try with:
    "MapDrive.cmd ENU %SystemDrive%\Temp >%SystemDrive%\Temp"

    (or something like this if this Temp folder does not exist) just to see if it work...

  11. I got the following error messages during the XPCREATE process: (Translation is in [])

    -- 22:42:50 --> Extracting for sort order.
    TEMP\CATEXT\update\update.exe - Le processus ne peut pas accéder au fichier car ce fichier est utilisé par un autre processus.
                     [= The process cannot access the file because the file is used by another process]
    TEMP\CATEXT\update\update.exe - Le processus ne peut pas accéder au fichier car ce fichier est utilisé par un autre processus.
    TEMP\CATEXT\update\update.exe - Le processus ne peut pas accéder au fichier car ce fichier est utilisé par un autre processus.
    TEMP\CATEXT\sp2qfe\explorer.exe - Le processus ne peut pas accéder au fichier car ce fichier est utilisé par un autre processus.
    TEMP\CATEXT\update\update.exe - Le processus ne peut pas accéder au fichier car ce fichier est utilisé par un autre processus.
    TEMP\CATEXT\update\update.exe - Le processus ne peut pas accéder au fichier car ce fichier est utilisé par un autre processus.
    TEMP\CATEXT\update\update.exe - Le processus ne peut pas accéder au fichier car ce fichier est utilisé par un autre processus.
    TEMP\CATEXT\sp2qfe\msmsgs.exe - Le processus ne peut pas accéder au fichier car ce fichier est utilisé par un autre processus.
    TEMP\CATEXT\update\update.exe - Le processus ne peut pas accéder au fichier car ce fichier est utilisé par un autre processus.
    TEMP\CATEXT\spuninst.exe - Le processus ne peut pas accéder au fichier car ce fichier est utilisé par un autre processus.
    TEMP\CATEXT\spuninst.exe - Le processus ne peut pas accéder au fichier car ce fichier est utilisé par un autre processus.
    TEMP\CATEXT\update\update.exe - Le processus ne peut pas accéder au fichier car ce fichier est utilisé par un autre processus.
    TEMP\CATEXT\spuninst.exe - Le processus ne peut pas accéder au fichier car ce fichier est utilisé par un autre processus.
    TEMP\CATEXT\spuninst.exe - Le processus ne peut pas accéder au fichier car ce fichier est utilisé par un autre processus.
    TEMP\CATEXT\update\update.exe - Le processus ne peut pas accéder au fichier car ce fichier est utilisé par un autre processus.
    -- 22:44:21 --> Sort Hotfixes ...

    Does anybody have an idea what is causing this error?

    I got also the following message during the same XPCREATE:

    -- 23:20:30 --> Put all the files for the CD together
    Failure renaming "I:\XPCREATE\XPCR7_03\CDROOT\I386".
    ERROR 5: AccÞs refusÚ.
    -- 23:22:50 --> Create an ISO image
           1 fichier(s) copié(s).  [= 1 file(s) copied]
           1 fichier(s) copié(s).
           1 fichier(s) copié(s).
    -- 23:24:08 --> Burning ISO image

    Any information about this problem?

    Thanks for any informations :)

×
×
  • Create New...