I am trying to execute this Custom action and its not working. I want the 
finish dialog to have a checkbox which says do not restart computer. If its 
unchecked(which is default) then restart the computer.
    <UI>
      <UIRef Id="WixUI_Mondo"/>
      <Publish Dialog="ExitDialog" Control="Finish" Event="DoAction" 
Value="RestartComputer">WIXUI_EXITDIALOGOPTIONALCHECKBOX = 0 and NOT 
INSTALLED</Publish>
  </UI>

    <Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="Do not Restart 
my computer now."/>
    <Property Id="WixShellExecTarget" Value="[#restart.bat]"/>
    <CustomAction Id="RestartComputer"
                    BinaryKey="WixCA"
                    DllEntry="WixShellExec"
                    Impersonate="yes"/>

I am executing a batch file which has these commands: shutdown -r -t 0

Please let me know what I am missing here.

Thanks,

Arun Perregattur

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to