Shouldn't this: <CustomAction Id="Install_Driver" Execute="deferred" Directory="InstallDir" ExeCommand=""[InstallDir]DPInst.exe" /PATH "[InstallDir]" Return="ignore" />
Read as: <CustomAction Id="Install_Driver" Execute="deferred" Directory="InstallDir" ExeCommand=""[InstallDir]DPInst.exe" /PATH "[InstallDir]"" Return="ignore" /> Remove the Return="ignore" until you have it working right. You should also have a rollback. -- John Merryweather Cooper Senior Software Engineer | Integration Development Group | Enterprise Notification Service Jack Henry & Associates, Inc.® | Lenexa, KS 66214 | Ext: 431050 |jocoo...@jackhenry.com -----Original Message----- From: Brett Cunningham [mailto:bret...@gmail.com] Sent: Monday, June 1, 2015 2:46 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Driver Install with Wix The e-mail below is from an external source. Please do not open attachments or click links from an unknown or suspicious origin. When running "dpinst /C /PATH .", the driver is loaded and confirmed with issuing "fltmc". I built the MSI using WiX Editor with no errors. Running the MSI, the driver is not loaded, not placed into system32\drivers. The installation finishes with no errors. The WXS file is as below. Any help is greatly appreciated! <?xml version="1.0" encoding="utf-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <Product Id="C7D88685-E2CE-41C1-B15D-E4EC64FA3564" Name="Hipara" Language="1033" Version="0.0.0.1" Manufacturer="Allsum, LLC" UpgradeCode="502D54B1-F5F7-4256-9C38-E111A423EA06"> <Package Description="Test file in a Product" Comments="Simple test" InstallerVersion="200" Compressed="yes" /> <Media Id="1" Cabinet="simple.cab" EmbedCab="yes" /> <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="ProgramFilesFolder"> <Directory Id="InstallDir" Name="Hipara"> <Component Id="DPInst" Guid="DCAC9BB2-2422-40C7-94A7-8957D6FD2E61"> <File Id="DPInstaller" Name="DPInst.exe" Source=".\Files\DPInst.exe" /> </Component> <Component Id="HIPARA.EXE" DiskId="1" Guid="AB389937-378A-4D4F-90F2-5E26312E944C"> <File Id="HIPARA.EXE" Name="hipara.exe" Source=".\Files\hipara.exe" /> <!-- <Shortcut Id="desktopShortcut" Directory="DesktopFolder" Name="Hipara" WorkingDirectory="INSTALLDIR" Advertise="no" Icon="DesktopIcon.exe" IconIndex="0" /> <Shortcut Id="ExeShortcut" Directory="ProgramMenuDir" Name="Hipara" WorkingDirectory="INSTALLDIR" Advertise="no" Icon="StartMenuIcon.exe" IconIndex="0" /> --> </Component> <Component Id="JANSSON32.DLL" DiskId="1" Guid="1FFCCF56-6C6F-4A09-8A13-99638BD5CC04"> <File Id="JANSSON32.DLL" Name="jansson32.dll" Source=".\Files\jansson32.dll" /> </Component> <Component Id="LIBCURL.DLL" DiskId="1" Guid="A5923935-0226-4B74-A66C-200E4CC5E8E8"> <File Id="LIBCURL.DLL" Name="libcurl.dll" Source=".\Files\libcurl.dll" /> </Component> <Component Id="Signed_driver" DiskId="1" Guid="C20F1081-5B58-488B-A7C0-8395F752BA9F"> <File Id="SCANNER.INF" Name="scanner.inf" DiskId="1" Source=".\Files\scanner.inf" /> <File Id="SCANNER.CAT" Name="scanner.cat" DiskId="1" Source=".\Files\scanner.cat" /> <File Id="SCANNER.SYS" Name="scanner.sys" DiskId="1" Source=".\Files\scanner.sys" /> <File Id="SCANNER_TEST.CER" Name="scanner_test.cer" DiskId="1" Source=".\Files\scanner_test.cer" /> </Component> </Directory> </Directory> <Directory Id="DesktopFolder" /> <Directory Id="ProgramMenuFolder"> <Directory Id="ProgramMenuDir"> <Component Id="StartMenuShortcuts" Guid="ECBB0886-9BE4-4C5B-8380-300352C12047"> <RemoveFolder Id="ProgramMenuDir" On="uninstall" /> <RegistryValue Root="HKCU" Key="Software\[Manufacturer]\[ProductName]" Type="string" Value="" /> </Component> </Directory> </Directory> </Directory> <Feature Id="MainApplication" Title="Main Feature" Level="1"> <ComponentRef Id="DPInst" /> <ComponentRef Id="HIPARA.EXE" /> <ComponentRef Id="JANSSON32.DLL" /> <ComponentRef Id="LIBCURL.DLL" /> <ComponentRef Id="Signed_driver" /> <ComponentRef Id="StartMenuShortcuts" /> </Feature> <CustomAction Id="Install_Driver" Execute="deferred" Directory="InstallDir" ExeCommand=""[InstallDir]DPInst.exe" /PATH "[InstallDir]" Return="ignore" /> <CustomAction Id="Uninstall_Driver" Directory="InstallDir" ExeCommand=""[InstallDir]DPInst.exe" /U "[InstallDir]scanner.inf" /D" Return="ignore" /> <InstallExecuteSequence> <Custom Action="Install_Driver" After="InstallFiles">NOT Installed</Custom> <Custom Action="Uninstall_Driver" After="RemoveRegistryValues">Installed</Custom> </InstallExecuteSequence> <UIRef Id="WixUI_Minimal" /> <!-- <UI /> <UIRef Id="WixUI_Minimal" /> <Icon Id="DesktopIcon.exe" SourceFile="..\Desktop\hipara\scanner\hipara.exe" /> <Icon Id="StartMenuIcon.exe" SourceFile="..\Desktop\hipara\scanner\hipara.exe" /> --> <UI /> </Product> </Wix> ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users NOTICE: This electronic mail message and any files transmitted with it are intended exclusively for the individual or entity to which it is addressed. The message, together with any attachment, may contain confidential and/or privileged information. Any unauthorized review, use, printing, saving, copying, disclosure or distribution is strictly prohibited. If you have received this message in error, please immediately advise the sender by reply email and delete all copies. ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users