winpe

Winform GUI not showing up in WinPE

雨燕双飞 提交于 2020-01-07 08:00:09
问题 I'm trying to run a small winform app (code is C#) on WinPE (latest build 14393). Calling the exe starts the application, but the GUI doesn't show up. I injected .NET to PE via dism, so this is not the problem. Found a post where s.o. had the same problem, but I don't understand the solution. .NET GUI Not Displaying in WinPE I don't want to run powershell, because this would size up the PE boot.wim even more. It should be kept as small as possible. Any ideas? 回答1: walking through all those MS

How can I detect the drive letter of a booted USB drive from script?

百般思念 提交于 2019-12-22 08:35:24
问题 I'm launching WinPE 2 from a bootable UFD, and I need to detect the drive letter in order to tell ImageX where to find the WIM. However, depending on the machine I'm imaging, there are different mounted drives. I need a way to consistently mount the UFD at, say, P: or something. Is there a way to detect the letter of the drive from which the machine was booted, or another way to pass the location of my WIM file to a variable accessible from startnet.cmd? Here's someone else with the same

.NET GUI Not Displaying in WinPE

送分小仙女□ 提交于 2019-12-18 07:03:31
问题 I have created a utility in C#, something basic. I have it running during an SCCM task sequence deployment. One of the first things it does (during the form load event) is query ldap. That portion of code is in a try block and an exception is caught and the error message displays, but the form never shows up. On my dev machine when there was an error I would get the message but the form would display afterward. I have verified that all the dll's I'm calling are installed on the WinPE, has

Can Windows PE 2.0 support the .NET framework?

我们两清 提交于 2019-12-13 02:55:32
问题 I'm interested in building a PC for a car that will boot off of a USB flash drive. I'm planning on using Windows PE 2.0 for it with the GUI being written in C# or VB.NET. Obviously, for this to work, I'd need to have .NET 2.0 or later installed. Understanding that .NET is not included by default, is there a way to package .NET 2.0 with Windows PE 2.0 in such a way as to allow my GUI application to work? 回答1: Not sure if this will help you, but here's a .NET 2.0 plug-in which requires "PE

How can I use `wmic` in a Windows PE script?

落爺英雄遲暮 提交于 2019-12-12 19:32:04
问题 I'm trying to determine the computer model (e.g., "Optiplex 9010") in a batch script running in the context of Windows PE 3.1. When running Windows proper, I can do this using wmic csproduct or wmic bios but neither of these return any data when running Windows PE. (This also seems to be true of most or all other classes.) I've already installed the winpe-wmi.cab package to support WMI. Using wmic path instead of an alias makes no difference. How can I make my wmic commands work? 回答1: It

Running 32 bit apps in WinPE 3 (Win7) 64 bit

回眸只為那壹抹淺笑 提交于 2019-12-11 14:24:25
问题 Trying to run any 32 bit app in the WinPE 3.0 (Win7) 64 bit environment will result in the following error message: The subsystem needed to support the image type is not present. The missing subsystem in question is Windows on Windows 64 (WOW64): the compatibility layer allowing 32 bit apps to run in the 64 bit OS. The question is: would it be possible to install WOW64 in WinPE? If so, how, and how big is the set of files to be installed? Thank you. 回答1: Unfortunately this doens't really

Identify CD drive and eject using bat or vbs while in WinPE without external files

淺唱寂寞╮ 提交于 2019-12-11 05:09:07
问题 I need to identify the CD drive and eject the tray. This is executed while booted in WinPE, so the WMP eject function is not available. This script will be used on various computer models/configurations. I'm currently using this: For Each d in CreateObject("Scripting.FileSystemObject").Drives CreateObject("Shell.Application").Namespace(17).ParseName("D:\").InvokeVerb("Eject") Next It works, but sometimes it errors and requires user interaction before it ejects. I suspect that it's because of

MFC: Display output of a process asynchronously(concurrently) while process is in execution in a win32 text area (mfc application)

。_饼干妹妹 提交于 2019-12-08 04:34:31
问题 I want to develop an application in MFC which could start a lengthy console process and give its output concurrently on a text area of 32bit windows application. I used pipes, but it display the output only after the process has terminated. I tried _popen, it works for console based application, but not compatible with win32 application. while searching internet, I found numerous code using CLR, but I need some way in MFC, without use of .Net.. Plz help. THANKS in Advance :-) Here's my code

MFC: Display output of a process asynchronously(concurrently) while process is in execution in a win32 text area (mfc application)

萝らか妹 提交于 2019-12-06 23:44:40
I want to develop an application in MFC which could start a lengthy console process and give its output concurrently on a text area of 32bit windows application. I used pipes, but it display the output only after the process has terminated. I tried _popen, it works for console based application, but not compatible with win32 application. while searching internet, I found numerous code using CLR, but I need some way in MFC, without use of .Net.. Plz help. THANKS in Advance :-) Here's my code that start the application: void CAppMgr_BackupsDlg::ExecuteExternalFile(CString csExeName, CString

How can I detect the drive letter of a booted USB drive from script?

﹥>﹥吖頭↗ 提交于 2019-12-05 11:49:10
I'm launching WinPE 2 from a bootable UFD, and I need to detect the drive letter in order to tell ImageX where to find the WIM. However, depending on the machine I'm imaging, there are different mounted drives. I need a way to consistently mount the UFD at, say, P: or something. Is there a way to detect the letter of the drive from which the machine was booted, or another way to pass the location of my WIM file to a variable accessible from startnet.cmd? Here's someone else with the same issue over at TechNet. http://social.technet.microsoft.com/Forums/en-US/itprovistadeployment/thread