windows-installer

How to extract ProductCode from msi package?

纵饮孤独 提交于 2021-01-02 05:21:20
问题 How to extract ProductCode from msi package? I want to use it later to uninstall msi via msiexec as described here 回答1: I can think of dozens of ways to do it. What programming languages do you currently use and/or comfortable with? Take a look at Execute SQL Statements You could use WiRunSQL.vbs ( provided in the Platform SDK ) to run the command: cscript /nologo WiRunSQL.vbs FOO.msi "SELECT Value FROM Property WHERE Property = 'ProductCode'" 回答2: I wrote a Powershell function that I use

Is the PackageCode for an MSI stored anywhere in windows?

流过昼夜 提交于 2021-01-01 07:13:18
问题 I can get the ProductCode from the \Uninstall and other Registry keys, but I dont see a specific PackageCode listing. Is there any way to reliably get a list of package codes for MSI's that have been installed? Opening each MSI is not preferred, but only for performance reasons. 回答1: Please find below a VBScript to retrieve MSI information of various kinds, including package code. Create a VBScript file on desktop and paste the below code. Run the script from desktop and look for the file

Why doesn't this msiexec.exe command work in powershell?

空扰寡人 提交于 2020-12-25 04:22:21
问题 I am trying to execute the following command through powershell, in a script invoked by an Advanced Installer generated installation program. The problem is that when the script executes, it chokes on a call to MSIEXEC.exe. More specifically, it puts up a windows dialog of the msiexec help screen. Ok so maybe it doesn't like the way advanced installer is executing it. So I take the actual line that is causing problems: msiexec.exe /q /i 'C:\Users\ADMINI~1\AppData\Local\Temp\mongo-server-3.4

Disable MSI auto-repair on installed program

瘦欲@ 提交于 2020-12-23 13:40:30
问题 I've seen tons of people post about this issue but have yet to find a solution. I have a program that every once and a while will have an issue where the windows installer tries to repair the program, but it doesn't actually do anything, it just hangs. I checked the Windows event log and the file it says is missing is not missing. Sometimes rebooting fixes it. How can I disable the self repair completely on a program that's already installed without removing it completely from the registry?

Disable MSI auto-repair on installed program

心不动则不痛 提交于 2020-12-23 13:38:17
问题 I've seen tons of people post about this issue but have yet to find a solution. I have a program that every once and a while will have an issue where the windows installer tries to repair the program, but it doesn't actually do anything, it just hangs. I checked the Windows event log and the file it says is missing is not missing. Sometimes rebooting fixes it. How can I disable the self repair completely on a program that's already installed without removing it completely from the registry?

Session.Message not showing pop up message on product installation screen

本小妞迷上赌 提交于 2020-12-13 03:31:06
问题 I have a customActions class: public static ActionResult Register(Session session) { try { Do SOmething } catch (Exception ex) when (ExceptionManager.catchGenericExcetion(ex)) { var responseMessage =ex.ResponseMessage; if (responseMessage.Contains("Maximum apps created")) { session.Log("maximum limit reached"); using Record record = new Record(0); record[0] = "This is an error!Max apps reached"; session.Message(InstallMessage.Error, record); } return ActionResult.Failure; } return

Session.Message not showing pop up message on product installation screen

人走茶凉 提交于 2020-12-13 03:29:17
问题 I have a customActions class: public static ActionResult Register(Session session) { try { Do SOmething } catch (Exception ex) when (ExceptionManager.catchGenericExcetion(ex)) { var responseMessage =ex.ResponseMessage; if (responseMessage.Contains("Maximum apps created")) { session.Log("maximum limit reached"); using Record record = new Record(0); record[0] = "This is an error!Max apps reached"; session.Message(InstallMessage.Error, record); } return ActionResult.Failure; } return

Session.Message not showing pop up message on product installation screen

﹥>﹥吖頭↗ 提交于 2020-12-13 03:29:00
问题 I have a customActions class: public static ActionResult Register(Session session) { try { Do SOmething } catch (Exception ex) when (ExceptionManager.catchGenericExcetion(ex)) { var responseMessage =ex.ResponseMessage; if (responseMessage.Contains("Maximum apps created")) { session.Log("maximum limit reached"); using Record record = new Record(0); record[0] = "This is an error!Max apps reached"; session.Message(InstallMessage.Error, record); } return ActionResult.Failure; } return

How to pre-set MSI SecureCustomProperties that are not defined in Properties to allow silent installation?

白昼怎懂夜的黑 提交于 2020-12-12 07:05:22
问题 An particular vendor's MSI is usually installed via an EXE wrapper, but I'm trying to deploy using silent installation via GPO. I am struggling to pre-set the SecureCustomProperties. The vendor documents UPPERCASE command-line options that can be passed to the EXE wrapper, which I assume passes them on to the MSI. Using Orca, I can see that the MSI's Property table contains SecureCustomProperties. This key's value is a semicolon-delimited, UPPERCASE list of all the documented parameters.

How to pre-set MSI SecureCustomProperties that are not defined in Properties to allow silent installation?

て烟熏妆下的殇ゞ 提交于 2020-12-12 07:03:58
问题 An particular vendor's MSI is usually installed via an EXE wrapper, but I'm trying to deploy using silent installation via GPO. I am struggling to pre-set the SecureCustomProperties. The vendor documents UPPERCASE command-line options that can be passed to the EXE wrapper, which I assume passes them on to the MSI. Using Orca, I can see that the MSI's Property table contains SecureCustomProperties. This key's value is a semicolon-delimited, UPPERCASE list of all the documented parameters.