MSFN Forum: WinPE 2.0 GimageX COM based HTA - MSFN Forum

Jump to content



  • 18 Pages +
  • 1
  • 2
  • 3
  • 4
  • 5
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

WinPE 2.0 GimageX COM based HTA Rate Topic: -----

#41 User is offline   p4ntb0y 

  • Member
  • PipPip
  • Group: Members
  • Posts: 237
  • Joined: 14-February 06

Posted 30 May 2007 - 03:04 PM

You may want to have a look at this autoit script...

Autoit Script GUI for Imagex

this works ok but I like your one more as I can actually follow it at least.


#42 User is offline   solutionone 

  • Newbie
  • Group: Members
  • Posts: 28
  • Joined: 29-May 07

Posted 30 May 2007 - 04:29 PM

Hi Geezery, I have to say you're doing some truely amazing work here. I was originally trying to make my own solution using crappy old batch files and while googling discovered this thread and the rest of the brilliant team at MSFN.

I was wondering if there is anyway you can modify the HTA so when started it pops up a window asking for the location of the wim files instead of hard coding it in the hta.

at the moment I use a external usb hard drives to store my wim files, and its letter changes alot depending on partitions/optical drives etc. on each PC so being able to pick the wim source when starting the hta would be a huge improvement .

Also may I suggest that when a capture is to be ran, a simple chkdsk /f should be run precedding the capture as imagex is prone to failing a capture halfway through if there are errors on the drive.

once again thanks for all your great work, and let me know if you need any testing done, as I have a pretty good lab at our workshop.

#43 User is offline   ccb458 

  • Group: Members
  • Posts: 8
  • Joined: 29-May 07

Posted 30 May 2007 - 08:39 PM

Geezzry,

Thanks for your new version v21. I tried it out, but for unknown reasons, the process still stops after DISKPART.. I am still using your v2 files, and adding the Reboot option by calling a .cmd batch file.

thx..

This post has been edited by ccb458: 30 May 2007 - 09:07 PM


#44 User is offline   geezery 

  • Member
  • PipPip
  • Group: Members
  • Posts: 254
  • Joined: 21-July 06

Posted 30 May 2007 - 10:47 PM

Quote

ccb458 ->

The v2 is very buggy, you should download the new version asap.


Quote

Solutionone ->

I can add the popup to ask for the location of the wim files in the next release. I'm mainly using new computers for this and I haven't get the apply failure yet. Maybe I can add that feature when I also got some failures:)

Testing is very important and I hope that if someone find bugs, please notify me. I don't have much time for testing in real environment.


Quote

p4antb0y ->

Actually I tried that Autoit script some while ago, but it was so buggy and I didn't like the design at all.


If someone want's to help me with this project. I have one request. Nice background would be great, since I don't have any skills to make a nice one by my self. Of course it should be freely distributed so any commercial material is not allowed.

This post has been edited by geezery: 30 May 2007 - 10:48 PM


#45 User is offline   ccb458 

  • Group: Members
  • Posts: 8
  • Joined: 29-May 07

Posted 31 May 2007 - 12:12 AM

geezery,

I already did download your new version (v.2.1), but don't know why it stops after diskpart. That's the reason I go back to v.2. What happened on my environment is after diskpart windows disappeared, nothing else happened.

thx

#46 User is offline   geezery 

  • Member
  • PipPip
  • Group: Members
  • Posts: 254
  • Joined: 21-July 06

Posted 31 May 2007 - 01:07 AM

I think I found an error in the script.

On ParseFile Sub

Change this line

strIndx(i) = Left(tmpStr1, Len(tmpStr1) -2)

To this

strIndx(i) = Left(tmpStr1, Len(tmpStr1) -3)

Can you test it?

#47 User is offline   ccb458 

  • Group: Members
  • Posts: 8
  • Joined: 29-May 07

Posted 31 May 2007 - 04:09 AM

geezery,

I changed I changed that line, but it seems the same, i.e. after diskpart, the process finished without applying the image..

#48 User is offline   p4ntb0y 

  • Member
  • PipPip
  • Group: Members
  • Posts: 237
  • Joined: 14-February 06

Posted 31 May 2007 - 04:09 AM

Geezery,

for the background how about the vista one with an option of adding your own company logo (like oem.bmp) then anyone can add their own in you could even add a support button with info and docs.

#49 User is offline   p4ntb0y 

  • Member
  • PipPip
  • Group: Members
  • Posts: 237
  • Joined: 14-February 06

Posted 31 May 2007 - 04:23 AM

geezery,

just testing your script out it would be really really handy to have a browse dropdown list for the capture and append buttons.

#50 User is offline   geezery 

  • Member
  • PipPip
  • Group: Members
  • Posts: 254
  • Joined: 21-July 06

Posted 31 May 2007 - 05:07 AM

View Postccb458, on May 31 2007, 01:09 PM, said:

geezery,

I changed I changed that line, but it seems the same, i.e. after diskpart, the process finished without applying the image..


Can someone else test the apply, because I don't have test environment here at work?

p4antb0y ->

Like I said the picture should be non commercial freely distributed. I think that vista background can't be freely added to this package.

I didn't undestand that dropdown system. Can you describe it better?

This post has been edited by geezery: 31 May 2007 - 05:08 AM


#51 User is offline   thebearpoo 

  • Group: Members
  • Posts: 7
  • Joined: 30-January 07

Posted 31 May 2007 - 07:17 AM

geezer - I get the same result in ver 2.1, after diskpart completes nothing happens. If I substitute this code(which is posted on page 2) the apply button works perfectly.

 
'****************************************************************************
'* showRadioInfo
'* display details of radio button selection in details divider
'****************************************************************************
Sub showRadioInfo
Dim objTextFile, Radio, strRadioValue, strDetails, objSel1, strFile

Set objSel1 = window.document.getElementById("select1")
strFile = myFilePath + objSel1.options(objSel1.selectedindex).text

details.style.visibility = "visible"
start.style.visibility = "visible"
For Each Radio in Document.getElementsByName("radioList")
If Radio.Checked = True Then
strTaskValue = "imagex /apply " + strFile + " " + Radio.Id + " c:" 
End If
Next
Details.innerHTML = "<BR><table id='detailsTable'><tr><td>" & strDetails & "</td></tr></table><BR>"
End Sub
 


ccb458 - How did you call your Reboot option using a cmd.bat file to restart your computer after imagex runs?

#52 User is offline   pretender69 

  • Junior
  • Pip
  • Group: Members
  • Posts: 76
  • Joined: 29-June 06

Posted 31 May 2007 - 09:47 AM

have same problem, apply isn't working.
have tried what thebearpoo suggested but still doesn't work for me either.

#53 User is offline   jstchil 

  • Group: Members
  • Posts: 2
  • Joined: 12-April 07

Posted 31 May 2007 - 12:01 PM

I tried to add a line to my startnet.cmd to get this imagex.hta to load on startup but i get an access denied error. Is auto loading this hta not posible?

#54 User is offline   geezery 

  • Member
  • PipPip
  • Group: Members
  • Posts: 254
  • Joined: 21-July 06

Posted 31 May 2007 - 12:45 PM

Sorry dudes, I cant help you today, because I can't make any tests.

jstchill ->

Did you tried it on real environment or Virtual? I got also those errors when I tried on MS VirtualPC and Innotek Virtualbox.

#55 User is offline   pretender69 

  • Junior
  • Pip
  • Group: Members
  • Posts: 76
  • Joined: 29-June 06

Posted 31 May 2007 - 01:56 PM

oops
edited

This post has been edited by pretender69: 31 May 2007 - 01:58 PM


#56 User is offline   jstchil 

  • Group: Members
  • Posts: 2
  • Joined: 12-April 07

Posted 31 May 2007 - 03:57 PM

I am building a bootable USB key. so its a real enviroment. I think i figured it out it works on a machine with 512 MB Ram but not on a 256MB ram machine.

#57 User is offline   ccb458 

  • Group: Members
  • Posts: 8
  • Joined: 29-May 07

Posted 31 May 2007 - 07:14 PM

Jstchil,

Your problem maybe due to the limitation of the memory environment required by winpe. Maybe with 256mb ram, something can't be loaded. Have to check Microsoft's website.


Geezery,

Take a break today. I don't know how many thanks I should tell you as I am trying your hta file out in my company environment. We need to deploy images out and we used to use OSD for this, but now we want to fit everything into a USB or DVD disc. We havn't finished the script yet.. (as I am not a scripting guy), but you sure have helped us a lot.

Look forward to see what you could find out about the bug. Maybe you could tell me what lines I should add to add to your hta file to show the value of "STRTASKVALUE" in a pop-up window. Then we could troubleshot faster..

thx

strTaskValue = "imagex /apply "+objSel2.options(objSel2.selectedindex).text+" " + Radio.Id + " c:"

This post has been edited by ccb458: 31 May 2007 - 07:23 PM


#58 User is offline   geezery 

  • Member
  • PipPip
  • Group: Members
  • Posts: 254
  • Joined: 21-July 06

Posted 31 May 2007 - 11:00 PM

I try to fix all the errors today. Problem is that I don't have any test environment since I haven't been able to test in virtual environment. I have to try raising the virtual memory. I also havent got network working properly in virtual environment.

#59 User is offline   frankenstein897 

  • Group: Members
  • Posts: 9
  • Joined: 25-May 07

Posted 01 June 2007 - 11:28 AM

Yeah, I tried making that change and it still just performs the diskpart then does not proceed with the apply of the image.

#60 User is offline   frankenstein897 

  • Group: Members
  • Posts: 9
  • Joined: 25-May 07

Posted 01 June 2007 - 11:45 AM

OK, I think the problem is around line 143. I am working on it now to see if I can get it fixed.

Share this topic:


  • 18 Pages +
  • 1
  • 2
  • 3
  • 4
  • 5
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

3 User(s) are reading this topic
0 members, 3 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy