Jump to content

kev_147

Member
  • Posts

    99
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United Kingdom

About kev_147

kev_147's Achievements

0

Reputation

  1. Thanks for you comments guys, appreciated. I am not convinced though. I have WPI working with parsed commands in the example below and that doesn't state the full path. Note for Albundy33, the backslash on the end of WPI.Hta was not plain text, it was a break out within the registry command, ie informed the registry to treat everything between the 1st and 2nd \" as being within quotes. My apologies as I forgot to type in the 1st \" in my original post, have just edited it now. duh!! ******************************************************* REM ======================================== REM | This Section determines the CDROM Drive SetLocal enableextensions SET CDDRIVE=%~d0 REM========================================= REM | This Section configures the variables used within this script SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx SET ADDITIONAL_APPS=%KEY%\410 REG ADD %KEY% /V TITLE /D "Phase 4" /f REG ADD %ADDITIONAL_APPS% /VE /D "Additional Applications" /f REG ADD %ADDITIONAL_APPS% /V 1 /D "%SYSTEMROOT%\System32\mshta.exe \"%CDDRIVE%\WPI\WPI.HTA\" options=useroptions.js config=config.js check=Corporate_Build timer=30" /f EndLocal EXIT **********************************************************
  2. I have an automated build DVD and launch WPI via RunOnceEx using the following command line: %SYSTEMROOT%\System32\mshta.exe \"%CDDRIVE%\$OEM$\WPI\WPI.HTA\" options=useroptions.js config=config.js check=Corporate_Build timer=30 Now the above command used to work in earlier versions, but now WPI launches, but doesn't automatically set the timer to 30 seconds and choose the Corporate_Build configurations. After testing I have found that if I put the WPI folder at the root of the DVD then the following command line works: (Note: $OEM$ has been removed from the command line) %SYSTEMROOT%\System32\mshta.exe \"%CDDRIVE%\WPI\WPI.HTA\" options=useroptions.js config=config.js check=Corporate_Build timer=30 Does anyone have any ideas why this is happening? Is it happening to anyone else? I don't mind having the WPI folder at the root of the disc, but am concerned that there may be a bug in there somewhere and thought I should bring it to light.
  3. night wolf, I think I get what you are trying to do and it is something that I see the build disk at my company evolving to. Am I correct in saying that you want to choose what software/registry tweaks etc you want to apply/install right at the beginning of the Windows installation? If so, this is my idea 1. Boot off a Windows PE CD that has HTA and WSH support 2. A disk Part script launches. It would be good if a hta file could come up asking if they want to partition the drive automatically or manually. if auto, then C drive takes up whole drive, if manual, engineer enters info. 3. Drive is formatted 4. Another HTA comes up with check boxes similar to WPI, then these selections are stored within a text file on the HDD that WPI/a VBscript can read from at RunOnceEx and add the command lines to RunOnceEx process. This process would ensure that all the questions are at the start of the Windows setup, so as you say, you can answer the questions, press apply and go and have a cuppa and put your feet up. Now I know this post may be going away from WPI, but it might also be something that WPI can incorporate as the Windows PE cd can have hta support. Don't flame me guys for the above. It is just a spec of an idea in my head at the moment, any other opinions/suggestions are welcome.
  4. FAO Mark, I know you are looking at adding the ability to configure IP address, DNS, WINS, Computername. Are you also looking into the option of joing the PC to a domain. If so, can WPI give the end user the text boxes to enter username, password and domain. It would be great if this could also be hardcoded within the script for automated installs or parsed via the command line launchin WPI. Would be even better if the password could be encrypted for security reasons. Hope all is going well. Am sorry I aint really been posting much lately, am snowed under at work with a SMS 2003 project. :-) In a few weeks, will want to update my automated Win XP install to use the latest version of WPI and to also kick off the install from a Pre Installation environment, rather than th text portion of setup, but thats for another section of msfn.
  5. does this pe disc have support for WSH & HTA? Can you advise how you add $oem$ type folders to a PE disc, for example if i wanted to copy a diskpart batch file to the systemdrive
  6. Guys, can you help me out? I am sure this is a right dumb question with a simple solution, but I haven't got an idea. I want to run the following command from a logon script to install either SMS Advanced Client or Legacy Client, depending on the version of the OS: %0\..\capinst.exe /SLP="slpname"/AUTODETECT=exit1.exe The bit where it says exit1.exe is where I am having probs. I need to write a script that can return a value of 0 if the PC is Windows 95, 98 or NT4 and to return a value of 1 if Windows 2000 or XP. This script should run silently, I have seen an example of a vbscript that just has 1 line, "Wscript.Quit 1" which will make the return value to be 1. Now if this was to be written in VBScript, is there a way it can run on windows 98 machine without the need of windows scripting host, ie can it be compiled in a .exe that will work on all operating systems
  7. I couldn't see the picture. Just a bit at the top of the toolbar. Can you repost
  8. I agree with WPI being designed with a professional level in mind. For example Micro$oft see a lot of their software with about 3 different ways to do the same task. This might make things look pretty, but the code behind it must multiply and is harder to train end users. I think WPI should do exactly what it says on the tin! :-) If other ppl want pretty pictures and sounds then maybe they could have the option via a modular approach, ie enable it. But the setting should be disabled by default if not absoutlotely neccesary. Thats my 2 pennies worth. Hope it makes sense
  9. Oh yeah, sorry m8, was probably half asleep.
  10. Thats similar to how we are doing it at work. I will post my final code tomorrow as I have been off work. Basically we obtain the information and write details of the laptop where the battery may need replacing and output this to a text file on a network share. We then a simple batch file to merge out that information into 1 csv file, where we can then search for make of battery first and then the model number if WMI gets this info. We found that there was a few laptops, i think the Latitude X300 where WMI didn't return anything regarding model number.
  11. Steve does that script actually get the serial number of the battery? I didn't think WMI could obtain the actual serial number of the battery, only the model number
  12. TBH I don't see the point of the Media Player. It might be a nice addition to some people, but my opinion is to leave it out by dfault and to have the media player installed in a modular way if some people wanted it. What I mean by this is to say have a configuration window whereby if you tick a box saying enable windows media player, then WPI looks at code in a java script file that just has code relevant to WMP. If the box isn't ticked then the WMP Javascript isn't used at all, can even be deleted if the person wants. Is this possible?
  13. I think the variables should match what windows outputs. Easier and read and configure. It don't look right seeing %SYSTEMDRIVE%System32 I much prefer %SYSTEMDRIVE%\System32
  14. GSH, thanks for all your help on this. I think it is a pretty neat and very useful script now. I have just incorporated it into my automated install of Windows XP.
  15. Thank You, Thank You, Thank You I thought I was going mad. It is always such a simple thing that can take ages to resolve. I was doing it within the configuration editor and didn't realise that it automatically added more back slashes.
×
×
  • Create New...