• 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

OK I got a new question. I noticed in the HTA itself that there was a "setres" option cfg for 1024x768x32bit. I tried to make it 800x600 but it didn't seem to make a difference. While I did manage to image the ASUS EEE PC 701 with your GUI, it did not support the default resolution and I had to cmd prompt it manually.

Is the only thing that is keeping the 800x600 setting at 1024 because of the background PNG?

0

Share this post


Link to post
Share on other sites

If you ran the Setses function without arguments it should automaticly select the optimal screen resolution.

The only problem is that the HTA GUI is using absolut positioning of elements so all the buttons etc. won't show up correctly.

Edited by geezery
0

Share this post


Link to post
Share on other sites
If you ran the Setses function without arguments it should automaticly select the optimal screen resolution.

The only problem is that the HTA GUI is using absolut positioning of elements so all the buttons etc. won't show up correctly.

Yep I saw that. The only machine that we needed the lower resolution was the EEE PC 701. With the recent news that the new EEE PCs will support 1024x768, this becomes a non-issue.

0

Share this post


Link to post
Share on other sites

I've got a certain use for this program and wonder if it can do the job.

I'm a oem system builder that sells around 8 different models of systems at any given time.

For each system I do a preload of the following operating systems.

XP Home, XP Pro, Vista Home Basic, Vista Home Premimum, Vista Business, Vista Ultimate, Vista Business X64, and Vista Ultimate X64.

All of these loads have the office 2k7 oem preload and the correct device drivers and updates for the system they are going on.

I'd like to keep each load in a seperate wim file and keep the wims in different directories for each motherboard.

Also I'd like the gimagex to see that the filename starts with xp and apply the mbr fix to the destination drive.

Is this possible with the framework of this program? (I.e. stripping out the need to select which image from the wim and always default to image 1, filename checking for xp. etc.)

This will be used in a pxe booting enviroment so the only hd in each system will be the destination drive.

Thanks for any input.

Mark

0

Share this post


Link to post
Share on other sites
I've got a certain use for this program and wonder if it can do the job.

I'm a oem system builder that sells around 8 different models of systems at any given time.

For each system I do a preload of the following operating systems.

XP Home, XP Pro, Vista Home Basic, Vista Home Premimum, Vista Business, Vista Ultimate, Vista Business X64, and Vista Ultimate X64.

All of these loads have the office 2k7 oem preload and the correct device drivers and updates for the system they are going on.

I'd like to keep each load in a seperate wim file and keep the wims in different directories for each motherboard.

Also I'd like the gimagex to see that the filename starts with xp and apply the mbr fix to the destination drive.

Is this possible with the framework of this program? (I.e. stripping out the need to select which image from the wim and always default to image 1, filename checking for xp. etc.)

This will be used in a pxe booting enviroment so the only hd in each system will be the destination drive.

Thanks for any input.

Mark

Using separate WIMs defeats the purpose of using WIMs altogether. You are best to use a separate WIM for each OS, so one for XP and one for Vista. This is decrease your storage requirements. Look into the command for appending images. The drop down menu shows images on the share in alphebetical order, although you could re-script it to show in another way. It also doesn't travel through directories, but you can have access to them via the browse button. I have not seen an SOP from Microsoft on WDS that says you should use subdirectories in your network share.

0

Share this post


Link to post
Share on other sites

Ok, reading more the use of multpile sku per wims does make sense to me (Sorry, to much ghost on the brain).

But I'm still confused about imaging xp.

I see that there are problems doing a xp image because of the way diskpart formats the drive.

How does gimagex know that the image is a xp image and partition and format the drive correctly?

How does it know to lay down the correct mbr and bootsector?

Thanks.

Mark

0

Share this post


Link to post
Share on other sites

Hello,

there is no currently any check for the image type. You just have to know what image is the appropriate for the current computer. You can i.e. save Vista images to separate wim file and Xp images to another.

I think it would be possible to add correct bootsector by using the WinPe builtin bootsect.exe.

I think I could include it in my next version. I'm also going to get rid of that browse.exe since the browseforfolder issue has been resolved in another post in this forum.

I could also make a script that could apply image unattendly to the computer by checking some values from the WMI. Of course there would have to be some kind of settings file i.e. xml file that says witch image to use on certain computer. If there is interest I could make one easily.

0

Share this post


Link to post
Share on other sites

Ok, I've gotten some more experience with your program.

A few questions and feature requests.

I'd like to be able to define a variable in the file for a default diskpart action. i.e. set kill=1 to always run the custom diskpart.txt file without any prompts.

Also I'd like to be able to define a default apply path (c:) without prompting.

I see you are getting rid of browse.exe, would that get rid of when you select browse that it defaults to the c: (My wims are located on z:\wims, and that is the default set in the hta file.)

I'm getting around the xp deployment problem by hitting alt-f4 and running bootsect /nt52 c: after image deployment.

I'm going to try storing all os load for each motherboard in 1 wim for 32bit and 1 for 64bit.

Very nice tool and thank you for your hard work.

(I didn't look but do you have a paypal for donations?)

Later,

Mark

0

Share this post


Link to post
Share on other sites

I'll think I could make a list of the requested changes and if you have some more please put them here:

- Remove the Browse.exe dependancy

- Support for ini file where users could make all the needed settings

- Support for the OS recognization to apply the correct boot sector

- Support for VNC connection to the HTA. (I need suggestions how I could implement this)

* I have already tested this feature and it works ok

* I'll think I could write an admin console with vb.net to support applying wims remotely

* What VNCserver I should use??

- I would also like to have the progress indicator working in WinPE environment, but I have no clue how to get it working.

0

Share this post


Link to post
Share on other sites
- I would also like to have the progress indicator working in WinPE environment, but I have no clue how to get it working.

Well we already know that imagex reports a percentage of the drive being completed when you do a capture or apply. You hide the cmd and show a progress bar instead. Either there is some way to get that info being reported by imagex or allow the cmdbox to appear but not as the active (ie open behind the HTA) window. If your script can read the %, you could apply the correct graphics for the progress bar.

Just a thought. Haven't a clue on how to implement but maybe it gives you an idea.

0

Share this post


Link to post
Share on other sites

I had to remove the com objWIM.ApplyImage command and go with the command based imagex.exe because in a networked enviroment the objWIM.ApplyImage is locking the wim file. I needed to be able to deploy to multiple machines at once so the file being locked is a REAL show stopper.

I've send a message to the author of the GImageX_COM.dll to ask how to apply a image without locking the file.

The upside is I have a status indicator now. :)

(I'm showing the cmd window.)

Later,

Mark

0

Share this post


Link to post
Share on other sites

I did also run into a problem with the capture ability. Truthfully, this won't be a big issue for our uses of it, however. We may end up removing some of the options when we switch to using WDS altogether because the regular software techs won't need to use the capture or any other advanced commands. Special projects or image creation would be handled by myself or management only, a task we wouldn't delegate to the the regular software people. So in other words, I always use the command prompt to capture images.

0

Share this post


Link to post
Share on other sites

on my customized version you can run ghost32 reboot or shutdown.

All other options have been removed, also the tech has NO control over drive partitioning.

I've got it parsing the Image Description for any occurance of xp and if it finds that then it automatically runs the correct bootsect command.

Now all I need to do is add custom labeling of the destination drive (i.e. imagename) and get a real progress bar and then this program is perfect for my usage.

(I know how to do the custom label, I'm just taking a few days break from modifying the source)

Anyone know any examples on how to display the output of imagex to a popup window as a progress bar?

And after I'm done I'll be sure to upload it.

Later,

dabone

0

Share this post


Link to post
Share on other sites

Hoping someone can help. I've taken the ghost image pe disk as the base, and want to add just the functionality of being able to apply imagex images or calling a batch file that already has the imagex switches and file name pre-populated.

What's the easiest way to do this with the least amount of code?

--------------

Update:

I've managed to get the two to coexist, but the default view seems too large for the screen. Loosing some of the icons on the bottom and right side, so suggestions on that front please help :)

Edited by sinecure
0

Share this post


Link to post
Share on other sites
Hoping someone can help. I've taken the ghost image pe disk as the base, and want to add just the functionality of being able to apply imagex images or calling a batch file that already has the imagex switches and file name pre-populated.

What's the easiest way to do this with the least amount of code?

--------------

Update:

I've managed to get the two to coexist, but the default view seems too large for the screen. Loosing some of the icons on the bottom and right side, so suggestions on that front please help :)

It seems like you seek information on GhostExplorer? I can't think of how you have changed the GimageX... if you could put paint in your WIM, I wonder if it will let you take a screenshot and save it to a USB drive?

0

Share this post


Link to post
Share on other sites

I'd like to make a note regarding all the talk about the progress bar.

I recently updated my PE image using the new servicing tools provided in the new OPK version. I am sure it made other changes, but one stood out. When you are upping or dropping an image now, instead of it updating the % and time remaining on a single line, it now draws a new line with the new % in 1% increments! This might make it easier to make the progress bar work? IDK but it sounds like a start.

If you were to use, say autoit, we know it can read stuff of the screen (like how people use it to make bots for games), but is this possible:

1. Press enter to start imaging drive C

2. gImageX does not suppress the cmd prompt it is running the command from, but puts it behind the HTA (window) layer.

3. The script read line info from the cmd prompt behind GImageX.

4. The progressbar determines how to display based on info received from script.

Obviously I am partly mixing up its screen reading functionality with its other features... I think, while I am on the subject, I will contact our rep to see if the PE puts that progress info into a memory location that can be read.

0

Share this post


Link to post
Share on other sites

I have been experiencing intermittant issues with the progress bar itself. I know it doesn't "work" but when it is on the screen, you get a long gray rectangle, which is helpful because you know when it is imaging, or when its waiting for you to start it. Here are the different things I have seen concerning it, and the last one is a problem.

1 - regular long rectangular bar covering 75 (or 80) % of the screen

2 - regular length but only a couple pixels in height

3 - regular length but 3-4x regular height

4 - not appearing at all

I am wondering what can cause this. Its not resolution, as I've had 1, 2 and 4 happen at the same time on a bunch of same model notebooks. #3 was experienced on one PC in a group of 12 with the same CFG.

0

Share this post


Link to post
Share on other sites

Hello and greetings from Portugal,

I was trying to use this HTA but when I launch it: mshta imagex.hta no application is launched. When I see task manager mshta is running but I don't see anything.

Can someone please help me?

Best Regards,

Soultaker

0

Share this post


Link to post
Share on other sites

This is meant to be run from a WinPE environment, not your OS. This can be very dangerous to run from your OS! Unless you got Task Manager to appear in the WinPE.

0

Share this post


Link to post
Share on other sites
This is meant to be run from a WinPE environment, not your OS. This can be very dangerous to run from your OS! Unless you got Task Manager to appear in the WinPE.

Hi Tripredacus:

I'm using WinPE and I've launched Task Manager through taskmgr command-line. But now everything is working. Don't know why but the problem is no longe happening. I'm launching without the mshta.exe before, and it's running! :)

Excelent job this HTA.

0

Share this post


Link to post
Share on other sites

I like it very much also.

I have made 2 different backgrounds for it also, if anyone wants to use them, feel free.

post-94953-1232036338_thumb.jpg

post-94953-1232036353_thumb.jpg

0

Share this post


Link to post
Share on other sites
Again...

Funtastic work this one!

Just a good add-on would be a progress bar! :)

There is a progress bar but it does not work properly. It usually appears as a gray box that varies in size. Not sure why it varies. Some time it does not appear at all. I tried to fix it on my test server, but it resulted in it not opening the HTA at all so I gave up on it.

0

Share this post


Link to post
Share on other sites

:) strange thing...

I've notice that when clicking on Map Network Drive the dialog box gets on top of the HTA and I cannot move it down again. I've tested this on a VM so I don't know if that's a problem with the VM.

Again, Keep Up the Good Work!

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.