visual-studio-setup-proje

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

让人想犯罪 __ 提交于 2019-12-06 02:50:36
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. swissben 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 InstallPath registry key Registry Settings Management (MSDN) If it was installed using Windows Installer (

Set InstallPath registry key using Visual Studio Setup project

空扰寡人 提交于 2019-12-04 22:46:57
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? 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 [TARGETDIR] within your custom action code you can continue to use the Microsoft.Win32 namespace to set the

VS 2010 BootStrapper for WIC (Windows Imaging Component) before .Net 4 installation in XP

自作多情 提交于 2019-12-04 16:04:57
I have created a setup and deployment project for my .Net 4 app in VS 2010. In my prerequisites i have checked .Net4 prerequisite but i have learned that .Net4 has left out WIC (Windows Imaging Component) to make it light. When i run my setup in Vista/Win7 the Net4 installation does not give error for WIC but when i install it in XP it gives error for WIC. Then i have to install WIC manually first and then run my setup. I need a bootstrapper for WIC which runs before .Net4 installation in XP. Please suggest how it can be done or a link for it. Thanks in Advance. I've faced this annoying

Add custom action of installing msi before the setup in installer project

前提是你 提交于 2019-12-04 06:14:04
问题 I am creating an installer project for one of my windows applications . I want to make sure that an msi is installed first i.e. before the primary output is installed . The msi in question here is Microsoft VisualFoxPro OLEDB . So if I tried adding custom action as So if I change the file type to all files and try adding the msi , it gives an error saying Not a valid file type for custom action Is there any other way to do what I am trying to achieve here? 回答1: All Visual Studio custom

c# setup project get radio buttons value

坚强是说给别人听的谎言 提交于 2019-12-04 05:51:13
问题 I've started to create installer for my application using Setup Project in Visual Studio, I've made User Interface with two radio buttons. There it is what i'm talking about I want to get access to values of these radiobuttons in c#, but I completely have no idea how. Can any1 help me ? 回答1: Assuming that getting them in C# means that you have a custom action installer class that you wish to pass the values to: DOMAINLOCALVALUE appears to be the name of the property associated with the

WPF application crashes when I launch

做~自己de王妃 提交于 2019-12-02 17:21:47
问题 I used 'Microsoft Visual Studio Installer' to create a MSI for a legacy c# WPF application. After I install, I see this error BELOW. Do I have the wrong net framework installed ? Faulting application name: MyDesktop.UI.exe, version: 1.20.7097.18607, time stamp: 0x5cfa9cce Faulting module name: clr.dll, version: 4.7.3416.0, time stamp: 0x5cabfd2c Exception code: 0xc0000005 Fault offset: 0x0045510d Faulting process id: 0x93c Faulting application start time: 0x01d51d5595e74050 Faulting

Windows installer using the NT AUTHORITY\SYSTEM instead of login user

时光总嘲笑我的痴心妄想 提交于 2019-12-02 14:01:31
问题 I have a windows installer, which is creating a database as a part of the installation process. While installing the application CREATE DATABASE process is failing because the windows installer using a wrong user. It is using NT AUTHORITY\SYSTEM instead of using the login user. NT AUTHORITY\SYSTEM user does not have permission to create a database. Is there any way to force the installer to use the login user? Using Windows 10 environment with VS 2017 and MS Visual Studio 2017 Installer

c# setup project get radio buttons value

白昼怎懂夜的黑 提交于 2019-12-02 11:00:38
I've started to create installer for my application using Setup Project in Visual Studio, I've made User Interface with two radio buttons. There it is what i'm talking about I want to get access to values of these radiobuttons in c#, but I completely have no idea how. Can any1 help me ? Assuming that getting them in C# means that you have a custom action installer class that you wish to pass the values to: DOMAINLOCALVALUE appears to be the name of the property associated with the radiobutton. In the properties window of the custom action you want to pass the value into, in the

Add custom action of installing msi before the setup in installer project

陌路散爱 提交于 2019-12-02 09:46:43
I am creating an installer project for one of my windows applications . I want to make sure that an msi is installed first i.e. before the primary output is installed . The msi in question here is Microsoft VisualFoxPro OLEDB . So if I tried adding custom action as So if I change the file type to all files and try adding the msi , it gives an error saying Not a valid file type for custom action Is there any other way to do what I am trying to achieve here? All Visual Studio custom actions run after all the files have been installed, so you cannot use a custom action to install another MSI

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

孤人 提交于 2019-12-02 06:14:27
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 process rolls back. Now the system is in a state where the service can neither be installed nor