I have written windows service in VC++ that download files from server as per received file list in XML. File list contains 1) .net framework setup .exe package name 2) msi package name.
Requirement is to install these files in background, here I could perform silent installation for .msi package using msiexec and CreateProcess but for .exe package (ie. for .net framework installer) I can't do it using CreateProcess in background. How I can perform .exe installation in background within windows service application.
Most exe installs allow a silent installation, but have own and different parameters. You have to read their documentation and/or google.
Every .NET framework has slightly different parameters, but some work with "/q /norestart" for example.
E.g. google for "Aaron Stebner's WebLog".
Related
Currently I'm working on a project to deliver apps via MSIX packaging including python as one of them. I've already created an msix package for the same with below settings :
So the MSIX package displays the environment variables added to the system path
VHD has been mounted (staged) and registered on test machine, however I still cannot open python via cmd
I'm a bit new to the MSIX packaging tech, so any help would be appreciated.
Users to be able to run python from cmd.
Files that are packaged and deployed with an MSIX run inside a container. This means that these files will not be "visible" by default to tools like cmd or Powershell.
You need to define an appExecutionAlias in your package manifest. The following SO question has more details:
How to run an MSIX installed application from the command line
If you're using the MSIX Packaging Tool or Visual Studio to build the package, you need to manually edit the AppXManifest.xml file and add the appExecutionAlias element.
If you're using other commercial tools, you probably have a GUI option to include and configure it.
I'm maintaining a couple of .NET applications on GitHub. I've been getting requests to port them over to .NET Core so that they can be used on Linux systems. I would like to make the Linux users' life easy by providing some sort of package like NuGet that can be installed.
However I'm not aware of any conventions for where the executable files actually should live in the file system. Ideally, the binaries will be deployed in directories on the PATH, but I'm not sure what convetions dotnet Core uses when it comes to the physical locations of .NET assemblies.
Ideally, I'd like to deploy:
The main assembly, pytocs.dll
A shell script that asks the dotnet core executive to launch the tool:
#!/bin/bash
dotnet pytocs.dll "$#"
but I don't know where those two file should go.
I've looked on the Node-Webkit site and it appears to say that I can make an application with HTML5 and compile it for Windows, Linux of Mac so it will run without the need for the user to install Node.js separately. However, when I try their sample apps (e.g. https://github.com/leanote/desktop-app found on the official NW.js page: https://github.com/nwjs/nw.js/wiki/List-of-apps-and-companies-using-nw.js ), the ".exe" file does not run the app (on either Win 7 or XP). It just opens a simple browser window with the address "nw:blank" and a gray page says "NW.JS" and does nothing.
Can these apps be packaged and run without requiring the user to install node.js?
https://github.com/leanote/desktop-app 's nw folder is not the distribute leanote app, it's just the NW. You must build the desktop-app. The README has written How to build it, How to develop it
You can download the distributed version via: https://github.com/leanote/desktop-app/releases
You might try... node-webkit-builder ... which is supposed to build a huge .EXE file which is self-contained for you. Otherwise, the instructions for distributing... how to package and distribute, see Step 2b.
I'm temporarily stuck on a Windows machine on which I have no administrator privileges. I would like to get node.js "installed" in a directory without using an installer, which requires elevation. On the node.js site, I don't see this distribution option.
Is anyone aware of a file-based (zip, self-extracting exe, etc) download that I can use to run node.js without using an installer on a Windows machine? Is there a way to run the installer without administrator elevation?
OK, it turns out that the EXE download for Windows is all that node.js needs to run. I had thought that that was an exe for doing an installation. Just running the downloaded .exe works.
I converted my jar file into .exe using Launch4J. Now as per my need I have to run this exe file on system with no JRE installed. Is it possible to run .exe file converted from jar file without JRE or is there any way to embed JRE with the .exe file?
the exe is just a facility to run the program on windows, it is also needed the JRE.
[]'s
I think you don't need JRE for running a .exe file.But if you create a .exe file from a jar file, you should have JAVA in your system or in any other PC you want to run the .exe file. So JRE comes with the JAVA when installed(only basic thing). I think you can include JRE by using launch4j. I used it long back ago. But I won't personally recommend it. I always use Jar2EXE for converting the jar file to an .exe file.
it's not possible to run the exe without JRE (since the exe is just wrapper of jar)
I would suggest you to use a setup tool to create an Installer. It's the easiest way. Launch4j is not capable of putting JRE into exe, so you would have to send 2 parts (exe + JRE). However if you create an Installer, you'll have just 1 exe file where you have packaged everything. I'd recommend Inno Setup Compiler.
I don't know with Launch4J.
But you can do it with NetBeans and a couple of tools. The result is a standalone installer that packages everything you need (included java files), so your software can run without installing JRE. But in the end it does need JRE to run, only that everything is included, and it's totally portable.
here is this solution