I am using Visual Studio 2017 for a winform application. There is a publish option when I right click on the UI project.
The publish wizard asks for the following information:
Where do you want to publish the application (Location to publish): \\servername\foldername
How will users install the application?: From a UNC path or file share. \\servername\foldername
Will the application be available offline?: No
I am trying to automate this using Jenkins. Is there anyway to run this using MSBuild / MSDeploy? I am looking for command line arguments I need to provide for the above options.
Related
I have a WPF application. I used Visual Studio to publish it to a folder on my machine. I then clicked on the application to run it. Before running it, the application asked me if it is ok to install it. I answered in the affirmative. Then I changed the config file in Visual Studio to point to another database instance and published to a different folder. I clicked on this new application to run it. This time I was told that I cannot install the application as it was already installed on my machine. Any way around this issue?
How can I create set up file for WPF application ? I'm new to WPF applications and I don't have any idea about initializing this.Please help me !!
I advise you to use InnoSetup. It's a powerfull tools to make setup-wizard for all projects. You can create it easyly. And more features are available with it (icons file, registry management, associate file extension with application, desktop and start menu windows entry, and much more...)
I suggest you to go through below link if you are using VS 2010 and above-
CREATE SETUP AND DEPLOYMENT OF WPF APPLICATION STEP BY STEP WITH VISUAL STUDIO 2012
You need InstallShield packaging software to after Visual Studio 2008.
It will create a template to create deployment project, but you can
get the Visual Studio Installer Projects in VS 2010 and above , you
need to install the Visual Studio Installer Extension from the Visual
Studio Extension Gallery - Microsoft Visual Studio Installer
Projects
If you are using VS 2008 then it already have template to create setup project your WPF application. Just follow the below link to know that How use Setup Project..
Create Setup and Deployment of WPF Application Step by Step
#Hana's answer showing screenshot of the Setup Project, which is used in the VS 2008 to create the deployment package.
References:
Create an application setup in visual studio 2013
Visual Studio 2013 Installer Projects – Hello World Installer
Using VS 2008:
Add a Setup and Deployment project to the Solution
As soon as you add the project it opens the File Explorer view.
add Program File's Folder to our Setup project
add Primary output and other dependencies to Application Folder.
Select as displayed above.
Now we would add A folder to the Program Files Folder.
Now add the same as you did for the Application Folder.
add a Shortcut to User's Desktop.
Rebuild the Solution and then rebuild the Setup project.
Full help is here
I recently developed an WinForm application that I wanted to run on my local SQL server using SQL Agent. I published the WinForm app via Visual Studio and copied the files (three listed below) over to my SQL Server where I ran the setup.exe program.
Application Files (directory)
MyApplicationName.application
setup.exe
My application installed and started up automatically.
Now that I have to schedule the job with SQL Server Agent I cannot find where the application was installed to on the filesystem. I can see the shortcut on the Start menu but it just points to a shortcut. The shortcut does not seem to have any indication as to where the actual application file exists.
I tried to point to the shortcut as the application SQL Agent should start but all I get is "junk text" in the path.
Visual Studio uses ClickOnce deployment to publish WinForms applications. The installation folder varies by Windows version. For example on Windows XP it is
C:\Documents and Settings\USERNAME\LocalSettings\Apps\2.0\
and on Vista and above it is
C:\users\USERNAME\AppData\Local\Apps\2.0\
I have created a win forms application that is installed using a setup and deployment project. During a recent update to the setup and deployment project, I've caused a problem that I can not find the source of. Each time I click on the shortcut to my project, it runs the setup again. In effect it is repairing the install each time the shortcut is clicked.
Also, this issue is related to the shortcut that is created by the setup and deployment project. If I go directly to the console.exe file and run my application it does not attempt to repair it.
Using visual studio 2008 and I have custom actions that run on the install, however I can't see how they could cause the application to repair itself on load.
Thanks
I maintain a Winform app deployed to the desktop via ClickOnce. Currently I use Visual Studio Publish wizard to make a new version available. I would like to automate this step, ideally via an MSBuild script. Is this possible?
When you invoke msbuild /target:publish at the command line, it tells the MSBuild system to build the project and create a ClickOnce application in the publish folder. This is equivalent to selecting the Publish command in the IDE.
This comes from the MSDN documentation for MSBuild
http://msdn.microsoft.com/en-us/library/ms165431.aspx