> From: Lian Jiang [mailto:lji...@microsoft.com] 
> Sent: Sunday, August 16, 2009 4:45 AM
> 
> I have a driver file mydriver.sys which will be installed to 
> c:\windows\system32. What I am doing is:
> 
> Step 1: install mydriver.sys to c:\program files\myapp;
> Step 2: a custom action install this driver file to 
> c:\windows\systems.

Have you looked at DIFxApp, the official way to install drivers using
Windows Installer and WiX?

> Therefore, after installation, mydriver.sys exists in two 
> locations mentioned above, which is confusing.

Why so? It's a normal thing to do. The laptop I'm using has about 50
.sys files under the 'program files' directory where they've been put a
part of the installation of various packages. The application
installations then went on to use these as the source files for the
driver installation steps which copied them into the system directory.

> I want to remove the one in c:\program files\myapp to clear 
> the confusion. Candidate solutions include:
> 
> Solution 1: make this file hidden in step 1.
> Solution 2: after Step 2, use a custom action to delete this 
> file under %PROGRAMFILES%.
> Solution 3: Do not install this file in Step 1 at all. 
> Instead, just extract it to the temporary file extraction 
> directory, and the driver installation custom action directly 
> installs this driver file from the temporary extraction 
> directory. After installation, this driver file is deleted 
> together with the temporary extraction directory.
> 
> To me solution 3 is cleaner than 1 and 2. But is it possible?

Yes.

> For example, is it possible to pack a file and extract it to 
> temporary directory but not install it? Is it possible to 
> access the temporary directory directly from a custom action?
> 
> I know solution 3 may go into the wild a little but am 
> interested having some discussion.

Why not just review the countless previous exhaustive discussions of
this subject on this list? The most recent pass through it that I'm
aware of was my message six days ago in the thread "How to treat support
files that do notgetinstalledontarget machine?"; it's been discussed
every few months for several years if that instance isn't adequate.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to