Hi all,

We have an urgent issue.

We install some 3rd party files. After installing, we need to run its 
registration program. It's something like this:
adxreg.exe /install=myapp.dll

The problem is, this 3rd party adxreg.exe command doesn't support path. So this 
doesn't work:
"C:\Program Files\Common Files\MyApp\adxreg.exe" /install="C:\Program 
Files\Common Files\MyApp\myapp.dll"

We have to change directory to "C:\Program Files\Common Files\MyApp\" first and 
then run "adxreg.exe /install=myapp.dll". How to do it in Wix?

Here is my code:
<Component Id='Component_Adxregistrator' Guid='*'>
<File Id='AdxRegistrator' Name='adxreg.exe' Source='adxregistrator.exe' 
KeyPath="yes" Checksum="yes" />
</Component>

<CustomAction Id="DoDllRegistration"
FileKey="AdxRegistrator"
ExeCommand="/install=MyApp.dll /privileges=admin"
Execute="deferred"
Return="ignore"
HideTarget="no"
Impersonate="no" />

<InstallExecuteSequence>
<Custom Action="DoDllRegistration" Before="InstallFinalize" >Not 
Installed</Custom>
</InstallExecuteSequence>



Here is log:
Action 12:58:52: DoDllRegistration. 
MSI (s) (68:24) [12:58:52:669]: Executing op: 
CustomActionSchedule(Action=DoDllRegistration,ActionType=3154,Source=C:\Program 
Files\Common Files\MyApp\adxreg.exe,Target=/install=MyApp.dll 
/privileges=admin,)
MSI (s) (68:24) [12:58:53:403]: Executing op: 
End(Checksum=0,ProgressTotalHDWord=0,ProgressTotalLDWord=62406035)
MSI (s) (68:24) [12:58:53:419]: User policy value 'DisableRollback' is 0
MSI (s) (68:24) [12:58:53:419]: Machine policy value 'DisableRollback' is 0
Action 12:58:53: RollbackCleanup. Removing backup files



Thanks.

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to