Hi
maybe this question is not really new, but I haven't found an answer yet..
In my installation dialog, the user has to enter the path to a EXE. When
the user entered the value, I'd like to check, whether it really exists:
<Property Id="SEARCHFOREXE" >
<DirectorySearch Path="[PATHTOEXE]" Depth="0" Id="FindExe">
<FileSearch Name="MyApp.exe"/>
</DirectorySearch>
</Property>
.....
<Publish Dialog="PathsDlg" Control="Back" Event="NewDialog"
Value="InstallDirDlg">1</Publish>
<Publish Dialog="PathsDlg" Control="Next" Event="NewDialog"
Value="VerifyReadyDlg">1</Publish>
<Publish Dialog="PathsDlg" Control="Next" Event="SpawnDialog"
Value="RegAsmError">NOT SEARCHFOREXE</Publish>
......
<UI>
<Dialog Id="PathsDlg" Width="370" Height="270"
Title="[ProductName] !(loc.Setup_title)">
.......
<Control Id="Path1Label" Type="Text" X="20" Y="60" Width="290"
Height="13" Text="!(loc.PathsDlg_label1):" />
<Control Id="Path1" Type="Edit" X="20" Y="72" Width="320"
Height="18" Property="PATHTOEXE" Text="60"
ToolTip="!(loc.PathsDlg_path1Help)"/>
<Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370"
Height="0" />
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56"
Height="17" Default="yes" Text="!(loc.WixUINext)" />
<Control Id="Back" Type="PushButton" X="180" Y="243" Width="56"
Height="17" Text="!(loc.WixUIBack)" />
<Control Id="Cancel" Type="PushButton" X="304" Y="243"
Width="56" Height="17" Cancel="yes" Text="!(loc.WixUICancel)">
<Publish Event="SpawnDialog" Value="CancelDlg">1</Publish>
</Control>
</Dialog>
</UI>
No matter what I enter for PATHTOEXE, I always get the same result.
Obviously the property 'SEARCHFOREXE' is only evaluated once at compile
time.
Is there anybody out there, who can help me that?
Thx in advance
Mike
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users