I'm working on an installer (originally based on the WixUI_InstallDir set),
where I have two "installation" dialogs.  The first is the normal
InstallDir dialog that requests where the installation is to be done.  That
works fine.  The second is a variant of that, where I want the user to be
able to enter the location of a Java installation directory, using the
Browse dialog, etc. and a PathEdit control.  The directory specified needs
to exist, but also needs to be modifiable on a Change install.  I store the
entered value in the registry.

The problem I run into:
* I'm setting the directory into a property JAVA_LOC, using SetTargetPath
action.
* The install linker fails with an error unless I declare a directory
component with id JAVA_LOC, so I do that.
* The first time I run the installer, the correct value for JAVA_LOC is
stored.
* The second time (for a Change install), I'm allowed to enter the value,
then the JAVA_LOC is marked as an ignored property in the log, and the
setting stored in the registry is the location of the JAVA_LOC directory
that I was forced to create in the directory tree.

Any idea how I can fix this so that either I don't validate the JAVA_LOC
path (but still do validate the initial install dir) or don't require that
I have a directory entry in the tree?  (I tried using the SetProperty
action, but that causes yet more problems because WixUIVAlidatePath runs.)

Thanks!
Dave
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to