I am about wrapping up a webapp written in PHP. Now for the deployment on the customer's machine, I want to write A C# wrapper that simply copies this project to a folder on local disk.
I don't want the C# Setup Project to create any files in Windows Program Files. I just want my webapp folder copied from the C# Setup. It would be great too, if the same C# Setup can install a third party web server. Any ideas?
Related
I'm using a "ASP.NET Core with React.js" template in Visual Studio. I've configured publish process to produce a single file. While it does package all the .NET files into one executable, it still generates a separate "ClientApp" folder that contains a build of a React App.
Is there a way to embed everything inside the executable? Like, copy everything inside .zip archive, embed it as a resource and host everything from there.
I am trying to add a UI to a background service. So that a user could open a page in theirs browser and check service status. Frameworks like Electron will not work for me, as the service should be accessible from the local network, not just from the PC it's running on.
Just in case someone will have the same question in the future, I'll post my solution. First of all, I've packed a build of react app into a zip archive. Then, I've included an archive as Embedded Resource into the project. Finally, I've used Lexical.ZipFileProvider as a FileProvider for app.UseStaticFiles. And voila, the thing just works!
Goal:
I am trying to make a setup file for my app. Futhermore the app must be able to be updated from a server or OneDrive.
Solution:
I am using windows application packaging project for this.
The issue:
The installer works fine when the installer location is on my local harddrive. But when i try to change the installer location to my online file manager or a public OneDrive folder I am unable to download and install the update or App for that matter.
My question:
Has anyone been able to use windows application packaging project where the app downloads updates from a server / OneDrive by uploading the installation file to a server / OneDrive and entering the path to the location, or am I on the wrong track?
Alternatives
The alternativ is of course to use Setup Project and perhaps AutoUpdaterDotNET (from NuGet) which works fine, but now I am interested in a solution which does not require several different third-party programs, and windows application packaging project seems to be the solution.
Have you tried creating an .appinstaller file? This XML file (which you can write in any code editor - you don't need VS or Advanced Installer to generate it, although that way is easier) should allow the OS to cache all the necessary information to auto-update the app accordingly.
I have created a console installer which does the following things
Downloads zip files from server and extracts it on user system
Copies a folder from the extracted files in maya install directory after searching for its install path from registry
Adds registry entry for another exe file my application is using
Downloads and places that exe from server on user system
Its working perfectly fine but its not user friendly as the user keeps looking at console while app downloads and extracts data on his system.
I looked and found few auto setup installers.
Is clickonce use able for my scenario or should i go for some other or should i create my own gui for the app and add progress bar.
P.S: I am using c#, .net framework 4.5
Is it possible to create a fully-distributable application using C# that installs in a "proper" location (i.e. C:\Program Files\MyAppName) using only Visual Studio?
I'm new to creating stand-alone apps and I have created a first simple test app, but now wish to develop a home inventory-type application. It requires the distributable SQL Server database (which I used in my test app), and I would like it to install to a "normal" location. Right now, it seems to install to C:\Users\%Username%\AppData\Local\Apps\2.0.
Can this be done with C#, or does it require some 3rd party installation creation package?
As long as they don't rely on assemblies in the GAC, etc. .NET applications are standalone / "fully-distributable" by default. The most common way that I install my applications to other machines is by copying the output folder, (bin\Release for example) to my desired install location. For applications that are to be downloaded off of a website, zipping the folder should be sufficient, and the user can unzip to any location that they wish.
i have .NET project that is a IIS Service, this is on Windows Server2008 R2 Machine.
I have another project that is C# program, that using the IIS Web service,
my question is how can i rebuild solution/project of the Webservice from C# program?
Thank you
Can you confirm that you have source files which should be compiled and then compiled project should be placed to the directory which is used by IIS web application?
If yes, I would recomment to create a powershell script. This script would perform 2 main actions:
Compile the project. Use MSBUILD.exe utility for that.
Copy compiled folder. Use ROBOCOPY utility for that.
Then just call this script from your C# code.