For starters, the action must be scheduled between InstallInitialize and
InstallFinalize, and must be marked as Execute="deferred" with Impersonate
set to "no". Of course, at that point, the custom action does not have
direct access to the database or most session properties.

This smells like "self-registration". The recommendation is to look more
deeply into ways to make your driver registration more "transparent" in
order to use code that has been more deeply tested for upgrades, repairs,
rollbacks, removals, patching, etc.

-----Original Message-----
From: Thode, Katelyn [mailto:katelyn.th...@guidancesoftware.com] 
Sent: Friday, July 16, 2010 8:50 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Custom Action not running

I did look at DifxApp, but for this particular application, I feel it would
be best to use the application launched from the custom action being called
for reasons that I won't go into as they are specific to the particular
application.  Is there a way to give the custom action the necessary
privilege to install drivers?

-----Original Message-----
From: Blair [mailto:os...@live.com] 
Sent: Friday, July 16, 2010 10:40 AM
To: 'General discussion for Windows Installer XML toolset.'
Subject: Re: [WiX-users] Custom Action not running

Not sure what your logging problem would be, but I suspect that your custom
action does not have the necessary privilege to install drivers.

Have you looked at DifxApp?

-----Original Message-----
From: Thode, Katelyn [mailto:katelyn.th...@guidancesoftware.com] 
Sent: Friday, July 16, 2010 8:17 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Custom Action not running

I am in the process of testing my installer on different operating systems.
The installer was created using 32-bit XP.  Everything works as expected and
the Custom Action is run.  The exit dialog states that the application has
been installed.  When I try running the installer on 32-bit Vista, all the
components get installed, but the custom action is not run.  In this case,
the exit dialog states that the installation ended prematurely due to an
error.  I tried to enable logging, but no log files were created.  Any tips
as to how to correctly enable logging or as to what might be causing this
issue?

The following is my custom action code:
    <!-- Install Driver Using Custom Action -->
    <Binary Id="loadDriver" SourceFile="MyCustomAction.dll" />
    <CustomAction Id="LaunchFile"
                  BinaryKey="loadDriver"
                  DllEntry="wixTab1394" />

    <InstallExecuteSequence>
      <Custom Action="LaunchFile" After="InstallFinalize">NOT
Installed</Custom>
    </InstallExecuteSequence>

This DLL launches a program that installs device drivers.  As expected, on
32-bit XP, the device driver is installed, whereas on Vista the installation
exits before the custom action is run.

Thanks,
Katelyn

Note: The information contained in this message may be privileged and
confidential and thus protected from disclosure. If the reader of this
message is not the intended recipient, or an employee or agent responsible 
for delivering this message to the intended recipient, you are hereby
notified that any dissemination, distribution or copying of this
communication is strictly prohibited.  If you have received this
communication in error, please notify us immediately by replying to the 
message and deleting it from your computer.  Thank you.

----------------------------------------------------------------------------
--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


----------------------------------------------------------------------------
--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
Note: The information contained in this message may be privileged and
confidential and thus protected from disclosure. If the reader of this
message is not the intended recipient, or an employee or agent responsible 
for delivering this message to the intended recipient, you are hereby
notified that any dissemination, distribution or copying of this
communication is strictly prohibited.  If you have received this
communication in error, please notify us immediately by replying to the 
message and deleting it from your computer.  Thank you.


----------------------------------------------------------------------------
--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to