All of my Publish Event="DoAction" elements have some sort of inner
text, even if it is just a 1 (always run the action). Might be worth
trying it like that.

 

 

<Publish Event="DoAction" Value="RemoveUserData">1</Publish>

 

 

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of V K
Gangwar
Sent: Wednesday, October 03, 2007 8:47 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] CustomAction is not running..

 

Hi,

Could anybody help me to find out in the following code that why custom
action RemoveUserData is not running.

 <CustomAction Id="RemoveUserData" Execute="deferred"
Property="COMMANDEXE" ExeCommand='/C rmdir /S /Q
"[AppDataFolder]\[ProductName]"' Return="asyncNoWait"/> 


<Property Id="COMMANDEXE" Admin="no" Hidden="no" Secure="no">
      <DirectorySearch Id="CmdExe_DirSearch" Depth="3"
Path="c:\windows\system32">
        <FileSearch Id="CmdExe_FileSearch" Name="cmd.exe"/>
      </DirectorySearch>
</Property>


<Dialog Id="UserDataDlg" Width="270" Height="80" Title="[ProductName]"
NoMinimize="yes">
        <Control Id="NoButton" Type="PushButton" X="134" Y="50"
Width="58" Height="17" Text="{\VSI_MS_Sans_Serif13.0_0_0}&amp;No"
Default="no" Cancel="no" TabSkip="no">
          <Publish Event="EndDialog" Value="Return">1</Publish>
        </Control>
        <Control Id="YesButton" Type="PushButton" X="58" Y="50"
Width="58" Height="17" Text="{\VSI_MS_Sans_Serif13.0_0_0}&amp;Yes"
TabSkip="no">
          <Publish Event="EndDialog" Value="Return">1</Publish>
          <Publish Event="DoAction" Value="RemoveUserData"></Publish>
        </Control>
        <Control Id="Text" Type="Text" X="64" Y="15" Width="194"
Height="25">
          <Text>Do You want to Delete User Data?</Text>
        </Control>
        <Control Id="Icon" Type="Icon" X="15" Y="15" Width="24"
Height="24" FixedSize="yes" IconSize="32" ToolTip="Information Icon"
Text="[InfoIcon]"/>
</Dialog>

Thanks & Regards,
Veerendra

  

________________________________

Building a website is a piece of cake. 
Yahoo! Small Business gives you all the tools to get online.
<http://us.rd.yahoo.com/evt=48251/*http:/smallbusiness.yahoo.com/webhost
ing/?p=PASSPORTPLUS> 

-------------------------------------------------------------------------
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