Is it possible to package an .exe application in a war file? - file

I have one web application(.war) file. There is one tool (.exe) which is used for some computation but it is currently outside of this web application. We have a requirement, where we need to package this .exe file and .war file into single .war file, so that user can just click a particular link and .exe will be opened from the .war file.
My question is, is it possible to package both (exe and war) into the single war file? If yes, can please let me know the convinient way. I did some googling but most of the answer shows converting war to an exe file, which i dont require.

A war file is nothing more than a zip archive, as such you can place whatever you want inside.
Now the use case seems strange. Do you intend to download the executable from the website?

Related

Can't play godot game as a software in pc

I made a game in Godot and exported it in release mode in Desktop as exe file.
But, it also created a .pck file and a highscore.data file.
I want to create it as an installable application and I don't want the highscore file in front.
What can I do? I also want to publish it.
I am new in Godot and this is my first game.
Installers are usually wrappers, aside applications that extract the main app to specific directory. Godot doesn't provide functions to create one. If you really need installer, you can write one or just generate with tools like NSIS, Inno Setup and others...
Separate .pck file can be embeded by enabling "Embed Pck" option in export settings.
Screenshot
I'm not sure what highscore.data file is, but it looks like something creating from code. Use user:// prefix (like user://highscore.data) for file paths to create them in app_userdata directory (more in docs).
So if you use this two options, you will get a single .exe file with game.

Standalone Executable with Kivy?

I recently created my first Windows package for a small app I made using Kivy. I have a few questions with regard to running the app.
First, is there a way to get the app to run without a record log popping up in another window? It is just ugly and doesn't seem like something I want in my final "product".
Second, how can I run the app from my desktop? Right now I have a shortcut placed on my desktop, but if I wanted to send my app to a friend, how could I send it to them where they can simply have an icon on their desktop to click on?
Thanks!
The entire process is done in 2 steps.
Step 1: Make the windows executable files (not Python files)
You'll need to use PyInstaller to create EXE for Windows. Here's the link
https://kivy.org/doc/stable/guide/packaging-windows.html
You will notice a new folder created where all the files are kept along with the application executable file.
Step 2: Pack these into a Single Installer File (EXE you are looking for)
You can use a third part software like InstallForge to create a single package installer for these files.
This EXE file can be share with anyone and they can install the program just like any other windows software

How to import files from computer?

I have been making a simple program on my computer using Dr. Java, and I would like to know how to move it to my android on AIDE. I can easily get the files onto the android, I just can't figure out how to make AIDE compile and run them.
Thanks!
Using My Files or the file browser you prefer, move your entire project directory into a folder call AppProjects. Should be fairly easy to open from there. Also you will want to make sure the directory is set up correctly. If all else fails, you can always recreate the project using AIDE and copy your java files into the java folder and XML files into the layout folder, and your images and icons into the drawable folders. These folders are automatically generated by AIDE so you don't have to create them.
You can copy the source files normally as you do with other files but Desktop's Java is not always same as Android's. So it needs some more coding and editing to make the code work as you want. But if the code is so simple, it can work.

how to make installer (exe) file in windows

I have created a WPF application. I want to make installer file (exe) for this application.
This application also uses some other 3rd party files (bat files); which i have zipped.
I want to unzip this file while installing and set the path of unzipped dir in Path variable also.
I got a link http://www.msdotnet.co.in/2012/06/how-to-create-setup-fileexe-file-from.html#.U3GT7YGSzxp
which tells how to create a installer file.
How to achieve unzipped part and setting environment vairable while making installer?
Thanks
Take a look at wix from Microsoft.
It can be run standalone, but is great run from within visual studio. You write a small xml file detailing what you want installed, and it does the rest.
To run a zip command, use a CustomAction.
Search for Install-shield. It is old tool but having good scripting capability like what you are expecting (i.e) Unzipping the folder and dealing with path environment variable
Use Inno Setup (http://jrsoftware.org/isinfo.php) or NSIS (http://nsis.sourceforge.net/Main_Page).
Both are free (open source) installation systems with many possibilities and huge community around (even here on SO).
They are really easy to use (especially Inno) and they are powerful so it is easy to achieve your required functionality.
Take a look at Stall:
https://github.com/jamesqo/Stall
It's an OSS project that lets you install your app from the command line, no configuration required.
Example Usage:
stall path/to/YourApp -e YourApp.exe -i YourApp.exe
This installs your app straight to the user's computer without having to make an intermediary MSI.
If you have to unzip files as well, you may want to just consider a simple batch files that downloads the binaries + unzips the contents + runs Stall.

Sencha Desktop Packager executable

I have built a desktop version of my extjs app using Sencha desktop packager trial. It has created an output folder with a lot of dll files and an .exe file. The executable runs ok when i open it from within this folder but once i move the .exe outside it no longer runs. So it seems it is dependent on the other files generated along with it.
Am i doing something wrong here or is it supposed to be like this? Is it possible to get a single executable that will run on client machine?
Secondly after installation, is it possible to do automatic updates (or at least prompt for an update) based on version number?
Thanks,
You should use something like InnoSetup in order to automate the installation of the whole App directory on a foreign computer.

Resources