Re: [WiX-users] Custom Action Not Running In XP 32-Bit

2011-03-26 Thread Rob Mensching
I often use depends.exe if a CustomAction is failing to log anything (all
the WiX custom actions log specific errors on failure).
On Thu, Mar 24, 2011 at 8:30 AM, Liam Flanagan  wrote:

> Hello,
>
>
>
> I have a custom action function written in C that is called from a Wix MSI.
> This custom action runs successfully on Windows 7 (32-bit & 64-bit), Vista
> (32-bit & 64-bit) and Windows XP 64-bit however appears to simply not run
> on
> Windows XP 32-bit.
>
>
>
> The underlying issue here was that code within the dll for this custom
> action (not specifically code called or accessed from the entry point into
> the dll within the wix) referenced a call to the WinAPI RegDeleteKeyEx
> function which is unsupported in XP 32-bit.
>
>
>
> Now my question here is simply is there some way I could have been informed
> about why this dll wasn't loading let alone running from the install?
>
>
>
> For your information:
>
> . As this was a custom action that failed to load the installer
> continued happily without kicking up any fuss to the user
>
> . I ran the msi with /l*vx and I couldn't find anything within the
> log file that suggested the dll hadn't even been loaded, in fact you even
> get a message in the log file stating that the InstallIME (the wix) action
> ending with a return value of 1. See below an extract from the log for a
> install where the custom action failed to load:
>
>
>
> MSI (s) (2C:2C) [15:25:11:617]: Doing action: InstallIME
>
> Action 15:25:11: InstallIME.
>
> Action start 15:25:11: InstallIME.
>
> InstallIME:
>
> Action ended 15:25:11: InstallIME. Return value 1.
>
>
>
> . Just to remind you the problematic code that used RegDeleteKeyEx
> wasn't even called / referenced by InstallIME32 therefore it clearly just
> didn't want to load the dll at all
>
>
>
> In the end I managed to solve the issue through trial and error but I'm
> convinced there must be a more pragmatic (and hopefully quicker) approach,
> even if it is simply getting a warning that the custom action dll has not
> loaded.
>
>
>
> Thanks,
>
>
>
> Liam
>
>
> --
> Enable your software for Intel(R) Active Management Technology to meet the
> growing manageability and security demands of your customers. Businesses
> are taking advantage of Intel(R) vPro (TM) technology - will your software
> be a part of the solution? Download the Intel(R) Manageability Checker
> today! http://p.sf.net/sfu/intel-dev2devmar
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>


-- 
virtually, Rob Mensching - http://RobMensching.com LLC
--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Custom Action Not Running In XP 32-Bit

2011-03-24 Thread Liam Flanagan
Hello,

 

I have a custom action function written in C that is called from a Wix MSI.
This custom action runs successfully on Windows 7 (32-bit & 64-bit), Vista
(32-bit & 64-bit) and Windows XP 64-bit however appears to simply not run on
Windows XP 32-bit.

 

The underlying issue here was that code within the dll for this custom
action (not specifically code called or accessed from the entry point into
the dll within the wix) referenced a call to the WinAPI RegDeleteKeyEx
function which is unsupported in XP 32-bit.

 

Now my question here is simply is there some way I could have been informed
about why this dll wasn't loading let alone running from the install?

 

For your information:

. As this was a custom action that failed to load the installer
continued happily without kicking up any fuss to the user

. I ran the msi with /l*vx and I couldn't find anything within the
log file that suggested the dll hadn't even been loaded, in fact you even
get a message in the log file stating that the InstallIME (the wix) action
ending with a return value of 1. See below an extract from the log for a
install where the custom action failed to load:

 

MSI (s) (2C:2C) [15:25:11:617]: Doing action: InstallIME

Action 15:25:11: InstallIME. 

Action start 15:25:11: InstallIME.

InstallIME: 

Action ended 15:25:11: InstallIME. Return value 1.

 

. Just to remind you the problematic code that used RegDeleteKeyEx
wasn't even called / referenced by InstallIME32 therefore it clearly just
didn't want to load the dll at all

 

In the end I managed to solve the issue through trial and error but I'm
convinced there must be a more pragmatic (and hopefully quicker) approach,
even if it is simply getting a warning that the custom action dll has not
loaded.

 

Thanks,

 

Liam

--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Custom Action not running

2010-07-20 Thread Thode, Katelyn
Thank you so much for all of your help.  This took care of the problem and the 
custom action is now correctly running on both xp and vista.

-Original Message-
From: Blair Murri [mailto:os...@live.com]
Sent: Monday, July 19, 2010 6:35 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Custom Action not running


Deferred custom actions can only access the following "properties": 
CustomActionData, ProductCode, and UserSID, except for commit actions that 
cannot access ProductCode either.



You could add this:







and then change your MsiGetProperty calls to retrieve "CustomActionData" 
instead of INSTALLDIR.



.

> From: katelyn.th...@guidancesoftware.com
> To: wix-users@lists.sourceforge.net
> Date: Mon, 19 Jul 2010 16:35:02 -0400
> Subject: Re: [WiX-users] Custom Action not running
>
> The only access I make into the actual installation session in my custom 
> action is:
>
> UINT uiStat = MsiGetProperty(hInstall, _T("INSTALLDIR"), _T(""), &valueBuff);
>
> And
>
> uiStat = MsiGetProperty(hInstall, _T("INSTALLDIR"), szValueBuf, &valueBuff);
>
> Is a deferred action not allowed to access this?
>
>
>
> -Original Message-
> From: Blair [mailto:os...@live.com]
> Sent: Monday, July 19, 2010 3:26 PM
> To: 'General discussion for Windows Installer XML toolset.'
> Subject: Re: [WiX-users] Custom Action not running
>
> Then your custom action is likely attempting to access things in the
> session/database that deferred actions are not allowed to access (tables,
> most session properties, etc.).
>
> If the custom action's inputs are simple session property reads you can try
> creating a property called "LaunchFile" (named after your custom action)
> that contains all the data your custom action needs before your custom
> action is scheduled, and change your custom action to parse the data out of
> just the "CustomActionData" property (which will be the name you must use to
> access the property named after your custom action). Otherwise, you will
> need an initial custom action that is "immediate" that performs all of the
> database accesses and creates the property for the deferred action to use.
>
> -----Original Message-
> From: Thode, Katelyn [mailto:katelyn.th...@guidancesoftware.com]
> Sent: Monday, July 19, 2010 11:35 AM
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] Custom Action not running
>
> Thanks for the responses. I have set the custom action to the following:
>
> 
>  BinaryKey="loadDriver"
> DllEntry="wixTab1394"
> Impersonate="no"
> Execute="deferred"/>
>
> 
> NOT
> Installed
> 
>
>
> In Orca, in the CustomAction table, the type is 3073, which indicates that
> the custom action runs with no user impersonation at a scheduled point
> within the script. When I test the installer on vista, once the
> installation process reaches the custom action, it rollsback and the error
> dialog appears. Also, when I run the installer in xp, the custom action
> doesn't execute as it did with the previous custom action settings.
>
>
> -Original Message-
> From: Wilson, Phil [mailto:phil.wil...@invensys.com]
> Sent: Friday, July 16, 2010 3:48 PM
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] Custom Action not running
>
> The underlying issue is likely to be that UAC systems run impersonated
> custom actions without elevation, even if you are an administrator. ON XP
> your custom action would be running elevated with admin privs, but not on
> UAC, and that's why Blair is telling you how to make it elevated.
>
> Phil Wilson
>
> -Original Message-
> From: Blair [mailto:os...@live.com]
> Sent: Friday, July 16, 2010 10:28 AM
> To: 'General discussion for Windows Installer XML toolset.'
> Subject: Re: [WiX-users] Custom Action not running
>
> 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, 

Re: [WiX-users] Custom Action not running

2010-07-19 Thread Blair Murri

Deferred custom actions can only access the following "properties": 
CustomActionData, ProductCode, and UserSID, except for commit actions that 
cannot access ProductCode either.

 

You could add this:

 



 

and then change your MsiGetProperty calls to retrieve "CustomActionData" 
instead of INSTALLDIR.

 

.
 
> From: katelyn.th...@guidancesoftware.com
> To: wix-users@lists.sourceforge.net
> Date: Mon, 19 Jul 2010 16:35:02 -0400
> Subject: Re: [WiX-users] Custom Action not running
> 
> The only access I make into the actual installation session in my custom 
> action is:
> 
> UINT uiStat = MsiGetProperty(hInstall, _T("INSTALLDIR"), _T(""), &valueBuff);
> 
> And 
> 
> uiStat = MsiGetProperty(hInstall, _T("INSTALLDIR"), szValueBuf, &valueBuff);
> 
> Is a deferred action not allowed to access this? 
> 
> 
> 
> -Original Message-
> From: Blair [mailto:os...@live.com] 
> Sent: Monday, July 19, 2010 3:26 PM
> To: 'General discussion for Windows Installer XML toolset.'
> Subject: Re: [WiX-users] Custom Action not running
> 
> Then your custom action is likely attempting to access things in the
> session/database that deferred actions are not allowed to access (tables,
> most session properties, etc.).
> 
> If the custom action's inputs are simple session property reads you can try
> creating a property called "LaunchFile" (named after your custom action)
> that contains all the data your custom action needs before your custom
> action is scheduled, and change your custom action to parse the data out of
> just the "CustomActionData" property (which will be the name you must use to
> access the property named after your custom action). Otherwise, you will
> need an initial custom action that is "immediate" that performs all of the
> database accesses and creates the property for the deferred action to use.
> 
> -----Original Message-
> From: Thode, Katelyn [mailto:katelyn.th...@guidancesoftware.com] 
> Sent: Monday, July 19, 2010 11:35 AM
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] Custom Action not running
> 
> Thanks for the responses. I have set the custom action to the following:
> 
> 
>  BinaryKey="loadDriver"
> DllEntry="wixTab1394"
> Impersonate="no" 
> Execute="deferred"/>
> 
> 
> NOT
> Installed
> 
> 
> 
> In Orca, in the CustomAction table, the type is 3073, which indicates that
> the custom action runs with no user impersonation at a scheduled point
> within the script. When I test the installer on vista, once the
> installation process reaches the custom action, it rollsback and the error
> dialog appears. Also, when I run the installer in xp, the custom action
> doesn't execute as it did with the previous custom action settings. 
> 
> 
> -Original Message-
> From: Wilson, Phil [mailto:phil.wil...@invensys.com] 
> Sent: Friday, July 16, 2010 3:48 PM
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] Custom Action not running
> 
> The underlying issue is likely to be that UAC systems run impersonated
> custom actions without elevation, even if you are an administrator. ON XP
> your custom action would be running elevated with admin privs, but not on
> UAC, and that's why Blair is telling you how to make it elevated. 
> 
> Phil Wilson 
> 
> -Original Message-
> From: Blair [mailto:os...@live.com] 
> Sent: Friday, July 16, 2010 10:28 AM
> To: 'General discussion for Windows Installer XML toolset.'
> Subject: Re: [WiX-users] Custom Action not running
> 
> 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 cal

Re: [WiX-users] Custom Action not running

2010-07-19 Thread Thode, Katelyn
The only access I make into the actual installation session in my custom action 
is:

 UINT uiStat = MsiGetProperty(hInstall, _T("INSTALLDIR"), _T(""), &valueBuff);

And 

uiStat = MsiGetProperty(hInstall, _T("INSTALLDIR"), szValueBuf, &valueBuff);

Is a deferred action not allowed to access this?  



-Original Message-
From: Blair [mailto:os...@live.com] 
Sent: Monday, July 19, 2010 3:26 PM
To: 'General discussion for Windows Installer XML toolset.'
Subject: Re: [WiX-users] Custom Action not running

Then your custom action is likely attempting to access things in the
session/database that deferred actions are not allowed to access (tables,
most session properties, etc.).

If the custom action's inputs are simple session property reads you can try
creating a property called "LaunchFile" (named after your custom action)
that contains all the data your custom action needs before your custom
action is scheduled, and change your custom action to parse the data out of
just the "CustomActionData" property (which will be the name you must use to
access the property named after your custom action). Otherwise, you will
need an initial custom action that is "immediate" that performs all of the
database accesses and creates the property for the deferred action to use.

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

Thanks for the responses.  I have set the custom action to the following:





  NOT
Installed



In Orca, in the CustomAction table, the type is 3073, which indicates that
the custom action runs with no user impersonation at a scheduled point
within the script.  When I test the installer on vista, once the
installation process reaches the custom action, it rollsback and the error
dialog appears.  Also, when I run the installer in xp, the custom action
doesn't execute as it did with the previous custom action settings.


-Original Message-
From: Wilson, Phil [mailto:phil.wil...@invensys.com] 
Sent: Friday, July 16, 2010 3:48 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Custom Action not running

The underlying issue is likely to be that UAC systems run impersonated
custom actions without elevation, even if you are an administrator. ON XP
your custom action would be running elevated with admin privs, but not on
UAC, and that's why Blair is telling you how to make it elevated. 

Phil Wilson 

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

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 

Re: [WiX-users] Custom Action not running

2010-07-19 Thread Blair
Then your custom action is likely attempting to access things in the
session/database that deferred actions are not allowed to access (tables,
most session properties, etc.).

If the custom action's inputs are simple session property reads you can try
creating a property called "LaunchFile" (named after your custom action)
that contains all the data your custom action needs before your custom
action is scheduled, and change your custom action to parse the data out of
just the "CustomActionData" property (which will be the name you must use to
access the property named after your custom action). Otherwise, you will
need an initial custom action that is "immediate" that performs all of the
database accesses and creates the property for the deferred action to use.

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

Thanks for the responses.  I have set the custom action to the following:





  NOT
Installed



In Orca, in the CustomAction table, the type is 3073, which indicates that
the custom action runs with no user impersonation at a scheduled point
within the script.  When I test the installer on vista, once the
installation process reaches the custom action, it rollsback and the error
dialog appears.  Also, when I run the installer in xp, the custom action
doesn't execute as it did with the previous custom action settings.


-Original Message-
From: Wilson, Phil [mailto:phil.wil...@invensys.com] 
Sent: Friday, July 16, 2010 3:48 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Custom Action not running

The underlying issue is likely to be that UAC systems run impersonated
custom actions without elevation, even if you are an administrator. ON XP
your custom action would be running elevated with admin privs, but not on
UAC, and that's why Blair is telling you how to make it elevated. 

Phil Wilson 

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

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:





  NOT
Installed


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.

Re: [WiX-users] Custom Action not running

2010-07-19 Thread Thode, Katelyn
Thanks for the responses.  I have set the custom action to the following:





  NOT 
Installed



In Orca, in the CustomAction table, the type is 3073, which indicates that the 
custom action runs with no user impersonation at a scheduled point within the 
script.  When I test the installer on vista, once the installation process 
reaches the custom action, it rollsback and the error dialog appears.  Also, 
when I run the installer in xp, the custom action doesn't execute as it did 
with the previous custom action settings.


-Original Message-
From: Wilson, Phil [mailto:phil.wil...@invensys.com] 
Sent: Friday, July 16, 2010 3:48 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Custom Action not running

The underlying issue is likely to be that UAC systems run impersonated custom 
actions without elevation, even if you are an administrator. ON XP your custom 
action would be running elevated with admin privs, but not on UAC, and that's 
why Blair is telling you how to make it elevated. 

Phil Wilson 

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

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:





  NOT
Installed


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




Re: [WiX-users] Custom Action not running

2010-07-16 Thread Wilson, Phil
The underlying issue is likely to be that UAC systems run impersonated custom 
actions without elevation, even if you are an administrator. ON XP your custom 
action would be running elevated with admin privs, but not on UAC, and that's 
why Blair is telling you how to make it elevated. 

Phil Wilson 

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

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:





  NOT
Installed


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 

Re: [WiX-users] Custom Action not running

2010-07-16 Thread Blair
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:





  NOT
Installed


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


-

Re: [WiX-users] Custom Action not running

2010-07-16 Thread Thode, Katelyn
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:





  NOT
Installed


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


Re: [WiX-users] Custom Action not running

2010-07-16 Thread Blair
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:





  NOT
Installed


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


[WiX-users] Custom Action not running

2010-07-16 Thread Thode, Katelyn
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:





  NOT Installed


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