Help - Search - Members - Calendar
Full Version: VB Program will not work in Windows PE
MSFN Forums > Unattended Windows Discussion & Support > Windows PE

   
Google Internet Forums Unattended CD/DVD Guide
Carls233
Hi all, I have created an application in VB 2008 Express which works fine under Windows 2000,XP and Vista but will not work under Windows PE 2.x. When the EXE file is called nothing happens. Is this due to an issue with the lack of .NET support in PE? Do I need to code the application in an older version of VB? Any help would be great.
kyor
.NET Support is not supported in WinPE 2
Carls233
What is the best way to get a VB program to run under Windows PE? Does it need to be coded in a legacy version of VB?
Jazkal
Yes, you would need VB6 or earlier.
Carls233
Coded a really simple program in VB 6 just a few forms, this runs great under Windows XP and Vista but still does not seem to run under Windows PE 2.0 or 2.1. It has been published as an .EXE. The copies of Windows PE also have WSH installed, I think I must be missing something? Is there something else that must be done to the PE build to enable VB code to run?
Jazkal
you have to register the vb6 dll's before running the app.

Here is the list that I used to register before I switched to something better.

CODE
regsvr32 %SystemRoot%\System32\asycfilt.dll /S
regsvr32 %SystemRoot%\System32\comcat.dll /S
regsvr32 %SystemRoot%\System32\msvbvm60.dll /S
regsvr32 %SystemRoot%\System32\msvcrt.dll /S
regsvr32 %SystemRoot%\System32\oleaut32.dll /S
regsvr32 %SystemRoot%\System32\olepro32.dll /S
regsvr32 %SystemRoot%\System32\scrrun.dll /S
regsvr32 %SystemRoot%\System32\VB6STKIT.DLL /S
regsvr32 %SystemRoot%\System32\msinet.ocx /S
Carls233
Thanks Jazkal for that very good information it has worked. It seems like a great deal of changes are needed to the base PE build to make the most of its potential.
sutrala.balu
QUOTE (Carls233 @ Sep 1 2008, 11:35 PM) *
Dear Friends,
i want to know one thing that,
what other platforms ( besides VB 6.0 ) can be used to develop applications for WinPE
Jazkal
QUOTE (sutrala.balu @ Sep 9 2008, 02:24 AM) *
QUOTE (Carls233 @ Sep 1 2008, 11:35 PM) *
Dear Friends,
i want to know one thing that,
what other platforms ( besides VB 6.0 ) can be used to develop applications for WinPE


Personally, I use Autoit v3+ to write my applications for WinPE use. You can also use HTA, although it is a major PIA for anything other than small apps.

If you have done any application development work on the Windows platform, you'll be able to pick up Autoit quickly. You need the main app and the scite editor from the downloads page here:
http://www.autoitscript.com/autoit3/downloads.shtml

The Autoit forums are very helpful, and you can find most things you need just using the search feature.
Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.