msiexec

Running MSIEXEC in a NSIS script with installer switches

时光总嘲笑我的痴心妄想 提交于 2019-12-25 00:09:11
问题 I'm trying to build an NSIS installer and package it with necessary drivers (MSI files from the vendor). Eventually, I'd like to install these drivers silently in the backgroud. However, I cannot seem to get it working properly. In my NSIS script, I have the following: ExecWait 'msiexec /i "$INSTDIR\Flash.msi INSTALLDIR="$INSTDIR\Drivers\Flash""' It seems to execute; if I remove the INSTALLDIR switch from the above snippet, it'll run the driver installation as expected. But when I leave it in

VS2015 Installer Projects - Adds Invalid Microsoft signature to MSIs

醉酒当歌 提交于 2019-12-24 11:42:39
问题 This Microsoft tool adds an INVALID Microsoft digital signature when you build an MSI. Anyone know of a simple way to stop the tool from adding the digital signature? Or an easy way to remove digital signature after the build? VS2015 Installer Projects link https://visualstudiogallery.msdn.microsoft.com/f1cc3f3e-c300-40a7-8797-c509fb8933b9 The MSI file works fine even with the bad signature. BUT, when someone tries to download the MSI with the Edge browser, it blocks the download and shows

Unable to uninstall program from WiX created MSI

假如想象 提交于 2019-12-24 06:45:42
问题 After installing osquery with an MSI made with WiXToolSet (Using the script provided by osquery), I tried uninstalling it which failed. Also it didn't show as a program in the appwiz. (Link to the script - https://github.com/osquery/osquery/blob/master/tools/deployment/make_windows_package.ps1) I've tried using both the MSI itself - osquery.msi /uninstall and the unsintall string - msiexec /I{'uninstallstring'} . I also tried repairing using the /fv option. The code the script used with WiX

Why are properties ignored on uninstallation, if they have not been set on installation?

倾然丶 夕夏残阳落幕 提交于 2019-12-22 12:46:12
问题 I have creeated an installer, which installs a database using the sqlstring element provided by the WixSqlExtension. Here is a sample of the code: <ComponentGroup Id="DatabaseCreation" Directory="INSTALLFOLDER"> <Component Id="CreateDatabase" Guid="SOMEGUID" KeyPath="yes"> <sql:SqlString Id="CreateDB" Sequence="1" ExecuteOnInstall="yes" ContinueOnError="no" SqlDb="MasterDB" SQL="DECLARE @dbname nvarchar(128) SET @dbname = N'{[SQLDATABASE]}' IF(NOT EXISTS (SELECT name FROM master.dbo

MsiGetShortcutTarget MSI LNK files return no component id

馋奶兔 提交于 2019-12-22 10:46:13
问题 I am trying to programmatically find the exe file that is run for a given MSI lnk file (advertised shortcut). I have used an approach similar to that shown in the answer to Is there a way to resolve a .lnk target that works for links that end up in c:\windows\installer?. This approach works fine for the majority of MSI lnk files. Unfortunately there are a minority of lnk files that run fine, but MsiGetShortcutTarget returns no component id. So the subsequent call to MsiGetComponentPath

Uninstalling a particular feature using msiexec

旧城冷巷雨未停 提交于 2019-12-22 04:48:13
问题 I installed an test application which has two features (FirstFeature & SecondFeature). I want to remove only one feature (SecondFeature) from the application. I tried using REMOVE property in command line. Here is the command used to remove SecondFeature. msiexec /x RemoveFeatures.msi REMOVE="SecondFeature" /L*V log.LOG But it is uninstalling the complete application. Log file shows that REMOVE=ALL is added by default. Here is the log file details. MSI (s) (24:B4) [17:39:05:231]: Command Line

Install multiple instances of an MSI with dynamic instance name

送分小仙女□ 提交于 2019-12-22 03:47:04
问题 Our product has an MSI installer (written in WiX) which basically copies some files into a folder c:\ourproduct and installs a windows service "ourwindowsservice". We'd like to add support for multiple instances of the service, and it should be possible to install/uninstall them independently of each other. Similar e.g. to SQL Server, each instance should have a name which can be passed to the MSI as a command line parameter. Example: instance "A" => copy files to "c:\ourproductA", install

WIX 3.8 msiexec.exe /quiet Error 1603

我的梦境 提交于 2019-12-22 00:23:21
问题 I am using WIX 3.8, Windows 8 Pro, Visual Studio 2013, and I am doing a Silent Installation. When I run with no /quiet arguments, Ir runs OK. But when I put "/quiet", nothin happend. There is some problems with /qn Arguments... Any other Arguments Runs OK. string arg = " SetupWIX.msi"; Process p = new Process(); p.StartInfo.FileName = "msiexec.exe"; p.StartInfo.CreateNoWindow = true; p.StartInfo.Arguments = "/i " + arg +" /quiet /l*v log.txt"; p.Start(); And it give error 3. MainEngineThread

WiX .NET Bootstrapper - Feature Selection

折月煮酒 提交于 2019-12-21 12:58:58
问题 We are trying to get a custom .NET Bootstrapper to selectively install features in an MSI package through our WiX installer. Having registered to the event PlanMsiFeature we thought that we would be able to access the features in our MSI and exclude certain features based upon preset conditions. The event, however, never appears to be invoked. Has anybody managed to use this event successfully? Many thanks. 回答1: We solved this issue. There were a couple of key items missing. 1) In the Bundle

MsiExec progress catch

半腔热情 提交于 2019-12-21 06:18:30
问题 I'm writing a small app to install some product and uninstall some other in silent mode. Every product has its MSI file and nothing else and my app manifest states that it should be run with admin privileges. It's pretty easy to run msiexec with proper arguments to accomplish my task (just a bunch of code) and everything is working fine. Anyway some package takes a lot of time to finish and on some old pc user is asking if something is still going on in background or it's hang. So is it