You could write a permanent registry entry containing the path that the user selected, then read the registry entry when the install is run again to find out where it was installed before.
-Brian Simoneau -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Arnette, Bill Sent: Tuesday, July 31, 2007 10:50 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] AppSearch during UI We are trying to mitigate an admittedly pathological case during installation. 1. User installs application to other than default directory. The installation installs a permanent, never-overwrite configuration file which (among other things) specifies a file store [1] path which is specified by the user during installation via a dialog. [2] 2. User later uninstalls the application. Because the configuration file is permanent, it is not deleted. 3. User installs the application again and specifies the same installation location as the last time it was installed. But this time, since the configuration file exists, I don't want to show the UI that allows them to specify the file store location and I want to use the old configuration file (which never-overwrite already takes care of). The problem is, I can do the AppSearch before the UI to locate the configuration file in the default installation directory. But if the user changes the installation directory, how do I determine if the configuration file exists in that new path in order to skip the file store configuration UI? The only thing that comes to mind is to write an AppSearch-like CA that looks for the file in the new path. Is there an easier way? [1] The file store is the place where large media files are stored outside of the XML "database". [2] I hear you! The installer should not do configuration. BUT, the application also allows optional installation of sample data. That sample data needs to go in the file store which is specified in the configuration file. So there needs to be some level of configuration in the installer. -- Bill Arnette Principal Software Developer StarWitness Business Unit Signalscape, Inc. www.starwitness.com ------------------------------------------------------------------------ - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users