Unless you know for sure that aspnet_regiis.exe will return a zero exit code 
you should change your custom action type to ignore exit code. 

Phil Wilson 


-----Original Message-----
From: Shree Krishnamurthi [mailto:shree.krishnamur...@proximex.com] 
Sent: Wednesday, June 10, 2009 2:10 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Executing Command line using cusotm actions

Hi 

I am trying to execute command line using custom actions and it seems to
error out with Error 1721

Here is what I am doing: 
<CustomAction Id='RegASPAction' Win64='no' Property='NET20'
                                ExeCommand='[NET20]aspnet_regiis.exe
-i'
                                Execute='deferred' Return='check' />

I have also tried 
Property='[NET20]' ExeCommand='aspnet_regiis.exe  -i'
Property='NET20' ExeCommand='aspnet_regiis.exe  -i'
Property='[NET20]' ExeCommand='[NET20]aspnet_regiis.exe  -i'

I am not sure what I am doing is incorrect here. 
And the log : 

MSI (s) (48:54) [14:01:02:422]: Executing op:
ActionStart(Name=RegASPAction.85485D07_9603_46EE_9AD0_3D6B6942FDBB,,)
MSI (s) (48:54) [14:01:02:422]: Executing op:
CustomActionSchedule(Action=RegASPAction.85485D07_9603_46EE_9AD0_3D6B694
2FDBB,ActionType=1074,Source=C:\WINDOWS\Microsoft.NET\Framework\v2.0.507
27\,Target=C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.e
xe  -i,)
MSI (s) (48:54) [14:01:02:422]: Note: 1: 1721 2:
RegASPAction.85485D07_9603_46EE_9AD0_3D6B6942FDBB 3:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ 4:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe  -i 
MSI (s) (48:54) [14:01:19:984]: Product: Proximex Surveillint Master
Setup -- Error 1721. There is a problem with this Windows Installer
package. A program required for this install to complete could not be
run. Contact your support personnel or package vendor. Action:
RegASPAction.85485D07_9603_46EE_9AD0_3D6B6942FDBB, location:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\, command:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe  -i

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to