Jump to content











Photo

x86 apps in x64 WinPE


  • Please log in to reply
15 replies to this topic

#1 VeeDub

VeeDub

    Frequent Member

  • Advanced user
  • 140 posts
  •  
    Australia

Posted 22 July 2021 - 10:17 AM

Hello,

 

This is not strictly a WinBuilder question, but this forum is the one that is most applicable to my question.

 

I've been a long-time user of the WinBuilder / Win10PE (x64) platform.

 

I'm trying to customise a vendor x64 WinPE: (Macrium Recovery Environment)

 

As there are situations where it would be good if I was able to access the Macrium Recovery Environment remotely.

 

With the Win10PE that I use, I have a plug-in for TeamViewer which is an x86 application - and this works fine.

 

What I have now just discovered, is that when trying to add TeamViewer (x86) to the Macrium Recovery Environment (x64) I am seeing a machine type mismatch error when I try to start TeamViewer.

 

Basically saying that I can't run an x86 application on x64 WinPE, which was something that up until now I have taken for granted.

 

So I'm looking for some direction on how W10PE x64 is able to run x86 apps; and I'm hoping that I can add the necessary components to the Macrium Recovery Environment which I am trying to customise.

 

Thanks

 

VW



#2 VeeDub

VeeDub

    Frequent Member

  • Advanced user
  • 140 posts
  •  
    Australia

Posted 22 July 2021 - 01:25 PM

Hello,

 

OK I've worked out partly why I can't load the TeamViewer app.

 

The cmd.exe is x64, so when I try and start the TV app from the cmd prompt; the cmd environment is x64 and the app is x86. And because of the GUI shell that this PE uses, unfortunately I can't launch anything from the "desktop". I need to launch the app at startup.

 

I thought that I could start apps through c:\windows\system32\startnet.cmd

 

But I've just done some reading on startnet.cmd and wpeinit and I think that I need to configure wpeshl.ini.

 

So I'll do some more reading tomorrow and see if I can fix this up; or perhaps return with some better questions.

 

Cheers



#3 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 22 July 2021 - 03:21 PM

Hello,

 

OK I've worked out partly why I can't load the TeamViewer app.

 

The cmd.exe is x64, so when I try and start the TV app from the cmd prompt; the cmd environment is x64 and the app is x86.

 

Basically, no.

 

If you want to run a x86 program in a x64 OS you need the WHOLE needed subsystem (you will appreciate how, in order to run 32 bit app, you need a 32 bit subsystem, something that the good MS guys call "WOW64",very logical/intuitive).

 

Some info is here:

http://reboot.pro/in...showtopic=20616

 

AFAIK :unsure: in the several years since those posts, noone had the time (or capabilities or both) to make a "self-standing" package nor a (simple) list of what is needed for cases like yours, modifying an existing WinPE as opposed to building a new one through one of the various Winbuilder or PeBakery projects or Wimb's MakePE (or similar).

 

:duff:

Wonko


  • VeeDub likes this

#4 alacran

alacran

    Platinum Member

  • .script developer
  • 2710 posts
  •  
    Mexico

Posted 22 July 2021 - 04:34 PM

@ VeeDub

 

There is no need to reinvent the wheel.

 

Better than try to modiffy that limited WimPE, I think it can be easier and  faster, to start from building a new WimPE x64 capable to boot x86 and x64 programs, and this way you may add since the WimPE build, not only the programs you mentioned but even many more very usefull programs.

 

There is a TeamViewerPortable version, and I already tested it in my Mini-10x64.vhd, to remote capture and re-deploy a Win partition/drive, of course same applies for a WinPE, for links and additional info that may be useful for you, see:  Remote image capture and deploy by means of Mini10x64.vhd and TeamViewerPortable.

 

TeamViewerPortable runs very fine from Win10XPE  (x86 or x64), also there is available an Script to include Macrium Reflect and many other backup and recovery programs in the Build.

 

NOTE: Your WimPE has to run as ADMIN if not TeamViewerPortable do not run fine, see attached pictures.

 

alacran

Attached Files


  • VeeDub likes this

#5 VeeDub

VeeDub

    Frequent Member

  • Advanced user
  • 140 posts
  •  
    Australia

Posted 23 July 2021 - 12:06 AM

@ VeeDub

 

There is no need to reinvent the wheel.

 

Better than try to modiffy that limited WimPE, I think it can be easier and  faster, to start from building a new WimPE x64 capable to boot x86 and x64 programs, and this way you may add since the WimPE build, not only the programs you mentioned but even many more very usefull programs.

 

@ alacran

 

I understand your thinking. But there are other considerations

 

All these systems are at remote locations to me. If I can modify the existing Macrium WIM, which is already on the client's computer; without a lot of messing around then that will be the best option here. 

 

The Macrium WIM at the site, will definitely have all the drivers for the target system. And the Macrium WIM will automatically have the latest version of Macrium at that time.

 

In this instance I don't need a PE environment with a bunch of other tools, as useful as that frequently is. In this instance I just need to be able remotely access the Macrium RE that is already there.

 

Now it may turn out that the work involved to add the Win32 subsystem to the Macrium RE is more trouble than it's worth. In that case I'll have to go the way that you outline, except that in that case I'll be building a cut down PE that basically only has TeamViewer portable and Macrium

 

Cheers,

VW



#6 VeeDub

VeeDub

    Frequent Member

  • Advanced user
  • 140 posts
  •  
    Australia

Posted 23 July 2021 - 12:23 AM

Hello

 

Macrium has an option to integrate Macrium into a Custom WIM, so I'm going to try using that with Win10XPE

 

Thanks guys

VW



#7 VeeDub

VeeDub

    Frequent Member

  • Advanced user
  • 140 posts
  •  
    Australia

Posted 23 July 2021 - 02:24 AM

@ alacran

 

A question

 

I have downloaded the latest version of Win10XPE, but it doesn't appear to include the TeamViewerPortable script.

 

In networking it has

 

  • AnyDesk
  • FreeDownloadManager
  • Chrome
  • Firefox

I've had a quick look on the project site for additional downloads / scripts, but cannot see them. Can you advise where the script in your screenshot can be found?

 

Thanks

 

VW



#8 alacran

alacran

    Platinum Member

  • .script developer
  • 2710 posts
  •  
    Mexico

Posted 23 July 2021 - 04:10 AM

At the end of the left part on the PE Builder is Utilities, open it and you will find an option to download additional Scrips or Plugins as they use to call the Scripts, can't post a picture as I don't have it on this PC.  But the program is portable and you can also just download it and put it in a folder and run it from there too.

 

alacran



#9 VeeDub

VeeDub

    Frequent Member

  • Advanced user
  • 140 posts
  •  
    Australia

Posted 23 July 2021 - 05:50 AM

At the end of the left part on the PE Builder is Utilities, open it and you will find an option to download additional Scrips or Plugins as they use to call the Scripts, can't post a picture as I don't have it on this PC.  But the program is portable and you can also just download it and put it in a folder and run it from there too.

 

alacran

 

Mega Optional Application Download ?

 

There are a bunch of plugins listed, but not TeamViewer

 

I also tried clicking on the download files button, not exactly sure what that did, but didn't seem to add any scripts. Certainly not TV.

 

This is not urgent

 

Ultimately I want this custom PE to either start TeamViewer automatically or place an icon on the desktop, so that it is simple for the user to start TeamViewer. I don't want them having to navigate with Explorer to some directory.

 

Essentially I want a script that is similar to the AnyDesk script; but if one already exists I am a fan of "not reinventing the wheel" if it isn't necessary

Attached Files



#10 alacran

alacran

    Platinum Member

  • .script developer
  • 2710 posts
  •  
    Mexico

Posted 23 July 2021 - 06:38 AM

See attached picture, select same as in the picture and start the download, it will take some minutes and will download the Base Package that contains TeamViewerPortable, the Visual C++ runtimes are a minimal version that is also required,  to be used internally into the PE Builder for the Scripts into this Package.

 

alacran

Attached Files



#11 VeeDub

VeeDub

    Frequent Member

  • Advanced user
  • 140 posts
  •  
    Australia

Posted 23 July 2021 - 06:56 AM

I'm probably stuffing up somehow but there are multiple errors

 

Unfortunately they timeout very quickly and it is hard to screen capture them

 

Basically the MegaCmdsetup download completes and then there are two errors. I've been unable to capture both

Attached Files



#12 VeeDub

VeeDub

    Frequent Member

  • Advanced user
  • 140 posts
  •  
    Australia

Posted 23 July 2021 - 07:04 AM

I think you mean you: click Play after enabling those options



#13 VeeDub

VeeDub

    Frequent Member

  • Advanced user
  • 140 posts
  •  
    Australia

Posted 23 July 2021 - 07:09 AM

I've been able to click on Play.

 

More tasks were executed

 

However there is no change to the scripts listed

 

 

Attached Files



#14 alacran

alacran

    Platinum Member

  • .script developer
  • 2710 posts
  •  
    Mexico

Posted 23 July 2021 - 07:20 AM

I read on the news there was a big failure in Akamai servers yesterday, affecting many companies that use its service, including many online services of banks in my country, Akamai said the service was on line again, I think maybe the problen is not fully fixed yet, also I don't know if Mega is affected by this, but better try again after one or two days.

alacran



#15 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 23 July 2021 - 07:22 AM

AKAMAI

 

https://it.wikipedia...ai_Technologies

 

:duff:

Wonko



#16 VeeDub

VeeDub

    Frequent Member

  • Advanced user
  • 140 posts
  •  
    Australia

Posted 23 July 2021 - 07:42 AM

I read on the news there was a big failure in Akamai servers yesterday, affecting many companies that use its service, including many online services of banks in my country, Akamai said the service was on line again, I think maybe the problen is not fully fixed yet, also I don't know if Mega is affected by this, but better try again after one or two days.

alacran

 

OK, will do.

 

Thanks for all of your help.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users