Hi. I have the following code:
<CustomAction Id='Register' FileKey='csdatabase2.exe' ExeCommand='/regserver' Execute='immediate' Return='check'/> <CustomAction Id='Unregister' FileKey='csdatabase2.exe' ExeCommand='/unregserver' Execute='immediate' Return='check'/> <InstallExecuteSequence> <Custom Action='Register' After='InstallFiles'>(ADDLOCAL="Feature_Default")</Custom> <Custom Action='Unregister' Before='RemoveFiles'>(REMOVE="ALL")</Custom> </InstallExecuteSequence> However, the FileKey above is defined in a nested Directory Element as seen below: <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="ProgramFilesFolder" Name='PFiles'> <Directory Id='TP' Name='Another Name'> <Directory Id='INSTALLDIR' Name='The Install Dir'> <Component Id='StaticBinaries' Guid='F9745D1D-C7A8-40d9-A9A9-15943EDB2DAF' Win64='no'> <File Id="csdatabase2.exe" Name="csdatabase2.exe" Source="$(var.PathToDistributable)\csdatabase2.exe" KeyPath="no"/> </Component> </Directory> </Directory> </Directory> </Directory> The custom Actions aren't firing off. Is there something wrong with my first group of code? Thanks, Greg Notice of Confidentiality This transmission contains information that may be confidential. It has been prepared for the sole and exclusive use of the intended recipient and on the basis agreed with that person. If you are not the intended recipient of the message (or authorized to receive it for the intended recipient), you should notify us immediately; you should delete it from your system and may not disclose its contents to anyone else. This e-mail has come to you from Towers Watson Delaware Inc. ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users