Hide ClickOnce update folder - c#

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

Related

ClickOnce - Installation folder Setup on the server side

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.

ClickOnce app deployed to new location still references old location for updates

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.

Grant permissions on MSI installation

I have a problem with the deployment of my app:
I created the app in C# (Windows Forms) on Windows 7, tested it, working just fine. I moved the .exe and dlls to another computer with Windows 10, tested, working just fine. All good with the app until now.
The next step is to create a setup file for it. I managed to create the setup file, it installs my app, the app work but can't create files (log files for example - files are stored next to .exe file). I found out that the folder needs full control permissions for Users. How can I set the permissions to the folder when the app is installing?
I found a solution, not as elegant as I wanted but it works: on commit, the setup will execute a .bat file with a script that will give full permissions for IIS_IUSER.
Check this link:
How to run a ".bat" file during installation?

C# how to Deploying a packed exe with MS clickonce

i am devoloping a C# windows app and i deploying my app with MS Clickonce .
but i have a problem .
iam using a dongle for this app and i am packing my *.exe .
first step ; publish the project and then i am packing the published exe. after than add file ext. name , like this *.exe.deploy
but ;
so , dont work this exe .
have you any solution about this problem ?
If you're modifying any of the published files after publish, you'll have to update your .manifest and .application files. Use mageui.exe (location is in bin folder of Windows SDK you have) to edit those files and remember to sign/save when finished.
If you just want to provide a copy of the app, why don't you just build it and then copy the \bin\Release folder to the external drive?
ClickOnce is really meant to deploy an application from a webserver or network share adn give you the ability to publish incremental changes.
If you want to deploy something using ClickOnce from a USB stick, you have to publish the application to a folder, then copy the package over to the usb drive and have the user run setup.exe.
If you do that, you will want to go to the Manifests tab under the Options dialog and check "exclude deployment provider URL". Then when the user installs, it will set the installation URL as the file path to the files on the usb stick. He will have to install updates the same way.

ClickOnce installation folder URL relative

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.

Categories

Resources