visual-studio-setup-proje

how can get the path from installer and how set in my app?

好久不见. 提交于 2019-12-22 09:56:45
问题 i am writing a win app and now i want to make setup for my app,my code is: Microsoft.Win32.RegistryKey rk = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows\Cu­rrentVersion\Run"); rk.SetValue("MyAppName", @"C:\WhereMyAppIs\MyApp.exe"); now how can get the path from installer to set it??? thanks. 回答1: If you use Visual Studio, you can right click on the setup project -> View -> Registry and then set the registry key you like. Check out this sites: msi - Set

How do I stop SQL Server 2008 R2 trying to install some package when I build my setup project?

一世执手 提交于 2019-12-21 03:37:22
问题 I have a WPF Linq-to-SQL project which I have been developing using MS Visual Studio 2008. I was running SQL Server 2008, and recently upgraded it to version R2. Now, whenever I build my SETUP project (not the app itself), the build process causes a window to launch: SQL Server 2008 R2 Management Studio Please wait while Windows configures SQL Server 2008 R2 Management Studio Which after a progress bar and some delay, complains: "The feature you are trying to use is on a network resource that

Cancelling a Windows service installation/Uninstallation with the Windows Installer causes service to be incompletely installed/uninstalled

限于喜欢 提交于 2019-12-20 05:19:11
问题 I have created a Windows Installer for a windows service with VS 2017. The windows service has a project installer and service installer class inside it. When I cancel the uninstallation process midway, the process removes the windows service but does not update data, so the next time I run the setup , I get the option to Repair or Uninstall the windows service. Attempting to uninstall the windows service now gives an error that "the specified service does not exist", and hence the uninstall

Visual Studio 2017 Installer Project - include VC++ 2015 Redistributable

僤鯓⒐⒋嵵緔 提交于 2019-12-17 07:55:31
问题 I am creating the installer for my application using a "Visual Studio Installer" project type in Visual Studio 2017. I want my installer to install visual c++ redistributable 2015 with my application. I've downloaded the vc_redist.x86.exe file, included it in my project, and I'm trying to do the install as a custom action on "install". I am launching with the arguments /install /passive /norestart . When I execute my installer, when it does the custom action, I get this error: There is a

Visual Studio 2017 Installer Project - include VC++ 2015 Redistributable

亡梦爱人 提交于 2019-12-17 07:54:19
问题 I am creating the installer for my application using a "Visual Studio Installer" project type in Visual Studio 2017. I want my installer to install visual c++ redistributable 2015 with my application. I've downloaded the vc_redist.x86.exe file, included it in my project, and I'm trying to do the install as a custom action on "install". I am launching with the arguments /install /passive /norestart . When I execute my installer, when it does the custom action, I get this error: There is a

Create a setup for windows form application Without Administrator password while install

霸气de小男生 提交于 2019-12-13 07:49:56
问题 I have developed a windows form application in visual studio. Now, I would like to install that windows application on my PC without administrator privilege. How can I create a setup. (I already installed Photo Pad image editor application on my PC without administrator privilege). 回答1: Your best bet is to use ClickOnce . It doesn’t require admin rights to install typical apps. One of the reasons is because ClickOnce apps install for the current user and not for everyone on the local machine.

Visual Studio 2017 C# installer project is not installing my app

隐身守侯 提交于 2019-12-11 14:21:40
问题 I have been having troubles with this, hope you can help, I have developed an app using c#, now it's time to deploy, I have recently installed the plugin to create an installer project in my solution, so I followed the steps to create the installer and then compile the project, and everything is fine until that point, the plugin created an installer, so I ran the installer and used the default to folder to install the app, but when I go to check to the default folder installation, the folder

Visual Studio Web Setup Project - deploy outside of web root (wwwroot)

早过忘川 提交于 2019-12-11 06:24:22
问题 I am working with Visual Studio setup projects to install web application. I am looking for a way to change the default physical file installation path. The end result I would like is a Virtual Directory called "MySite" that points to a local path on the server like "C:\Apps\MySite" Is there a built-in option to customize this? 回答1: No, it will install at the physical file installation path of the Web Site where it is installed plus the name of the virtual directory. 回答2: edit the project

Installer created by VS 2008 deployment project fails with error “System.BadImageFormatException”

非 Y 不嫁゛ 提交于 2019-12-11 06:19:33
问题 I have created an installer with Visual Studio 2008. VS project type is deployment project. This installer fails in some environments but also runs perfectly in some other environments. For example, the installer is compiled in virtual machine that runs Windows Server 2012 R2 Standard. Of course installation succeeds there. How ever, it fails in other virtual machine running same Windows edition. The error message is: "Error 1001. Exception occurred while initializing the installation: System

Set InstallPath registry key using Visual Studio Setup project

丶灬走出姿态 提交于 2019-12-06 17:12:29
问题 I am deploying my application using an msi installer designed with a Visual Studio Setup Project. How do I set a registry key to the application's install path? 回答1: One way to do this would be to create a custom action in your installer. On the custom action you could provide CustomActionData "/Path="[TARGETDIR]*". Within your custom action code you can reference Context.Parameters["Path"] and receive the installation path passed from the installer in your .NET code. Now that you have the