PDA

View Full Version : Setting Destination Location



NewsArchive
12-07-2001, 01:00 AM
Using 7.01, Standard project

I have a few files in this project that are also used by other products from
our company. The other products are installed with IS 6.12. (This is the
first project I've built in Dev 7.)

What I wanted to do was check the registry for these other products in my
script and obtain the path if the other products exist, then install the
components to the pre-existing path and mark them as "shared" in the new
Developer 7 project. I know I can set a property in my script with
MsiSetProperty, but how do I set the Destination Location of the component
to use the property?

Or should I be doing something else entirely?

Thanks.

Kathy

NewsArchive
12-07-2001, 01:00 AM
If you look at the destination for your component it will either be a
predefined folder like INSTALLDIR or it will be a custom folder like
{YOURFOLDER} [ProgramFilesFolder]YourFolder.

If the component destination is INSTALLDIR, then in your script you can just
set the system variable INSTALLDIR:

INSTALLDIR = szNewPath;

If it is a custom folder you can set the directory identifier (enclosed in
{}) with MsiSetTargetPath.

Regards
David Thornley

"Kathy Morey" <KMorey@SERmacrosoft.com> wrote in message
news:3c10f66e$1@news.installshield.com...
> Using 7.01, Standard project
>
> I have a few files in this project that are also used by other products
from
> our company. The other products are installed with IS 6.12. (This is the
> first project I've built in Dev 7.)
>
> What I wanted to do was check the registry for these other products in my
> script and obtain the path if the other products exist, then install the
> components to the pre-existing path and mark them as "shared" in the new
> Developer 7 project. I know I can set a property in my script with
> MsiSetProperty, but how do I set the Destination Location of the component
> to use the property?
>
> Or should I be doing something else entirely?
>
> Thanks.
>
> Kathy
>
>

NewsArchive
12-07-2001, 01:00 AM
Thanks, David.

Kathy

"David Thornley" <davidt@installshield.com> wrote in message
news:3c1108f8$1@news.installshield.com...
> If you look at the destination for your component it will either be a
> predefined folder like INSTALLDIR or it will be a custom folder like
> {YOURFOLDER} [ProgramFilesFolder]YourFolder.
>
> If the component destination is INSTALLDIR, then in your script you can
just
> set the system variable INSTALLDIR:
>
> INSTALLDIR = szNewPath;
>
> If it is a custom folder you can set the directory identifier (enclosed in
> {}) with MsiSetTargetPath.
>
> Regards
> David Thornley
>
> "Kathy Morey" <KMorey@SERmacrosoft.com> wrote in message
> news:3c10f66e$1@news.installshield.com...
> > Using 7.01, Standard project
> >
> > I have a few files in this project that are also used by other products
> from
> > our company. The other products are installed with IS 6.12. (This is
the
> > first project I've built in Dev 7.)
> >
> > What I wanted to do was check the registry for these other products in
my
> > script and obtain the path if the other products exist, then install the
> > components to the pre-existing path and mark them as "shared" in the new
> > Developer 7 project. I know I can set a property in my script with
> > MsiSetProperty, but how do I set the Destination Location of the
component
> > to use the property?
> >
> > Or should I be doing something else entirely?
> >
> > Thanks.
> >
> > Kathy
> >
> >
>
>