• Announcements

    • xper

      MSFN Sponsorship and AdBlockers!   07/10/2016

      Dear members, MSFN is made available via subscriptions, donations and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, become a site sponsor and ads will be disabled automatically and by subscribing you get other sponsor benefits.
geezery

WinPE 2.0 GimageX COM based HTA

357 posts in this topic

Geezery! I got another feature idea!

I do most of my image administration from within the PE and not the server. It would be handy if, in the main display of the images within the wim, that the image index number is also displayed. Currently, all images are arranged alphebetically by their image description. This means that the images are not in order based upon their index (the order they were captured/appended) value. It is easier to perform image maintenance with the image index, especially if there are long image descriptions. Also, if you have a lot of images, it would be easier to acquire the image index value, otherwise I have to use the following:

imagex /info z:\xp_intel.wim > c:\wim_info.xml

This has to be done because sometimes the XML information is more than be fit into the PE Command Prompt window.

:thumbup

0

Share this post


Link to post
Share on other sites

Hello,

I removed the GImageX dll dependancy from the HTA, but I haven't tested it yet. I think it should work without it. It uses only imagex.exe for image handling now.

I also added the Index number to the description if that was your wish Tripredacus. Can you try the new HTA, you can download it from

geezery

Edited by geezery
0

Share this post


Link to post
Share on other sites

hello all. im new to MSFN.

How do i get a copy of Geezery files? The link has been removed and there is nothing on the homepage?

Cheers

0

Share this post


Link to post
Share on other sites

The original author has abandoned this project, so I am taking over its sponsorship. I cannot take any requests for adding or updating new features to the software.

UPDATE

Working on v9.1 update.

Last available versions

Version 7.1 :: download

Version 9.0 :: download

Cleaned up Version 2.0 by Fredledingue :: download

Custom PE backgrounds

Embedded by Tripredacus :: download

Vista by Tripredacus :: download

Edited by Tripredacus
0

Share this post


Link to post
Share on other sites

After spending quite a few hours trying to get an HTA to receive the progress event from GimageX and display a progress bar, I can finally say that I achieved everything I was targetting. Since I still have to clean up the code before posting it, I'll just post a screenshot of my app for now to see what kind of interest it generates.

I should also point out that it currently works on Windows XP/Vista/7 and Windows PE 1.5/2.0/3.0 using all versions of GimageX.

So let me know what you think..

post-6607-1242870359_thumb.jpg

0

Share this post


Link to post
Share on other sites

I looked at the thread and did not find a solution for receiving events via an HTA and updating a progress bar. Did I miss something?

0

Share this post


Link to post
Share on other sites
I get the callbacks while capturing, but for some reason the whole thing gets blocked when I apply the image. As soon as the image is completely applied I get the whole callbacks in one bunch. (not very useful I guess)

All I could gather from the MSDN forums was that it has something to do with MS enabling multithreading in the "apply" function. So the callbacks never reach my AutoIt instance.

and

They never call fflush() on the stream. The output builds up and is not flushed until the program closes. AutoIt shows you the output the instant it sees it, but during the entire run of the program, the ouput is buffered in imagex. By the way, you can confirm that it's not AutoIt's fault by using the command line and re-directing output to a file when using the /scroll argument. Even doing that will leave an empty file (IIRC, there is some output, but not the progress percentage). Then when the program is done, poof, magically all the data is there. Without using the /scroll argument, data is written directly to the screenbuffer and not to stdout."

On page 2, a poster confirms that the Windows 7 PE is able to report the progress.

0

Share this post


Link to post
Share on other sites

Hi guys,

I extracted zip file into system32 folder of my WinPe and started imagex.hta.

I tried both 7.1 and 9.0 versions and got the same error from HTA:

Object Required:'ObjWIM"

for version 7.1 in line 222

for 9.0 in line 205

Digging the thread I understood there is no DLL to register now.

If anybody already bumped to this?

Thanks!

0

Share this post


Link to post
Share on other sites
Hi guys,

I extracted zip file into system32 folder of my WinPe and started imagex.hta.

I tried both 7.1 and 9.0 versions and got the same error from HTA:

Object Required:'ObjWIM"

for version 7.1 in line 222

for 9.0 in line 205

Digging the thread I understood there is no DLL to register now.

If anybody already bumped to this?

Thanks!

You need to register the DLL in the 7.1 version. V9.0 and 9.1 never fully passed development stage and should be considered alpha or beta versions. I have never gotten 9.x to work properly and still use a 7.1. Make sure your PE is using the HTA, Scripting and XML packages at the minimum. Also this works with WinPE 2.x x86, I have not seen or tested it in WinPE 2.x x64, or either build of WinPE 3.0.

0

Share this post


Link to post
Share on other sites

Hi friends, may be i come a little late to this post but i still have the same problem with the error Object Required:'ObjWIM" for version 7.1 in line 222 i try to register the wimgapi.dll over my winpe but after the command regsvr32.exe wimgapi.dll i recive the following error :

"The Module e:\wimgapi.dll was loaded but the entry-post DllRegisterServer was no found."

"Make sure that wimgapi.dll is a valid dll or ocx file and try again"

What is my mistake?

thanks Guys

King Regards

0

Share this post


Link to post
Share on other sites
Hi friends, may be i come a little late to this post but i still have the same problem with the error Object Required:'ObjWIM" for version 7.1 in line 222 i try to register the wimgapi.dll over my winpe but after the command regsvr32.exe wimgapi.dll i recive the following error :

"The Module e:\wimgapi.dll was loaded but the entry-post DllRegisterServer was no found."

"Make sure that wimgapi.dll is a valid dll or ocx file and try again"

What is my mistake?

thanks Guys

King Regards

regsvr32 /s misc/gimagex_com.dll

0

Share this post


Link to post
Share on other sites

Hi Guys, good day, i have another question, i hope all off you culd help me,

everithing is ok but i can´t see the description of the wim, i can chose a Wim but the hta dont display the list of the append image inside the wim. i got all packages of wimpe installed.

Some suggest

0

Share this post


Link to post
Share on other sites

What PE version do you have, and did you add the packages you need? Can you see the drives on the right side?

You need the following packages:

- HTA

- Scripting

- WMI

- XML

0

Share this post


Link to post
Share on other sites

I installed version 71 and the GUI seems to mostly function, but I am having trouble getting the window and image to fit the screen. It looks like several changes would be needed to get this to work -- at least altering the css and changing the background image size.

On another note, I found this HTA designed for Ghost project first and really liked that it loads a text file with the image details when you select an image radio button. Is this something that I can do with this HTA?

Thanks.

0

Share this post


Link to post
Share on other sites

You may need to play with the SETRES settings in the first part of the HTA to find a resolution that works best for you.

0

Share this post


Link to post
Share on other sites

I am testing this on Win PE 3.0 for Windows 7 imaging.

I got SETRES working. Now, when I have a file selected on my image server, it lists the file name in the pull down menu, then under "Select Image to Apply:" I see a single radio button with "9630" next to it. I couldn't determine what this was referring to from the code. Any ideas? I have attached a snap.

Also, any progress on v91?

post-256465-1258139779_thumb.jpg

Edited by astrouga
0

Share this post


Link to post
Share on other sites
I am testing this on Win PE 3.0 for Windows 7 imaging.

I got SETRES working. Now, when I have a file selected on my image server, it lists the file name in the pull down menu, then under "Select Image to Apply:" I see a single radio button with "9630" next to it. I couldn't determine what this was referring to from the code. Any ideas? I have attached a snap.

Also, any progress on v91?

I can tell by the screenshot that you are using Win PE 3.0.

:whistle:

To resolve your issue, you will need to use the code fix in this thread:

http://www.msfn.org/board/imagex-hta-win-p...64-t138048.html

As noted in the first post any further development is community based only. v9.1 only removed the DLL requirement, and added the image index to the WIM display list. There was supposed to be a way to browse for a diskpart file but that never happened.

0

Share this post


Link to post
Share on other sites

Please make your response in the thread Geezery started.

I had this issue too a long time ago!

Add this line to your startnet.cmd before launching the HTA.

regsvr32 /s misc/gimagex_com.dll

See the sample startnet.cmd in this post:

Thanks, I did read that post... We added that line to the startnet.cmd. Still a problem.

Does the whole ImageX folder needed to be included in the boot image? Do I need to include ImageX.exe anywhere?

Thanks for the help.

0

Share this post


Link to post
Share on other sites

Oh right, as I said in PM (do not reply to the PM anymore)

Put the files from the V71 zip into Mount\Windows\System32. So misc will be in system32 also. Imagex.exe goes in System32 too. This isn't the only way to do it, you can put them anywhere as long as you path everything properly. I just find it easier to dump everything into System32 because that is the default location after WPEINIT runs.

0

Share this post


Link to post
Share on other sites

Oh right, as I said in PM (do not reply to the PM anymore)

Put the files from the V71 zip into Mount\Windows\System32. So misc will be in system32 also. Imagex.exe goes in System32 too. This isn't the only way to do it, you can put them anywhere as long as you path everything properly. I just find it easier to dump everything into System32 because that is the default location after WPEINIT runs.

Thanks... If and when I get this working, do you know how people have gone about adding Ghost functionality to this HTA. I would like to be able to merge this with the HTA that I currently use for Ghost deployments.

Thanks again for the help.

0

Share this post


Link to post
Share on other sites

This HTA is designed for Imagex only. You will have to customize your own version if you want to add Ghost support.

0

Share this post


Link to post
Share on other sites

Hy Guys!!!

Your project is very very very a good project!!!

I've find some problem with progress bar , i view a grey image

on the centerscrre but not the progressbar...

V.7.1 Winpe2.0 all package installed - Usb Boot

Have you some feedback for this problem ? :P

Thanks!!!

P.s. sorry form my bad english

0

Share this post


Link to post
Share on other sites

Progress bar info:

0

Share this post


Link to post
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.