Welcome to MSFN

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.


CalBoy

Making a Windows PE application

10 posts in this topic

I'm trying to create a GUI for windows PE, mainly imagex. When i try and run the application i just get the 0xc0000135 error. It is just a single .exe with no application .dlls needed. I'm using the lastest version of windows PE downloaded from the microsoft site. I've created the application in Visual Basic 2008, all it does is runs commands for imagex for capturing a image and deploying a wim image. Is there any special way i have to make the application or code i have to write it in? Any plug ins or other programs i have to add to Windows PE to make it run? Anyhelp would be greatly appreciated.

0

Share this post


Link to post
Share on other sites

Most likely you are using a .NET library in your build. Windows PE does not support the .NET Framework. Copy Depends into your PE image, then run Depends on your app. I bet you will find you are missing some DLLs that are part of .NET.

Also, tell us what architecture your app is compiled for, and also the arch of the PE build.

0

Share this post


Link to post
Share on other sites

It can also be useful to run procmon inside PE to trace missing stuff.

Joakim

0

Share this post


Link to post
Share on other sites

This probably won't help the OP, but if anyone wants to run .NET apps from PE, it is possible with ThinApp.

http://www.vmware.com/products/thinapp/

http://blogs.vmware.com/thinapp/2008/11/step-by-step-in.html

__________________________________________________

Does WimPE support VB Scripting by default. If the OP's app does not require any VB.NET features, it probably could be rewritten in .vbs.

But I cannot remember if you need to specifically include the script host package separately or not.

__________________________________________________

Can you give a link to this version of Windows PE you downloaded. In the past, I always had to make my own with DART, WAIK, or OPK, never seen a pre-compiled ISO for download.

0

Share this post


Link to post
Share on other sites
This probably won't help the OP, but if anyone wants to run .NET apps from PE, it is possible with ThinApp.

http://www.vmware.com/products/thinapp/

http://blogs.vmware.com/thinapp/2008/11/step-by-step-in.html

__________________________________________________

Does WimPE support VB Scripting by default. If the OP's app does not require any VB.NET features, it probably could be rewritten in .vbs.

But I cannot remember if you need to specifically include the script host package separately or not.

__________________________________________________

Can you give a link to this version of Windows PE you downloaded. In the past, I always had to make my own with DART, WAIK, or OPK, never seen a pre-compiled ISO for download.

If i write it in .vbs will there still be the GUI part of it? I'm afraid my knowledge of .vbs is not that large.

Sorry i meant WAIK, haha. All ive added to it is imagex and that is all i plan on using it for. I just would like the ability to use a GUI.

Thin app.... hmmmm..... i see how to compile it but how do i add this to windows PE?

Most likely you are using a .NET library in your build. Windows PE does not support the .NET Framework. Copy Depends into your PE image, then run Depends on your app. I bet you will find you are missing some DLLs that are part of .NET.

Also, tell us what architecture your app is compiled for, and also the arch of the PE build.

My app is compilied for 3.5 .net. Although this doesnt matter i could compile it for any build. Ahhhh its built from the latest WAIK.

0

Share this post


Link to post
Share on other sites
If i write it in .vbs will there still be the GUI part of it? I'm afraid my knowledge of .vbs is not that large.

Sorry i meant WAIK, haha. All ive added to it is imagex and that is all i plan on using it for. I just would like the ability to use a GUI.

Thin app.... hmmmm..... i see how to compile it but how do i add this to windows PE?

Nope VBS not gonna work for you. Maybe a better question is - Have you already seen GImageX ? Not sure if it will work for you, but it is an Auto-It based GUI, so no .NET requirement.

As for thin apps, installing is very easy, just copy the compiled thinapp to your USB drive and double click. They are portable sandboxed applications - no installation required. To get the idea, check out ThinDownload.

0

Share this post


Link to post
Share on other sites
If i write it in .vbs will there still be the GUI part of it? I'm afraid my knowledge of .vbs is not that large.

Sorry i meant WAIK, haha. All ive added to it is imagex and that is all i plan on using it for. I just would like the ability to use a GUI.

Thin app.... hmmmm..... i see how to compile it but how do i add this to windows PE?

Nope VBS not gonna work for you. Maybe a better question is - Have you already seen GImageX ? Not sure if it will work for you, but it is an Auto-It based GUI, so no .NET requirement.

As for thin apps, installing is very easy, just copy the compiled thinapp to your USB drive and double click. They are portable sandboxed applications - no installation required. To get the idea, check out ThinDownload.

Righteo! I get it now. Do i also add my application to the compiled app? Or just .Net 3.5? And once i have my compiled app and run it in windows PE i should be able to use my app (of course if i have done it correctly)?

0

Share this post


Link to post
Share on other sites
Righteo! I get it now. Do i also add my application to the compiled app? Or just .Net 3.5? And once i have my compiled app and run it in windows PE i should be able to use my app (of course if i have done it correctly)?
I'd create two captures, one for .NET and a second one with the app the requires .NET. Next I'd edit the package.ini of the second package to add the .NET framework as a required App Link. Then the second package can access the framework from PE.

RequiredAppLinks=%ProgramFilesDir%\MyFolder\NET_Framework.exe

This will also be easier when it's time to make changes in your app, no need to repackage the entire framework each time.

0

Share this post


Link to post
Share on other sites
Righteo! I get it now. Do i also add my application to the compiled app? Or just .Net 3.5? And once i have my compiled app and run it in

I just started using gimagex, it's really nice.

Edited by Tripredacus
fixed quote
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.