Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

Making a Windows PE application

- - - - -

  • Please log in to reply
9 replies to this topic

#1
CalBoy

CalBoy

    Newbie

  • Member
  • 25 posts
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.


How to remove advertisement from MSFN

#2
Tripredacus

Tripredacus

    K-Mart-ian Legend

  • Super Moderator
  • 9,763 posts
  • OS:Server 2012
  • Country: Country Flag

Donator

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.
MSFN RULES | GimageX HTA for PE 3-5 | lol probloms
msfn2_zpsc37c7153.jpg

#3
joakim

joakim

    Member

  • Member
  • PipPip
  • 154 posts
  • OS:none specified
  • Country: Country Flag
It can also be useful to run procmon inside PE to trace missing stuff.

Joakim

#4
MrJinje

MrJinje

    Tool™ Developer

  • Developer
  • 1,038 posts
  • OS:none specified
  • Country: Country Flag
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.co...oducts/thinapp/

http://blogs.vmware....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.

#5
CalBoy

CalBoy

    Newbie

  • Member
  • 25 posts

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.co...oducts/thinapp/

http://blogs.vmware....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.

#6
MrJinje

MrJinje

    Tool™ Developer

  • Developer
  • 1,038 posts
  • OS:none specified
  • Country: Country Flag

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.

#7
Tripredacus

Tripredacus

    K-Mart-ian Legend

  • Super Moderator
  • 9,763 posts
  • OS:Server 2012
  • Country: Country Flag

Donator

You can also use VBS for your functions, and build your GUI as an HTA, as is done with this project:
http://www.msfn.org/...64-t138048.html
http://www.msfn.org/.../18-t97512.html
MSFN RULES | GimageX HTA for PE 3-5 | lol probloms
msfn2_zpsc37c7153.jpg

#8
CalBoy

CalBoy

    Newbie

  • Member
  • 25 posts

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)?

#9
MrJinje

MrJinje

    Tool™ Developer

  • Developer
  • 1,038 posts
  • OS:none specified
  • Country: Country Flag

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.

#10
mobious99

mobious99

    Newbie

  • Member
  • 25 posts

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, 17 February 2010 - 08:38 AM.
fixed quote





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN