Jump to content

berci

Member
  • Posts

    7
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    China

About berci

berci's Achievements

0

Reputation

  1. I use the setupmgr.exe to create a answer file, it's name is input.txt. but , I modify the "ComputerName=test" to "ComputerName=XXXNAMEXXX". then I use the HTA script to modify the "XXXNAMEXXX" to the name that I need. the script is : ---------------------------------------------------------------------------------- Const ForReading = 1 Const ForWriting = 2 Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFile = objFSO.OpenTextFile("C:\Scripts\Text.txt", ForReading) strText = objFile.ReadAll objFile.Close strNewText = Replace(strText, "Jim ", "James ") Set objFile = objFSO.OpenTextFile("C:\Scripts\Text.txt", ForWriting) objFile.WriteLine strNewText objFile.Close ---------------------------------------------------------------------------------- then I use the Winnt32.exe to install the Windows XP and with the /unattend:c:\temp\input.txt At last, I found that the PC's name is not the name that I wrote to the input.txt, the windows create a new name by itself. I don't know why.
  2. Thanks a lot! I deal with this problem after run the winnt32.exe command line, I sent a "reboot" command line to cmd.exe, then reboot PC. But I meet a new problem. I use the vb script to copy unattend.txt to "c:\temp\unattend.txt", Then I use the HTA to provide the GUI, then let the user could type into the PC name, then I use the VS script to modify the "ComputerName " of unattend.txt. When I use the VPC to test these script, I found I can modify the "ComputerName", but after the installation, I found the PC Name is not the name that I modify before the installation. I don't know why.
  3. Now, I am using the BartPE to deploy the Windows XP SP2, MS provide the "winnt32.exe" to install the OS in the 32 bit environment. I read the introduction of MS, I found that "Winnt32.exe" have a parameter "/unattend", in the introduction, I found that "/unattend:10:c:\temp\unattend.txt" could reboot the PC in the 10 seconds after copy installing files to local disk. but this parameter can't run well. when I use this command, I got the error prompt. if I modify this command to "/unattend:c:\temp\unattend.txt", the command will run. how can I deal with this problem or reach my target?
  4. Good Morning Guys! I find the other method to run the HTA. In the past, I got a tool, "Pebuilder", and I found that it could support the HTA. this tool could build the pe and iso file with windows xp cd or file. like windows pe, I need prepare some files for BartPE. I got the HTA plugins from the Pebuilder web site. then, I test my HTA, great! I could run the HTA script, and this script could work smoothly. following is the BartPE link: www.nu2.nu/pebuilder Thanks a lot!
  5. Hi, IcemanND. I try your suggestion again. following is my command line. 1.mkimg.exe c:\wxp c:\winpev2 /pnp /wmi >> c:\log.txt * I check the log, there are no error prompts * I use the Window XP SP2 VLK (EN version) that I download it from MSDN web site. * I use the OPK that is downloaded from MS web site, the name of file is "xpsp2_2180_usa_x86fre_opk.zip" 2.c:\winpeiso\winpe\buildoptionalcomponents.vbs /hta /wsh /x /d:c:\winpev2 * winpeiso is OPK iso file 3.I copy the "winpeiso\winpe" folder to "c:\winpev2" 4. c:\buildx86\oscdimg -bc:\buildx86\etfsboot.com -n c:\winpev2 c:\winpev2.iso 5. I insert the "oc.bat" to the "startnet.cmd" file 6. I use the VPC to test this iso file. 7. then I run the x:\examples\testhta.hta, I use the following command line. * x:i386\system32\mshta.exe x:\examples\testhta.hta *x:\examples\ x:\i386\system32\mahta.exe x:\examples\testhta.hta fiannly, I also can't run the HTA files. I start the task manager, I found that the mshta.exe didn't run at all. And I can't get any error prompt or error No. But I noticed that in our forum, there are a lot of people could use the OPK to build the winpe, and they also could use the winpe run the HTA. Is there any wrong step during my building the winpe ?? Hope you could help me.
  6. Thanks a lot! I will try again now.
  7. I got the OPK from the MS web site, then I read the introduction. well , and I build a Winpe. 1. run mkimg.cmd with /pnp and /wim to build winpe image.(I use the windows xp sp2 CD) 2.then I use the buildoptionalcomponents.vbs with the /x /hta /wsh /d:/c:\winpe to add the support into the winpe, and I add the "oc.bat" into the "startnet.cmd" file. 3. I ran the oscdimg.exe to build the iso file. At last, I use the VPC to test the iso file. when the winpe start, I am the "x:\i386\system32", and I insert the "mshta.exe x:\bmpc\test.hta", but I can't get any error prompt or error No. , and the test.hta didn't run at all. I saw the part of this forum, I saw some pros could run the HTA in the winpe. So, hope you could help me. My e-mail is hongru.wang@gmail.com Thanks A lot.
×
×
  • Create New...