Jump to content

WinPE 2.0 GimageX COM based HTA


geezery

Recommended Posts

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?

Link to comment
Share on other sites


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.

Link to comment
Share on other sites

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?

Edited by geezery
Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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:"

Edited by ccb458
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...