There is no action called RollbackServiceConfig defined in WiX v3.0.3001.0.
There's an action declared in src\ext\UtilExtension\wixlib\UtilExtension.wxs
called ExecServiceConfigRollback which calls the same ExecServiceConfig
entry point as the ExecServiceConfig custom action, but it doesn't look to
me as if that code (in src\ca\wixca\dll\serviceconfig.cpp) can tell whether
it's being called on install or on rollback.

 

Most of the custom actions are named the same as the entry point that
implements them, so I would recommend changing line 136 of UtilExtension.wxs
to

 

<CustomAction Id="RollbackServiceConfig" BinaryKey="WixCA"
DllEntry="RollbackServiceConfig" Execute="rollback" Impersonate="no"
Return="check" SuppressModularization="yes" />

 

although this does not fit in with the naming scheme used in the rest of
UtilExtension.wxs. Doing it the other way, to match, you should change that
line to:

 

<CustomAction Id="ExecServiceConfigRollback" BinaryKey="WixCA"
DllEntry="ExecServiceConfigRollback" Execute="rollback" Impersonate="no"
Return="check" SuppressModularization="yes" />

 

then change the name of the entry point to ExecServiceConfigRollback at line
446, 474 and 475 of serviceconfig.cpp, and again in the code for
SchedServiceConfig at lines 186 and 187.

 

You will then need to rebuild a local copy of WiX to fix the problem. See
'Building WiX' in doc\WiX.chm for instructions on how to build the toolset.

 

WiX devs: that's twice now - SQL and ServiceConfig. Any other merges that
might have gone awry?

 

-- 

Mike Dimmick

 

  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of koawmfot
Sent: 05 June 2007 18:37
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] problem with serviceconfig

 

using v3.0.2911.0 i had no problem with the WixUtilExtension and
ServiceConfig element.  I just installed v3.0.3001.0 and now my msi dies
when it gets to SchedServiceConfig.  below is the relevent MSI log file
information: 

 

Action start 13:26:37: SchedServiceConfig.
MSI (s) (10!38) [13:26:37:715]: Doing action: RollbackServiceConfig
Action start 13:26:37: RollbackServiceConfig.
Action ended 13:26:37: RollbackServiceConfig. Return value 0. 
SchedServiceConfig:  Error 0x8007065a: Failed MsiDoAction on deferred action
SchedServiceConfig:  Error 0x8007065a: failed to schedule
RollbackServiceConfig action
MSI (s) (10:EC) [13:26:37:715]: Machine policy value 'DisableRollback' is 0 
MSI (s) (10:EC) [13:26:37:715]: Note: 1: 1402 2:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollb
ack\Scripts 3: 2 
Action ended 13:26:37: SchedServiceConfig. Return value 3.

 

I tried the different versions and recompiling the same code with any
version from v3.0.2921 and higher does not work.  Was something changed in
the newer version of WixUtilExtension.dll that broke it?

 

thanks

doug

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to