Copy file to desktop on install - c#

I'm using ClickOnce to publish a C# application.
Users want a configuration file located on the Desktop.
Can I get the install/update procedure to copy a file to the users desktop? If so, how?

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.

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?

Hide ClickOnce update folder

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

Webinstaller for C# application

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

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.

Categories

Resources