I am traying to publish an application via ftp, using visual studio 2015 and Net Framework 4.5.2
I have a local ftp in a lan web.
But do i need to create a iis website for the Installation folder Setup? if i neeed to do that how to configure it to point to the ftp?
I just want to use only the ftp is this possible?
Thank you
That's possible.
When you publish an application by using ClickOnce, the Publish Location property specifies the location where the application files and manifest are put. This can be a file path or the path to an FTP server.
You can specify the Publish Location property on the Publish page of the Project Designer, or by using the Publish Wizard. For more information, see How to: Publish a ClickOnce Application using the Publish Wizard.
To specify a publishing location
With a project selected in Solution Explorer, on the Project menu, click Properties.
Click the Publish tab.
In the Publish Location field, enter the publishing location by using one of the following formats:
To publish to a file share or disk path, enter the path by using either a UNC path (\Server\ApplicationName) or a file path (C:\Deploy\ApplicationName).
To publish to an FTP server, enter the path using the format ftp://ftp.microsoft.com/.
Note that text must be present in the Publishing Location box in order for the Browse (...) button to work.
Related
I am trying to change where my ClickOnce application is hosted. I do not care about making this a smooth transition for users who already have the application installed because it is not in production yet. I thought this would be as simple as changing the installation folder url and the update location url in the Project Publish properties. Some context: The application was previously hosted on a Azure Ftp server and I would publish directly from Visual Studio. Now I want to host the application on a Wpengine server that uses SFTP. Visual Studio does not support publishing through SFTP so I have to publish to a local folder and upload through WinSCP/Filezilla. Steps I am taking to publish to the new location:
Change the Publishing Folder Location to a local directory.
Change the Installation Folder to the new wpengine directory.
Change the Update Location to the new wpengine directory.
Publish and manually upload through winscp to the wpengine directory.
When I download the setup.exe file and run it shows me the old Azure url as the "From" source as seen in the image below and it installs the latest version that is hosted in our Azure location. Obviously this is not the desired result. I even double check the manifests with MAGEUI and everything seems correct. I cannot find a single reference in my code to the old azure location either. I am not sure if this is some sort of code signing issue but I cannot for the life of me figure out how this old azure url is getting referenced.
I tried publishing a WPF application using my own Localhost as a server. But whenever I try publishing it, it says that the application was unable to find the end point web page used to display the installation instructions.
I read somewhere that there is no way to publish to a Localhost using ClickOnce. Is it true? Or is there any other way to work around this?
I found a way to copy the published files to any server and use them by downloading from there.
I opened up Command Prompt, navigated to the local path where the application is published and changed the URL of the setup.exe to the server in which we are going to place them.
For example: My application was published into C:\inetpub\wwwroot. So using Command prompt (better with administrative privileges) I navigated to
c:\cd c:\inetpub\wwwroot
c:\inetpub\wwwroot>setup.exe /URL=http://servername/test
After successful execution, we can copy all the files from C:\inetpub\wwwrooot into the servername/test folder in server and can browse the server to download and install the application from anywhere with authentication.
iam deployng a simply exe app via ClickOnce on our shared folder.
app should be installed on local folder.
to avoid risk i want to hide location of deployed file to user.
i want to share them only location where installer is, all update should be deployed to different folder
how can i do it?
how i have to setup publishing folder and installation folder?
i try to set publish folder
\\sharedfolder\App\moreSecretFolder\MyApp
and
install fodler as
\\SharedFolder\InstallMyApp
hoping that user can go to second folder to launch installer and App go to first folder to search for update but don't works in this way: after deploy InstallMyApp fodler is empty
I have an application that works fine in my computer locally. What I need is to run this application in another computer but it doesnt have Visual Studio.
I installed IIS 7.0 and tried to create a virtual directory but no luck. Am using the right port? Used port 80 and tried port 4444 and no luck. Any ideas?
What files do I have to drag into the inetpub/wwwroot? All my project files?
You don't need Visual Studio for a web application (aspx). You need to copy the files from the Bin folder and setup a Virtual directory (you do need IIS and might need to enable some features in IIS to support ASPX) .
The easiest way to do this is from Visual Studio right click your project and click Publish. This will let you select what kind of publish option you want (File System will publish to a local dir and you can just copy to the new computer and hook to the virtual directory you created, Web Deploy let's you remotely publish from your local dev box, etc.)
Here is a walkthrough
As long as you're accessing the ASPX files through an IIS web server with the correct target framework you used then it can easily work without Visual Studio.
For instance, my production servers don't have Visual Studio on them. They just need IIS and the proper .NET framework installed.
As a commenter mentioned above, if you right click on your project and select PUBLISH you'll be in good hands.
Go to IIS Manager
Open sites
Right click on default website and choose "Add Application"
Alias "Application Name 'can be any' " and Physical Path is the application path
When deploying a ClickOnce application, the installation folder URL, is there a way to make it relative to the web application directory hosting it?
For instance, for local testing I publish to http://localhost:54592. However, when this web application is deployed, it could be anything from http://www.foo.com to http://www.foo.com/MyVirtualDirectory
I would like the path to find the installer in its current location, and the application after installer has completed to reference the web app host, not the development URL.
Platform: Visual Studio 2010, .NET 4.0, and C#.
This works out of the box if you stick with *.application as your application source. You just need to pick a folder inside your web application to publish your ClickOnce application, and the application is available from this address under your application.
For example, if copy your site to C:\inetpub\wwwroot\mysite and copy the ClickOnce to C:\inetpub\wwwroot\mysite\myapp with MyClickOnce.application inside the ClickOnce folder.
Then you expose your website as http://example.com and the ClickOnce application is available under http://example.com/myapp/MyClickOnce.application.
In case of setup.exe you need to recreate the manifest after you publish it to the destination location. This is done with mage.exe.
In the Options dialog, the Manifests tab, you can check the box that says "Exclude deployment provider URL".
Then provide the URL to your user for the installation based on where you put it. When they run it, it will create and save the URL where they got it from, and always look there for updates.