What's wrong?  You're DPInst.  Use DIFxApp, not DPInst.  DIFxApp was
designed for MSI; you're trying to fit a square peg into a round hole using
DPInst.

For example, have you considered whether your MSI works correctly in a
rollback situation?  Uninstall?  Repair?  Situations where the user
interface has limited permissions?  Other edge cases I'm not thinking of?
Etc. etc.  The DIFxApp programmers already figured this stuff out for you
and tested it.  Failing to address this stuff could make your package a
future sysadmin's nightmare.

The 32/64-bit issue, while inconvenient, exists with DPInst anyway if I
remember right.  It's possible to generate both 32-bit and 64-bit MSIs from
the same WiX source code with DIFxApp.  This is the correct way to do driver
installation with MSI.

> -----Original Message-----
> From: Branko Horvat [mailto:horvat.bra...@pieps.com]
> Sent: Tuesday, January 08, 2013 11:20
> To: wix-users@lists.sourceforge.net
> Subject: [WiX-users] Installing a driver in Win 7
> 
> I'm trying to make an installer using DPInst.exe as a CustomAction.
Although
> there are some solutions provided, it fails.
> I can install the driver using rightclick on .inf and Install. I can even
use
> manually DPInst.exe on installed folder.
> 
> When I use Notepad.exe instead of DPInst.exe it works. Although
> DPInst.exe is inlcuded in the installed folder as DPInst64.exe. I can even
> achieve that Notepad opens our .inf file (provide parameter).
> 
> The result of installing our .msi is the entry in ARP. In Device Manager
the
> device is not properly installed.
> Seeing .log shows an error in using quiet mode, or nothing. My notion was,
> the path is somehow wrong.
> So, I tried to add "/path parameter" but still failed.
> 
> I know I can try finally using <difx:Driver ...> but I still try using
DPInst.exe to
> avoid taking care of
> 32- or 64-bits. Do you have any idea what could be wrong?
> 
> These is my fragment of trials on "custom actions":
> 
> <Property Id="QtExec64CmdLine" Value="&quot;DPInst64.exe&quot;"/>
> <CustomAction Id="LaunchPiepsCdc64" BinaryKey="WixCA"
> DllEntry="CAQuietExec64"
> Execute="immediate" Return="check"/>
> 
> The log says:
> CAQuietExec64:  Error 0x80070002: Command failed to execute.
> CAQuietExec64:  Error 0x80070002: CAQuietExec64 Failed
> 
> Or
> 
> <Property Id='Exec64DPInst'>DPInst64.exe</Property>
> <CustomAction Id='LaunchPiepsCdc64' Property='Exec64DPInst'
> ExeCommand='' Return='asyncNoWait' />
> 
> There is no error but neither proper installation.
> 
> <Property Id='NotepadEXE'>Notepad.exe</Property>
> <CustomAction Id='LaunchPiepsCdc64' Property='NotepadEXE'
> ExeCommand='[SourceDir]piepscdc.inf' Return='asyncNoWait' />
> 
> Here I had to provide path [SourceDir] or target
> [INSTALLDIR]\subfolder\some.inf ...
> 
> <InstallExecuteSequence>
>                 <Custom Action='LaunchPiepsCdc32'
After='InstallFinalize'>NOT
> VersionNT64</Custom>
>                 <Custom Action='LaunchPiepsCdc64'
> After='InstallFinalize'>VersionNT64</Custom>
> </InstallExecuteSequence>
>
----------------------------------------------------------------------------
--
> Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS and
> more. Get SQL Server skills now (including 2012) with LearnDevNow -
> 200+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
> SALE $99.99 this month only - learn more at:
> http://p.sf.net/sfu/learnmore_122512
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
and more. Get SQL Server skills now (including 2012) with LearnDevNow -
200+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only - learn more at:
http://p.sf.net/sfu/learnmore_122512
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to