Jump to content

mellimik

Member
  • Posts

    46
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Norway

Everything posted by mellimik

  1. Hey, I've been wondering can I define variable that contains words separated with spaces, then use FOR to go through the string and echo every token? @echo off REM DEFINE THE HOSTS THAT SHOULD BE SKIPPED (SEPARATE WITH SPACE) set DISCARD=DC1 DC2 MGW FOR /F "delims= " %%a IN ('@echo %DISCARD%') DO @( echo DISCARDED : %%a ) but this only echoes the word before the first space. C:\>skip.cmd DISCARDED : DC1 C:\> I know that I could use a text file containing all the words separated with new lines, but for the sake of simplicity I want to define everything inside one variable. I understand that using the "tokens=" parameter I can capture the amount I want from the line, but I just want to echo every token from the line and do something with them. This is what I would like the output to be: C:\>skip.cmd DISCARDED : DC1 DISCARDED : DC2 DISCARDED : MGW C:\> Is this possible?
  2. Thanks, I'll try to do this by merging the relevant information from both of the individual txtsetup.oem files to one master file. This would be my second option. It's just so much more easier to actually see what drivers you have when they are not slipstreamed as part of the OS installation media.
  3. The folder $OEM$\TEXTMODE inside the image folder, can it hold two different storage drivers? I mean I have a workstation that we deploy with external RAID card and also with the internal SATA controller. Both of the drivers contain (for e.g.) a file called txtsetup.oem, so I cannot put it on top of the other txtsetup.oem file already existing there. Do I have to create two separate images or can I use that one image folder to support this workstation with two different configurations?
  4. Thanks I actually already got that after digging deeper with our dear friend Google Those fighting with the same problem, VMWare Tools can be found as an .MSI package inside windows.iso file, this file also contains PnP drivers for Windows that you can use with the .sif file(s).
  5. Ok, thanks. This means i have to search for the correct driver under VMWare installation folder.
  6. Do you know anything else about this problem? I been trying to increase the default resolution in my virtual machines, but they always default to 640x480 even though otherwise stated in the .sif file. I'd be really grateful if you know something more.
  7. I have a problem with my virtual machines that are installed using RIS. Even though the .sif file says this: [Display] BitsPerPel = 32 XResolution = 800 YResolution = 600 VRefresh = 60 After a reboot and during the initial login I can see that the resolution is still 640x480. This creates a problem because some applications won't install using such a low resolution (i know, it's stupid from the application point of view). Might someone have an idea why this happens? I'm using VMWare Server 1.0.1 and installing Windows XP machines with RIS.
  8. Yes, i know this My intention was to avoid using two CIW screens for localization choice if it would be possible to get by with one. Actually, our current system has three CIW screens just for localization purposes, with little scripting inside .SIF files this would reduce to one page.
  9. I have dilemma with my regional settings, I should support at least three sites with three different regional settings. What i have been thinking about is to use batch scripting inside the .SIF file, but i don't know if that is supported? The easiest way to go would be to make one regional setting while in CIW phase, then base all the relevant settings using that. In my current system I have to select both InputLocale and UserLocale individually (two pages), while it would be sufficient just to say that this system is English, go with its defaults. It's weekend so i can't test this from home, but if anyone knows this i'd be greatful
  10. Is it possible to install IIS with RIS? Can you somehow specify in the .sif file that you want IIS to be installed?
  11. Thanks for the information! Then i'll play with the drivers then
  12. Or apply this MS KB883667 hotfix that seems to be made because of this type of issues?
  13. No need to reply anymore, this forum seems to be full of these issues..
  14. I did try to search from the forum this kind of posts but didn't find any, so if you would be as kind to provide some links.. If there is some way to avoid this from happening i would really appreciate hearing it.
  15. I just created a new image for HP DC7600 workstation. Everything goes smoothly as it should be and has always went, but for some odd reason it just asked me to find drivers for PnP monitor in the middle of GUI phase installation? I applied the Microsoft High Definition Audio patch onto I386 folder before i initiated this installation. I don't think it has anything to do with this, though. Has anyone experienced this before? The system i'm testing the image with has 22" Sony TFT monitor attached to it with VGA connection, but this is the first time ever Windows asks for monitor driver in the middle of GUI phase installation. And it's not really automated if i have to decline every time to this prompt...
  16. It works like i have it below. Thanks for everyone of helping! FOR /D %%i IN (%~dp0Private\optional\*) DO (start "Installing %%~nxi" /wait /D "%%i" CMD /C %%~si\install.cmd %2)
  17. Are you sure? My install.cmd files don't receive %2 parameter. You can try to re-create my folder structure: .Global ..Mandatory ...EncryptionSoft ...AntivirusSoft ..Optional ...VPNClient ...AdobeReader .Private ..Mandatory ..Optional And place these folders along with the start.cmd file to somewhere. Then create install.cmd file to, let's say, inside VPNClient folder and make it to echo parameters it receives from start.cmd. Ofcourse you have to start start.cmd with two parameters. I just don't get it, why it doesn't work. Sniff Because the START command gives me the option to use /D as in "Start path for this batch file is this directory". CALL runs a batch file in the context of the calling batch file, meaning you don't have the option to modify start path which is the only important point here
  18. We have a little problem with our batch file. It is used as an automated installer, its functions are to go through four predefined folders and try to run install.cmd files. For some reason i am unable to make this file to pass a parameter for those install.cmd files it launches. :: AUTOMATIC BATCH INSTALLER IF /I :%COMPUTERNAME%==:RISSERVER ECHO "Do not run from Server!!!" && PAUSE && EXIT FOR /D %%i IN (%~dp0Global\Mandatory\*) DO start "Installing %%~nxi" /wait /D"%%i" "CMD /C EXIT | %%~si\install.cmd %2" FOR /D %%i IN (%~dp0Private\Mandatory\*) DO start "Installing %%~nxi" /wait /D"%%i" "CMD /C EXIT | %%~si\install.cmd %2" IF /I :exception==:%1 ( REM Nothing to do here ) ELSE ( FOR /D %%i IN (%~dp0Global\optional\*) DO start "Installing %%~nxi" /wait /D"%%i" "CMD /C EXIT | %%~si\install.cmd %2" FOR /D %%i IN (%~dp0Private\optional\*) DO start "Installing %%~nxi" /wait /D"%%i" "CMD /C EXIT | %%~si\install.cmd %2" ) So that %2 (passed parameter #2) should be passed along to all of those install.cmd files it founds. For some reason this does not work. Install.cmd files never receive this parameter. Has anyone of you got any improvement suggestions?
  19. This method has been proven to work! One thing still puzzles me though, how am i supposed to make global modifications in registry to all users for applications that get installed after this cmdlines.txt phase? Let's say i want to disable ATI Control Center from asking stupid wizard questions, and now since this application gets installed after the HKEY_CURRENT_USER tweaks made by cmdlines.txt, how do i have a chance to distribute these modifications to all current and all to-be-created profiles?
  20. Thank you man! If this information works, i love you! Been hitting my head against tough wall for several days now..
  21. Hi, this is my first post here and boy must i say a rather tricky one, too. I've been studying and using RIS now for few weeks and as well as it behaves, there is something very important that must solved before this can be implemented throughly. Default user profile... that's the thing. What options do i have to set predefined Default user profile? I tried to create "$OEM$\$1\Documents and Settings\Default User" folder structure to my image and copy preconfigured NTUSER.DAT to there, but that didn't seem to work. Then i tried to create .reg files and import them into registry using batch file launched by [GuiRunOnce]. The .reg file below is what i've been trying to use to disable Windows Tour Balloon for all users. I understand that if this registry key is imported to registry before anyone has logged into console, it should be merged to HKEY_CURRENT_USER\... when, let's say', Administrator initially logs in. Windows Registry Editor Version 5.00 [HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Applets\Tour] "RunCount"=dword:00000000 Even though this is added to registry, when i log in with a new user account i can see that this RunCount is not 0, but for e.g. 2. So the registry information imported above doesn't seem to be merged to new profiles created. Another thing i've been trying to implement is to enable ClearType for all users. Windows Registry Editor Version 5.00 [HKEY_USERS\.DEFAULT\Control Panel\Desktop] "FontSmoothing"="2" "FontSmoothingOrientation"=dword:00000001 "FontSmoothingType"=dword:00000002 This enables ClearType when no one is logged into the system, in e.g. when i have Windows Login GUI in front of me. When i log in using a new user account i have no ClearType enabled in my Desktop. Can someone point me the important stuff i may be missing here?
×
×
  • Create New...