How to Activate Programs on Windows from Linux MAChine

How to activate programs on windows from Linux machine

According to the documentation of winexe:

--interactive=0|1
Desktop interaction: 0 - disallow, 1 - allow.
If you allow use also --system switch (Win > requirement).
Vista do not support this option.

So --interactive=1 --system should do the trick.

Is it possible to write a C program on Windows for Linux

Yes, if you setup WSL2, you should be able to develop C like you did on your VirtualBox machine. If decide to use Ubuntu, running sudo apt-get install build-essential should give you everything you need to compile and run C programs.

Develop on Windows and running on linux machines

First, install Linux in a virtual PC like VirtualBox or VirtualPC or something from vmware.

Then configure Eclipse for remote development. That allows you to run tools (like the debugger, the compiler suite, etc) on Linux from your Windows desktop inside of Eclipse. You edit the files just like you're used to, you debug as if the app was running local on Windows, etc. Eclipse will do the plumbing.

Deploy Qt to Windows on a Linux machine

Yes, it's of course possible.

  1. You have to cross-compile Qt using the MinGW compiler, targeting Windows.

  2. You'll have to patch and build windeployqt yourself. By default, windeployqt is looking for g++.exe in the path. Of course this makes no sense on a linux build host, so you'd have to tweak it so that it finds the correct compiler and runtime libraries.

  3. You can then build your application using the cross-targeted Qt build, and deploy all the necessary artifacts into some deploy folder using windeployqt.

  4. To package the deployed build, you can run nsis or wix on Linux as well, to obtain a Windows installer. You can even sign the executable files (required these days for Windows), there's an open source tool called osslsigncode - it works on most platforms and doesn't require Windows.

It'll take a bit of time for you to figure it all out. It's certainly easiest to just build on Windows and not mess with it. But if you insist on building on Linux - you certainly can.

Developing Windows applications on Linux?

Check Qt too. It's a very rich cross-platform framework.

As for installers I'd highly recommend WiX.

For testing it will be much better to use some kind of virtualization like Sun Microsystems's VirtualBox. I believe you could use a trial version of Windows or Windows 7 RC, which is free to use until March 2010.

How to debug remote program running on linux from windows


  • Install an X-Windows server on your windows machine, there are quite a few alternatives (e.g. cygwin/X).
  • SSH to the linux machine with X forwarding enabled, or setup your X server to accept connections from your linux machine and manually setup the DISPLAY on the linux machine.
  • Install and run e.g. ddd on the linux machine - it'll display on your windows machine
  • debug


Related Topics



Leave a reply



Submit