PDA

View Full Version : Component Location



NewsArchive
12-07-2001, 01:00 AM
I am writing a merge module that I would like to do the following.

I am searching the target machine for the file names "file" with the
signature and appSearch and drlocator and I can find it. I set a property
BLABLA with the directory where the file found. I want to install a
component at the location BLABLA and not the default that I have set it. Is
there anyway to do this?

Second question is :

How can I detect the existence of more than one file on the target machine?
Like for example the file "FILE" is located at the "BLABLA" directory as
well as "BLABLABLA" directory. I want the component to installed to both
directories or even three or whatever. All of them.


Any ideas?

--



Best Regards

Yiannis Patrikiadis
yiannis@arion.gr

NewsArchive
12-07-2001, 01:00 AM
1) Have your app search set the component destination instead of some
intermediate property. Or use a set directory type custom action to set the
directory identifier to the value of the property you are creating.

2) If you want to find all files of the same name that exist on a machine
and replace them you would have to write custom code to do that.
InstallScript has a FindAllFiles and XCopyFile function that would be
perfectly suited to doing something like this. Let us know how it goes.

Regards
David Thornley

"Arion Software" <yiannis@arion.gr> wrote in message
news:3c10f6b8@news.installshield.com...
> I am writing a merge module that I would like to do the following.
>
> I am searching the target machine for the file names "file" with the
> signature and appSearch and drlocator and I can find it. I set a property
> BLABLA with the directory where the file found. I want to install a
> component at the location BLABLA and not the default that I have set it.
Is
> there anyway to do this?
>
> Second question is :
>
> How can I detect the existence of more than one file on the target
machine?
> Like for example the file "FILE" is located at the "BLABLA" directory as
> well as "BLABLABLA" directory. I want the component to installed to both
> directories or even three or whatever. All of them.
>
>
> Any ideas?
>
> --
>
>
>
> Best Regards
>
> Yiannis Patrikiadis
> yiannis@arion.gr
>
>
>
>
>
>
>
>

NewsArchive
12-07-2001, 01:00 AM
What should I write at the Destination row?
It says at the moment [SystemFolder].

If I change the location with the custom action setting a property
[MYFOLDER] which is not defined in the target machine configuration how can
I set this property to the location of the component? remember this property
have been set during installation where the other file is. Don't get
confused with the [SystemFolder] because it is not the exact value. It is
just an example.

--



Best Regards

Yiannis Patrikiadis
yiannis@arion.gr






"David Thornley" <davidt@installshield.com> wrote in message
news:3c110a9a$1@news.installshield.com...
> 1) Have your app search set the component destination instead of some
> intermediate property. Or use a set directory type custom action to set
the
> directory identifier to the value of the property you are creating.
>
> 2) If you want to find all files of the same name that exist on a machine
> and replace them you would have to write custom code to do that.
> InstallScript has a FindAllFiles and XCopyFile function that would be
> perfectly suited to doing something like this. Let us know how it goes.
>
> Regards
> David Thornley
>
> "Arion Software" <yiannis@arion.gr> wrote in message
> news:3c10f6b8@news.installshield.com...
> > I am writing a merge module that I would like to do the following.
> >
> > I am searching the target machine for the file names "file" with the
> > signature and appSearch and drlocator and I can find it. I set a
property
> > BLABLA with the directory where the file found. I want to install a
> > component at the location BLABLA and not the default that I have set it.
> Is
> > there anyway to do this?
> >
> > Second question is :
> >
> > How can I detect the existence of more than one file on the target
> machine?
> > Like for example the file "FILE" is located at the "BLABLA" directory as
> > well as "BLABLABLA" directory. I want the component to installed to both
> > directories or even three or whatever. All of them.
> >
> >
> > Any ideas?
> >
> > --
> >
> >
> >
> > Best Regards
> >
> > Yiannis Patrikiadis
> > yiannis@arion.gr
> >
> >
> >
> >
> >
> >
> >
> >
>
>