We have a Java based web-application and also the same application written in C# which should be run if the java-checker finds out that there's no Java installed on the client machine. The idea is to run the C# ClickOnce application automatically, without any user action, once the Java checker reports that there's no Java installed on the machine. Is that possible and if yes - how?
Just link to (or redirect the browser to) the URL of the ClickOnce application. That should launch the application.
For example, http://www.domain.com/myapp.application
Related
I've developed a machine control application that needs a technician panel - local and remote (internal local network). I thought a good way to avoid duplicate coding is use Blazor Web Assembly application, launch it locally in a WebView2 control or externally on the technician laptop and communicate with the system using gRPC.
All is well but one issue - I don't have and do not want to run a web server on the machine's computer.
Is there a way I can launch a web assembly application (Blazor) directly from a local file?
One thing you could try is launching it as a desktop application using Electron or WebWindow.
WebWindow is experimental, but a lot lighter than Electron. (See https://github.com/SteveSandersonMS/WebWindow)
Here is an article about using Electron and blazor WASM. https://medium.com/cloudnimble/bringing-your-blazor-apps-to-the-desktop-with-electronnet-blazor-67701bff82f7
You could also compile it to static html files and use a mini Python HTTP server to serve up the files. If you use Python 3 you can run the python -m http.server [port] command from the publish\wwwroot directory to serve up the files locally. You then just navigate to localhost:[port]to access your app.
Hopefully at least one of these approaches helps you.
I developed C# wpf application using 3rd party SDK now i want to deploy application. i want to create exe which is download and install application directly from web with minimal user interaction.
i also want to install .net framework silently on client machine without user interaction. for example like zoom meeting windows application.
Thank You.
you say download and install but how?
if you want to install like msi setup i'm suggest you to try squirrel
which is like clickonce but it works.
But you can also check: Installshield or Advanced Installer which it can let you create an update windows service. With windows service privileges, you can do your job without user interaction.
Also the other way which i prefered 2 months ago is your own application. You can create an updater windows service application. I've developed an updater software which checks an url for the version, if the version higher then download and update the application. Also check if application is running if app is not running then run it. i'm starting processes with an 3rd party tool which you can find it here you will need it if you want to develop your own application which is windows service. Because of windows service isolated "session 0"
I think best way will be your own development.
I have a web application that runs internally. I need to run an executable (command line application written in C#) from the browser by passing it 2 parameters.
Infrastructure:
Windows XP - 8
Internet Explorer 6+
C# (.Net 4.0)
The code the launches the executable:
var scanApp = new ActiveXObject("WScript.shell");
scanApp.run("C:\\Path\\To\\exe param1 param2", 1, true);
The above works on my local machine because I have the exe in a known location (on my desktop).
My question is, how best can I deploy this on a client machine through activex and then run the executable?
The workflow would be:
1. Go to webpage
2. Click link that attempts to launch exe
3. Activex 'installs/downloads' the exe to a known location if its not there already
4. Run the exe
TLDR
How to deploy an executable through ActiveX and then launch it whenever user clicks on a webpage button?
Is it necessary that the installation occur through ActiveX? If not and you can deploy a different way (Group Policy, ClickOnce, etc), you can register a protocol handler to accomplish your second goal (similar to how iTunes is registered as a handler for itunes:// links). Just make that part of the install script.
For more information on that topic, see here or here.
I'm planning on creating some sort of "media-manager".
Add your bluray/dvd collection and it downloads metadata and lists your collection in a nice way and so on.
It's supposed to run on a NAS/Homeserver running Windows 8 and i want to access it via a webinterface.
ASP.NET using Web-Api seems like a good way to go.
However, it would be great to deploy the website as an executable.
For example: A friend want's to use the application too. I give him an installer and afterwards, he just needs to doubleclick the .exe and a webserver (IIS Express?) and the website boot up automatically.
Is this possible? (and if, how?)
Thanks
Well, of course you could write an installer that installs a webserver (like casini) and then install the Website to this Server and all is installed locally but I don't recommend that. That installer Need more work then the Website.
You are better of with Hosting you Website in a public place like Windows azure and implement your Website in a way that a user can logon and sees it's DVDs. Another users sees other DVDs. Or give him Access to your homeserver with dyndns.
Yes you can add a "Web Setup" project in your asp project to build a msi package and custom what do you want step by step .
This will generate a "installWebSite.msi" file at the end. Just double click it and follow the website installation
You can see a good presentation here ->
http://weblogs.asp.net/scottgu/archive/2007/06/15/tip-trick-creating-packaged-asp-net-setup-programs-with-vs-2005.aspx
I am using VS2008 C# and testing on my local XP Pro PC with local IIS, I have wrote a web service to call a third party software .exe file to use svn checkout commands to insert data into a folder, which use System.Diagnostics.Process.Start . The same codes did work when I use VS2008 build-in ASP.NET Development Server(http://localhost:2999/MyServices/MyServices.asmx). but when I use IIS normal URL(http://developer/MyServices/MyServices.asmx) to run Process.Start on the web service, it just haunlted and not doing anything.plz send one sample program.
This is most likely down to the user being used to run the code. When using the built-in server, it is running as the same user as Visual Studio is running as. When in IIS, it will be running as the MACHINENAME\ASPNET user.
If the process you are starting cannot execute as the MACHINENAME\ASPNET user, it will not work when hosted in IIS unless you change your configuration to change the user it runs as. See this page for more info on what users are used for what in IIS.