The short answer is that you can't do this at all in a VS setup because
there are no hooks for you to call code (like a custom action) from that
dialog, so you'd need to use Orca to add that to the UI *and* have the
separate DLL containing the custom action.
It seems rather odd to me that you're doing this. The user can choose an
arbritary folder to install into, so you have this odd situation because you
only seem to need this checking code if the user installs into a folder that
might have those files already there. It all seems completely
non-deterministic. What problem are you trying to solve?
--
Phil Wilson [MVP Windows Installer]
----
[quoted text, click to view] "bhin" <bobhin@att.net> wrote in message
news:N7Yhc.23371$um3.482820@bgtnsc04-news.ops.worldnet.att.net...
Hi,
I am trying to do something similar. I want to do the following:
1.. Each time the user clicks the Next> button on the Select Installation
Folder (FolderForm) dialog box
1.. Check for the existence of a file being installed by the msi into
the FolderPathEdit directory
2.. If file exists, display a confirmation dialog box with OK/No
controls
1.. User clicks OK --> continue
2.. User clicks No --> go back to FolderForm (do nothing)
3.. Otherwise, continue
Must this code be written in seperate .dll?
Thanks.
[quoted text, click to view] ""Will Buffington [MS 414076]"" <willbu@online.com> wrote in message
news:Wzuvk3lJEHA.3064@cpmsftngxa10.phx.gbl...
> Daniel,
>
> What you are asking for is kind of simple. If you used the Visual Studio
> Installer or VS.NET to create the MSI package you won't be able to
> accomplish what you're after from in there. You'll need to open the MSI
> file using ORCA, which can be obtained by downloading the Windows
Installer
> SDK from the Microsoft website. You will need to set the AppSearch action
> to search for the DLL and set a property based on whether it finds the
file
> or not.
>
> From the help - "AppSearch Action searches the user's system for file
> signatures specified in the AppSearch table. If the AppSearch action finds
> an installed file or directory with the specified signature, it sets a
> corresponding property, also specified in the AppSearch table, to the
> location of the file or directory. When searching for a file, the file
> signature must also be listed in the Signature table. If a file signature
> is listed in the AppSearch table and is not listed in the Signature table,
> the search looks for a directory, registry entry, or .ini file entry."
>
> If you download the Windows Installer SDK, you will find steps on doing
> this in the help under the topic called "Searching for Existing
> Applications, Files, Registry
> Entries or .ini File Entries".
>
> Will Buffington
> Microsoft Developer Support
>
>