msiexec

How to find the UpgradeCode and ProductCode of an installed application in Windows 7

╄→尐↘猪︶ㄣ 提交于 2019-11-26 18:49:27
I have an application installed on my machine. I also have its source code but somehow the ProductCode and UpgradeCode of this application were changed. Now I want to get the UpgradeCode and ProductCode of this installed application. I feel there must be some tool for this. Can anyone kindly let me know how to get the UpgradeCode and ProductCode of an installed application? IMPORTANT : It's been a while since this answer was originally posted, and smart people came up with wiser answers. Check How can I find the Upgrade Code for an installed MSI file? from @ Stein Åsmul if you need a solid and

Create an MSI log file

混江龙づ霸主 提交于 2019-11-26 18:48:23
I have been trying to create a log file for an issue with our installer with the following commands: msiexec /i "installer.msi" /l*v "log.log" msiexec /i "installer.msi" /l*v msiexec /l*v /i "installer.msi" msiexec /l*v "log.log" /i "installer.msi" and several other variations of the command, but it always pops up the window that states what command line parameters are valid for msiexec. What is the correct way to have the msi file create a log? I have windows installer 4.5. Alexey Ivanov The first and the last command lines are correct: msiexec /i "installer.msi" /l*v "log.log" msiexec /l*v

How to programmatically read the properties inside an MSI file?

半腔热情 提交于 2019-11-26 16:56:27
问题 Is there any way to read the properties inside the msi file? For example given a msi file name Testpackage.msi I need to find productName PackageCode version This I am going to use it with WMI uninstall string objPath = string.Format("Win32_Product.IdentifyingNumber='{0}',Name='{1}',Version='{2}'", "{AC9C1263-2BA8-4863-BE18-01232375CE42}", "testproduct", "10.0.0.0"); Update: Using Orca is a great option, if this can be achieved programatically, then I can use this to generate automatic

Why does MSI require the original .msi file to proceed with an uninstall?

我与影子孤独终老i 提交于 2019-11-26 16:28:31
As most of you probably noticed, when uninstalling an MSI package Windows will ask for the original .msi file. Why is that? I can only see disadvantages to that: not resilient to network changes. not resilient to local disk changes. unexpected by users. typically requires users to leave their desk and start a crusade to get the correct CD. kind of proves installations are not self-contained. promotes the use of unsafe tools such as msizap. which in turn promotes the "next time I'll just use a zip file" mentality. Could someone shed some light on this? Fix Broken Uninstall : You can try the

Wix Installer : Setting component condition property when doing a MSIEXEC admin install at command line

微笑、不失礼 提交于 2019-11-26 15:33:48
We have three types/flavours of our product, but only one MSI written in WiX. When we build the installer we pass in the flavour via a defined constant: Call MSBUILD.bat ..\MSIs\CoreProduct\OurProduct.sln /p:DefineConstants="FLAVOUR=%_Flavour%" and the constant is setup in Visual Studio, under Build -> Define preprocessor variables as FLAVOUR=50. The build process, passes in values 50, 200 or LITE as the flavour. In the WiX code we have loads of conditions on our components that tell it which file to install based on the flavour; eg <Component Id="cmp7F45920B1AA100729BAE37FC846B3FC5" Guid="*">

External handler for msiexec MsiSetExternalUI

情到浓时终转凉″ 提交于 2019-11-26 14:58:42
问题 Good morning, I am looking to achieve an external handler for msiexec, but not stopping msiexec from acting any different. I would like to be able to intercept all messages utilising the MsiSetExternalUI but still having the same responses and dialogs to the end user. My main aim is intercept where the cached source for msi are installed from and move them to another location. I have tried utilising logging utilise the logging registry key, but source location of packages can get deleted and

What is the best practice to auto upgrade MSI based application?

别来无恙 提交于 2019-11-26 11:38:33
问题 I am trying to find a standard Microsoft updater service which will update the application/services on customer machine automatically. Does any auto updater service like this exist? 回答1: As a follow up to Stein's answer. MSIX : This is still hot and most of your users probably never hear of it so my recommendation is to address it only for R&D purposes. Just to confirm Stein's answer, there is a support for auto-updates for MSIX/AppX packages. Actually the latest version of Advanced Installer

How to interactive a silently installing msi? (Progress data and cancel it)

依然范特西╮ 提交于 2019-11-26 11:29:17
问题 For some reason, we are delivering a product with our own install GUI, that means, we will run the msi installation silently background. By using the MSI API \"MsiInstallProduct\", I can install the product silently, but I have no idea how can I get the progress data of this installation and how can I cancel it. Anyone has some ideas? 回答1: Here is a sample project that appears to do what you are referring to: http://www.codeproject.com/KB/cs/msiinterop.aspx 回答2: UPDATE June 2018 : Although

Create an MSI log file

一个人想着一个人 提交于 2019-11-26 06:37:12
问题 I have been trying to create a log file for an issue with our installer with the following commands: msiexec /i \"installer.msi\" /l*v \"log.log\" msiexec /i \"installer.msi\" /l*v msiexec /l*v /i \"installer.msi\" msiexec /l*v \"log.log\" /i \"installer.msi\" and several other variations of the command, but it always pops up the window that states what command line parameters are valid for msiexec. What is the correct way to have the msi file create a log? I have windows installer 4.5. 回答1:

How to find the UpgradeCode and ProductCode of an installed application in Windows 7

我怕爱的太早我们不能终老 提交于 2019-11-26 06:36:35
问题 I have an application installed on my machine. I also have its source code but somehow the ProductCode and UpgradeCode of this application were changed. Now I want to get the UpgradeCode and ProductCode of this installed application. I feel there must be some tool for this. Can anyone kindly let me know how to get the UpgradeCode and ProductCode of an installed application? 回答1: IMPORTANT : It's been a while since this answer was originally posted, and smart people came up with wiser answers.