Brian, I agree and I even tried directly calling the shutdown command and it didn't work.
Maybe something like this <Publish Dialog="ExitDialog" Control="Finish">WIXUI_EXITDIALOGOPTIONALCHECKBOX = 0 and NOT INSTALLED</Publish> <Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="Do not Restart my computer now."/> <InstallExecuteSequence> <ScheduleReboot After='InstallFinalize'> NOT Installed and WIXUI_EXITDIALOGOPTIONALCHECKBOX = 0</ScheduleReboot> </InstallExecuteSequence> Is this how I have to do? Arun Perregattur -----Original Message----- From: Brian Rogers [mailto:rogers.br...@gmail.com] Sent: Thursday, February 26, 2009 8:16 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Custom Action on Finish Dialog Hey Arun, In addition to what John mentioned, you create an having a batch file that calls "shutdown" which is not hard rooted. If the user's path points to some other named shutdown.exe your action will fail. I know it sounds unlikely, but it happens. Second, if my memory is correct, once the Finish dialog is prompted the transaction has finished and you no longer have a handle to the MSI. Therefore a property reference, such as [#fileid] will not resolve. You can test this by setting a text box on the finish dialog and seeing if that property has a value. Thanks, Brian Rogers "Intelligence removes complexity." - Me http://icumove.spaces.live.com On Thu, Feb 26, 2009 at 12:25 PM, John Lalande <johnlala...@gmail.com>wrote: > You should really just use ScheduleReboot and condition it on your > checkbox. > > See the Wix help file for more details. > > > ------------------------------------------------------------------------------ > 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 > ------------------------------------------------------------------------------ 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 ------------------------------------------------------------------------------ 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