|
Hello,
I guess it is not really a problem for
old Windows Installer guys, but I'm a newbie at Windows Installer and WiX,.
How can I set the INSTALLDIR-Property?
The Online Tutorial means, that Property
has been set by buidling the directory structure, starting with the virtual
TARGETDIR, like this:
<Directory
Id='TARGETDIR'
Name='SourceDir'>
<Directory
Id='ProgramFilesFolder'
Name='PFiles'>
<Directory
Id='FIRMA'
Name='MyFactory'>
<Directory
Id='INSTALLDIR'
Name='Product''>
....
</Directory>
</Directory>
</Directory>
</Directory>
Later during the installaion process,
i wanted to reference to that directory, by showing the suggested path:
<Control
Id="Location"
Type="Text"
X="57"
Y="65"
Width="240"
Height="40"
Property="_BrowseProperty">
<Text>[INSTALLDIR]</Text>
</Control>
And a button to change
the directory:
<Control Id="ChangeFolder"
Type="PushButton" X="301" Y="65" Width="66"
Height="17">
<Text><![CDATA[{&Tahoma8}&Change...]]></Text>
<Publish
Event="SpawnDialog" Value="InstallChangeFolder">1</Publish>
<Publish
Property="_BrowseProperty" Value="INSTALLDIR">1</Publish>
</Control>
But my problem is, that the first
Control-text-Element didn't work, so all following dialogs either. I don't
know how to set the main INSTALLDIR.
I know that this is a kidding question
and at the week-end i'm going to read a Windows Installer book, to improve
my knowledge, but now, it would be a very useful help, to get a answer
to my question.
So long, thanks,
Florian Wendland
|