What you could also do, which isn't quite as "nice" is:
<Control Id="btnCancel" Type="PushButton" Width="50" Height="17" X="…" Y="…" 
Text="Cancel">
<Publish Event="EndDialog" Value="Exit" />
</Control>

(Notice the different Event and Value)
This doesn't ask the user for confirmation however which is why I said it's
not as "nice"


md5hans wrote:
> 
> Hi!
> 
> sorry, I should have done some more research before posting my question,
> when I linked Light with WixUIExtension it worked fine. The only strange
> thing is that the CancelDialog is placed in the upper middle part of the
> screen, does anybody now why?
> 
> /Hans
> 
> 
> md5hans wrote:
>> 
>> I'm trying to create a simple UI in WIX (3.0) and have run into trouble
>> at a very early state... I have a Dialog that is shown before the
>> installation starts and in that dialog I want a Cancel button that exits
>> the installation if the user press it (Really basic stuff, I feel a bit
>> stupid having to ask about this). I have looked at some examples and thay
>> are usually something like this:
>> 
>> <Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56"
>> Height="17" Cancel="yes" Text="Cancel">
>>   <Publish Event="SpawnDialog" Value="CancelDlg">1</Publish>
>> </Control>
>> 
>> If the user presses the Cancel button a new (Modal) dialog is shown, the
>> CancelDlg dialog, is this dialog a predifined dialog? or must I define it
>> myself?
>> 
>> When I put the statement above in my wix configuration and try to compile
>> it I get an error from Light:
>> 
>> error LGHT0094 : Unresolved reference to symbol 'Dialog:EndDialog' in
>> section 'Product:{4668686C-CD5D-4344-96EF-577787F467A2}'
>> 
>> Do I have to "include" something when running Light?
>> 
>> Best regards Hans
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-cancel-an-installation-%28using-CancelDlg%29--tf4303433.html#a12251414
Sent from the wix-users mailing list archive at Nabble.com.


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