When I set the Publish value to 1, clicking on the next button does
nothing (it does the click animation but does not continue to the next
dialog). Why would this happen? Should I move the set property to its on
component?

 

________________________________

From: Aaron Shurts [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 22, 2007 6:06 PM
To: Mike Menaker
Cc: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Am I using a property and condition correctly

 

Ignore those extra spaces, I don't know where they came from.  :-P
<Publish Property= "ISWEBBOX" Value="TRUE" >1</Publish>

//aj

On 5/22/07, Aaron Shurts <[EMAIL PROTECTED]> wrote: 

The condition on your publish property event appears to be the problem.
If you always want this event to trigger than this text: 
<Publish Property= "ISWEBBOX" Value="TRUE" >TRUE</Publish> 
should read like this:
< Publish Property =" ISWEBBOX" Value=" TRUE">1</ Publish>

When you have just "TRUE" in there.  The installer isn't really checking
against anything so that condition will always evaluate to false.  "1"
means run this all the time. 

Regards,
//aj

On 5/22/07, Mike Menaker < [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote:

        

        Hi,

        I'm not sure what I'm doing wrong.

         

        When one feature is selected it will go to a certain dialog, in
this dialog I will always set a property to true. And later I will check
this property in a component.

         

        Here is what I have in the dialog:

                < Control Id =" Next" Type=" PushButton" X ="236" Y
="243" Width="56" Height="17" Default="yes" Disabled=" no" Text="
$(loc.WixUINext)">

                  < Publish Property =" ISWEBBOX" Value=" TRUE">TRUE</
Publish>

                  < Publish Event =" NewDialog" Value="
[WixUI_WEBConfigToReadyToInstall_Next]"></Publish >          

                </ Control> 

         

        And in the component:

                        < Component Id =' Comp1' Guid='
345c09f9-f760-4700-89da-12f1a1cbf08c' KeyPath ="yes" DiskId="1" > 

                            < Condition><![CDATA[ (ISWEBBOX =
'FALSE')]]></ Condition>                               

        ... (I cut out the stuff here, doesn't matter)

                        </ Component>

         

                        < Component Id =' Comp2' Guid='
0BBCE421-BC25-46cc-8A86-3F9EAEF4A839'>

                          < Condition><![CDATA[ (ISWEBBOX = 'TRUE')]]></
Condition>

                          < CreateFolder />

        ... (I cut out the stuff here, doesn't matter)

                        </Component >

        Any help would be much appreciated!

         

        Thanks,

        Mike

        
        
------------------------------------------------------------------------
-
        This SF.net email is sponsored by DB2 Express
        Download DB2 Express C - the FREE version of DB2 express and
take
        control of your XML. No limits. Just data. Click to get it now. 
        http://sourceforge.net/powerbar/db2/
        _______________________________________________
        WiX-users mailing list 
        WiX-users@lists.sourceforge.net
        https://lists.sourceforge.net/lists/listinfo/wix-users

 

 

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to