If your custom action is sequenced after InstallFinalize, then it should
be immediate.  The commit and deferred types can only be used between
InstallInitialize and InstallFinalize.

-Brian Simoneau

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tanikella,
Rajanikanth (SCR US)
Sent: Wednesday, August 08, 2007 6:36 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Registering an EXE via a Custom Action

Hello All,

I'm building an MSI using WiX3, and I'm encountering a problem:  I've a
custom action:

<CustomAction Id="EXEREG_PckgInstllr" FileKey="PckgInstllr.exe"
ExeCommand="/REGSERVER" Return="ignore" Execute="commit"
Impersonate="no" />

It is sequenced to be executed after 'InstallFinalize'.  (Actually, it
is sequenced before another custom action that is sequenced to run after
'InstallFinalize'.)

The problem I encounter is that once the installer is complete the log
indicates no error, but the installed application throws a 'class not
registered' error.  The registry contains no trace of the registered EXE
either.

If, however I execute 'PckgInstllr.exe /regserver' from a DOS prompt,
then the installed app works, and the registry key
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AppID\PckgInstllr.EXE\AppID is set
to its GUID.

I have tried setting the CustomAction's Execute attribute to 'deferred'
as well, but I get the same result.  Can anyone shed some light on this
for me?

Thanks.

Raj


Rajanikanth Tanikella 
Member of Technical Staff
Siemens Corporate Research
Email: rajanikanth dot tanikella at siemens dot com 


------------------------------------------------------------------------
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to