msiexec

Uninstall with Product Code Fails “Installation Source Not Available”

孤街醉人 提交于 2019-12-12 02:16:49
问题 I'm working on a perplexing uninstall/install issue and I've exhausted my google-foo so I'm coming here hopeful that someone can point me in the right direction. The scenario: We are using AnthillPro to do nightly builds/deployments of a legacy ASP website (built in VS2003) to Windows Server 2003 (x64 SP2) web servers and for the most part it works fine. The AnthillPro account uses the product code to uninstall the previous night's update package and then installs the new one using the name

Suppress an MSI error code

时光总嘲笑我的痴心妄想 提交于 2019-12-12 01:57:26
问题 I get error 2803: dialog view did not find a record for the dialog . Its because I have explicitly removed the FilesInUse dialog from my installer. This is a dialog that is sometimes requested for presentation by msiexec when there are file locks. My installer logic does not explicitly ever try to show this dialog. My installer has custom actions to kill processes that are locking files, so there is never a problem with ignoring this message and then doing an installation (but for this

How to hide or disable Cancel button in WIX Installer?

偶尔善良 提交于 2019-12-11 20:53:01
问题 I am new to WiX installer. I need to Hide or disable the cancel button in WIX installer when progress bar is running. I have googled but did not find some useful link to hide the cancel button. I found this: Hiding the Cancel Button During an Installation, but still have no idea how to use a custom action. Is there anyone who can give me some guidance to achieve this? I have done the following things to hide the cancel button but it's not working. First of all, i have written a custom action

How can i pass arguments along with an msi when a user downloads the msi from a browser?

谁说我不能喝 提交于 2019-12-11 17:32:21
问题 The only suggestions on how to do this i've found suggest that i can use the arguments (i.e. the values i want to pass) in the name of the msi, then on the client where it's been installed, i can pull the name out of the msi and use them there. Obviously it's not ideal exposing the values in the name of the msi. I've looked into using ClickOnce/Wix/standard installer to achieve this but i keep ending up with having to pass my arguments to msiexec, in my mind this means i'm on the server not

How can I silently install an MSI package using msiexec installer with a list of options

风流意气都作罢 提交于 2019-12-11 14:59:41
问题 I am trying to install an MSI package with around 10 options. I was hoping to create these options in a .txt file and pass those through to msiexec.exe during the install via the command line using a script such as this: C:\Windows\System32\msiexec.exe /qn /i "C:\folder\Installer.msi" /L*V "C:\folder\Installerlog.txt" /t "C:\folder\Installer.switch.txt" My installer.switch.txt file has a structure similar to this: Option1=option1 ^ Option1=option2 ^ Option1=option3 ^ With this I hope to pass

Wix Custom Action Implementation for Writing Installfolder in text

时光总嘲笑我的痴心妄想 提交于 2019-12-11 14:22:51
问题 I have following Wix Code that is supposed to send the value of property to Custom Action Written in C#. Basically what I want is when the MSI is installed, I want to write the path of Folder where Wix installed the program in text file. I referred to this site and created code accordingly, but my Custom Action isn't working. Following is my Wix File: <?xml version="1.0" encoding="UTF-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <Product Id="*" Name="SetupInstallFolder"

MSI installer option- uninstalling an application [duplicate]

主宰稳场 提交于 2019-12-11 13:37:32
问题 This question already has an answer here : Uninstalling program (1 answer) Closed last year . If I run the code below I'm pretty sure I'm supposed to get the Product Name and GUID (ex. App Path | {xxx}) for the application. But I'm only getting the path and no GUID is shown. Can someone help me? // search in: LocalMachine_64 key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall"); foreach (String keyName in key.GetSubKeyNames()) { RegistryKey

Customize msiexec progress bar?

℡╲_俬逩灬. 提交于 2019-12-11 13:26:32
问题 My application call msiexec to run uninstall. logger->LogDebug("Actions: MsiUninstallExec()!"); System::Diagnostics::Process ^p = gcnew System::Diagnostics::Process(); p->StartInfo->FileName = "msiexec"; p->StartInfo->Arguments = "/x " + AppSetting::ProductCode; p->Start(); /// -->>> Uninstall /// -->> Choose restart or not. /// -->>> Application Exit When uninstallation is done, users have to choose restart or not to complete this process. But my customer request : "The progress bar of

Install msi with msiexec and c#

偶尔善良 提交于 2019-12-11 13:04:34
问题 What is the best way to install a .msi in a c# application in silent mode. I want to install a .msi file using msiexec, but I don't know how to do this. The problem is for using msiexec with /qn, you have to run it in a cmd.exe process start "as a administrator" and I don't know how to accomplish something similar with a c# application (for more details, a wpf project in VS 2010). The best I come to is : Process p = new Process(); p.StartInfo.FileName = "runas.exe"; p.StartInfo.Arguments = "

how to replace the uninstallation part of an MSI

让人想犯罪 __ 提交于 2019-12-11 10:05:49
问题 I've build a msi installer using a VS2010 setup project. Now the project does not deinstall because of a "1001 Exception: Invalid format for argument machineName" (see below) inside a custom action. I am unsucessful at uninstalling the application using the remove from the system control or msiexec /uninstall . Is there a way to force uninstallation? Details: As part of a custom action I register a custom event source which my app uses for event loging into the windows log: public override