Dear All,

I want to create installer for my application which check existence of a
database file located somewhere. If it found the file, it should ask the
user whether to replace it or not.

Till now I have succeed in checking and launching a custom dialog as
mentioned above. I have provided buttons 'Yes' and 'No'.

If user clicks on 'Yes', I want a public property to be set to "1" and if
user clicks on 'No' it should set to "0" without disturbing further
installation process.

Here is my code


        <Property
            Id="INSTALL_FILE"
            Value="xxx"/>

        <UI>
            <Dialog Id="FILE_Dialog" Width="370" Height="270"
Title="[ProductName]" NoMinimize="yes">
                <Control Id="Description" Type="Text" X="25" Y="23"
Width="280" Height="15" Transparent="yes" NoPrefix="yes">
                    <Text>The Setup has found database instance on your
system. Do you want to remove it...</Text>
                 </Control>
                <Control Id="yes" Type="PushButton" X="304" Y="243"
Width="56" Height="17" Default="yes" Text="Yes">
                    <Publish Event="EndDialog" Value="Return" >
                                      INSTALL_FILE="1 "
                             <===================
                    </Publish>
                </Control>
                <Control Id="no" Type="PushButton" X="240" Y="243"
Width="56" Height="17" Default="yes" Text="No">
                    <Publish Event="EndDialog" Value="Return" >

INSTALL_FILE="0"
<===================
                    </Publish>
                </Control>
            </Dialog>
        </UI>

        <InstallUISequence>
            <Show Dialog="FILE_Dialog" Before="ExecuteAction"> <![CDATA[
FILE_EXIST ]]> </Show>
        </InstallUISequence>


I am getting stucked at arrow pointed lines.

The property 'INSTALL_FILE' is not getting set here.

Basically what I want to do is storing this property value in registry and
then take appropriate action while running my application exe.

Thanks Pally Sandher sir/mam for regularly giving suggestions and thanks to
all for making so efforts.

Anyone having ideas???

Regards,

Ron
------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to