PDA

View Full Version : "upgrade" install?



NewsArchive
01-21-1997, 01:00 AM
I recently got InstallShield Pro Express here and have been very pleased
with the results for new user installations. I was wondering if there
is a way to create a setup that performs an upgrade to a current users
system. I guess what is key is having an installation find the
application's directory (INSTALLDIR) on their drive.

Has anyone done this or know how or if it can be done at all? Any help
would be highly appreciated.

Timothy Appnel
tappnel@pseg.com

NewsArchive
01-30-1997, 01:00 AM
Timothy,

Express currently does not have the functionality to find the
value of <INSTALLDIR> from a previous installation. You would
have to create your own DLL to use some FileFind functions to
locate the directory from the previous installation. Once you
have found the path, you can have your DLL make this the value
of <INSTALLDIR> for your installation by calling strcpy() to
change the contents of the path as it was passed to your
function.

Rob

Timothy Appnel <tappnel@pseg.com> wrote in article
<32E54C33.161A@pseg.com>...
> I recently got InstallShield Pro Express here and have been very pleased
> with the results for new user installations. I was wondering if there
> is a way to create a setup that performs an upgrade to a current users
> system. I guess what is key is having an installation find the
> application's directory (INSTALLDIR) on their drive.
>
> Has anyone done this or know how or if it can be done at all? Any help
> would be highly appreciated.
>
> Timothy Appnel
> tappnel@pseg.com
>
>

NewsArchive
01-30-1997, 01:00 AM
Timothy,

Express currently does not have the functionality to find the
value of <INSTALLDIR> from a previous installation. You would
have to create your own DLL to use some FileFind functions to
locate the directory from the previous installation. Once you
have found the path, you can have your DLL make this the value
of <INSTALLDIR> for your installation by calling strcpy() to
change the contents of the path as it was passed to your
function.

Rob

Timothy Appnel <tappnel@pseg.com> wrote in article
<32E54C33.161A@pseg.com>...
> I recently got InstallShield Pro Express here and have been very pleased
> with the results for new user installations. I was wondering if there
> is a way to create a setup that performs an upgrade to a current users
> system. I guess what is key is having an installation find the
> application's directory (INSTALLDIR) on their drive.
>
> Has anyone done this or know how or if it can be done at all? Any help
> would be highly appreciated.
>
> Timothy Appnel
> tappnel@pseg.com
>
>

NewsArchive
02-01-1997, 01:00 AM
Rob wrote:
>
> Timothy,
>
> Express currently does not have the functionality to find the
> value of <INSTALLDIR> from a previous installation. You would
> have to create your own DLL to use some FileFind functions to
> locate the directory from the previous installation. Once you
> have found the path, you can have your DLL make this the value
> of <INSTALLDIR> for your installation by calling strcpy() to
> change the contents of the path as it was passed to your
> function.
>
> Rob

I did just that. And ISX gloriously ignores the fact that I did a strcpy
() over the szInst directory.
I fear ISX passes a copy of the strings to the extension DLL function,
not the actual address of the string used by ISX. Are you sure your
suggestion works?

FYI: I have ISXPro 1.1. I used the example in the KB which shows the
current source, support and install directories via a MessageBox call. I
then call strcpy () to override the third LPSTR parameter with a dummy
path (c:\temp\dummy). Return 1. And the next dialog box in ISX shows
still the original <INSTALLDIR> value of (e.g. c:\program files\company
name\product name) ignoring my changes.

I really need to get this to work!

Yvon

NewsArchive
02-01-1997, 01:00 AM
Rob wrote:
>
> Timothy,
>
> Express currently does not have the functionality to find the
> value of <INSTALLDIR> from a previous installation. You would
> have to create your own DLL to use some FileFind functions to
> locate the directory from the previous installation. Once you
> have found the path, you can have your DLL make this the value
> of <INSTALLDIR> for your installation by calling strcpy() to
> change the contents of the path as it was passed to your
> function.
>
> Rob

I did just that. And ISX gloriously ignores the fact that I did a strcpy
() over the szInst directory.
I fear ISX passes a copy of the strings to the extension DLL function,
not the actual address of the string used by ISX. Are you sure your
suggestion works?

FYI: I have ISXPro 1.1. I used the example in the KB which shows the
current source, support and install directories via a MessageBox call. I
then call strcpy () to override the third LPSTR parameter with a dummy
path (c:\temp\dummy). Return 1. And the next dialog box in ISX shows
still the original <INSTALLDIR> value of (e.g. c:\program files\company
name\product name) ignoring my changes.

I really need to get this to work!

Yvon

NewsArchive
06-15-1999, 12:00 AM
hi rob,

what if you have a isx 2.11 user, which does no dll programming,
'cause he write lisp software for autocad, but also needs that function
"find a author defined file and if found, use it as <installdir>"?
would be very, very important to me.


thanx
marty



Rob wrote:
>
> Timothy,
>
> Express currently does not have the functionality to find the
> value of <INSTALLDIR> from a previous installation. You would
> have to create your own DLL to use some FileFind functions to
> locate the directory from the previous installation. Once you
> have found the path, you can have your DLL make this the value
> of <INSTALLDIR> for your installation by calling strcpy() to
> change the contents of the path as it was passed to your
> function.
>
> Rob
>
> Timothy Appnel <tappnel@pseg.com> wrote in article
> <32E54C33.161A@pseg.com>...
> > I recently got InstallShield Pro Express here and have been very pleased
> > with the results for new user installations. I was wondering if there
> > is a way to create a setup that performs an upgrade to a current users
> > system. I guess what is key is having an installation find the
> > application's directory (INSTALLDIR) on their drive.
> >
> > Has anyone done this or know how or if it can be done at all? Any help
> > would be highly appreciated.
> >
> > Timothy Appnel
> > tappnel@pseg.com
> >
> >

--

-------------------------------------------------------------
Ing. Martin NIGG
eMail: mailto:niggNOSPAM@eunet.at
URL: http://members.eunet.at/nigg/
-------------------------------------------------------------
NMUtils v14.5-beta - 2D-Architekturapplikation fuer AutoCAD
Mitglied bei ADGE - AutoCAD Developers Group Europe
-------------------------------------------------------------
!!! Remove NOSPAM from my eMail adress !!!

NewsArchive
06-15-1999, 12:00 AM
hi rob,

what if you have a isx 2.11 user, which does no dll programming,
'cause he write lisp software for autocad, but also needs that function
"find a author defined file and if found, use it as <installdir>"?
would be very, very important to me.


thanx
marty



Rob wrote:
>
> Timothy,
>
> Express currently does not have the functionality to find the
> value of <INSTALLDIR> from a previous installation. You would
> have to create your own DLL to use some FileFind functions to
> locate the directory from the previous installation. Once you
> have found the path, you can have your DLL make this the value
> of <INSTALLDIR> for your installation by calling strcpy() to
> change the contents of the path as it was passed to your
> function.
>
> Rob
>
> Timothy Appnel <tappnel@pseg.com> wrote in article
> <32E54C33.161A@pseg.com>...
> > I recently got InstallShield Pro Express here and have been very pleased
> > with the results for new user installations. I was wondering if there
> > is a way to create a setup that performs an upgrade to a current users
> > system. I guess what is key is having an installation find the
> > application's directory (INSTALLDIR) on their drive.
> >
> > Has anyone done this or know how or if it can be done at all? Any help
> > would be highly appreciated.
> >
> > Timothy Appnel
> > tappnel@pseg.com
> >
> >

--

-------------------------------------------------------------
Ing. Martin NIGG
eMail: mailto:niggNOSPAM@eunet.at
URL: http://members.eunet.at/nigg/
-------------------------------------------------------------
NMUtils v14.5-beta - 2D-Architekturapplikation fuer AutoCAD
Mitglied bei ADGE - AutoCAD Developers Group Europe
-------------------------------------------------------------
!!! Remove NOSPAM from my eMail adress !!!

NewsArchive
06-18-1999, 12:00 AM
Marty,

I'm afraid that the functionality to switch the value of <installdir> to the
location of a file found while searching the system is simply not available
in InstallShield Express without using your own custom DLL. It can be done
using InstallShield Professional, but using IS Pro will require you to write
a script for your install instead of using the point-and-click interface of
Express.

I will forward this feature request to the Express program manager to be
considered for future releases.

Rob


Martl wrote in message <3766B9A1.29236459@eunet.at>...
>hi rob,
>
>what if you have a isx 2.11 user, which does no dll programming,
>'cause he write lisp software for autocad, but also needs that function
>"find a author defined file and if found, use it as <installdir>"?
>would be very, very important to me.
>
>
>thanx
>marty
>
>
>
>Rob wrote:
>>
>> Timothy,
>>
>> Express currently does not have the functionality to find the
>> value of <INSTALLDIR> from a previous installation. You would
>> have to create your own DLL to use some FileFind functions to
>> locate the directory from the previous installation. Once you
>> have found the path, you can have your DLL make this the value
>> of <INSTALLDIR> for your installation by calling strcpy() to
>> change the contents of the path as it was passed to your
>> function.
>>
>> Rob
>>
>> Timothy Appnel <tappnel@pseg.com> wrote in article
>> <32E54C33.161A@pseg.com>...
>> > I recently got InstallShield Pro Express here and have been very
pleased
>> > with the results for new user installations. I was wondering if there
>> > is a way to create a setup that performs an upgrade to a current users
>> > system. I guess what is key is having an installation find the
>> > application's directory (INSTALLDIR) on their drive.
>> >
>> > Has anyone done this or know how or if it can be done at all? Any help
>> > would be highly appreciated.
>> >
>> > Timothy Appnel
>> > tappnel@pseg.com
>> >
>> >
>
>--
>
>-------------------------------------------------------------
> Ing. Martin NIGG
> eMail: mailto:niggNOSPAM@eunet.at
> URL: http://members.eunet.at/nigg/
>-------------------------------------------------------------
> NMUtils v14.5-beta - 2D-Architekturapplikation fuer AutoCAD
> Mitglied bei ADGE - AutoCAD Developers Group Europe
>-------------------------------------------------------------
> !!! Remove NOSPAM from my eMail adress !!!

NewsArchive
06-18-1999, 12:00 AM
Marty,

I'm afraid that the functionality to switch the value of <installdir> to the
location of a file found while searching the system is simply not available
in InstallShield Express without using your own custom DLL. It can be done
using InstallShield Professional, but using IS Pro will require you to write
a script for your install instead of using the point-and-click interface of
Express.

I will forward this feature request to the Express program manager to be
considered for future releases.

Rob


Martl wrote in message <3766B9A1.29236459@eunet.at>...
>hi rob,
>
>what if you have a isx 2.11 user, which does no dll programming,
>'cause he write lisp software for autocad, but also needs that function
>"find a author defined file and if found, use it as <installdir>"?
>would be very, very important to me.
>
>
>thanx
>marty
>
>
>
>Rob wrote:
>>
>> Timothy,
>>
>> Express currently does not have the functionality to find the
>> value of <INSTALLDIR> from a previous installation. You would
>> have to create your own DLL to use some FileFind functions to
>> locate the directory from the previous installation. Once you
>> have found the path, you can have your DLL make this the value
>> of <INSTALLDIR> for your installation by calling strcpy() to
>> change the contents of the path as it was passed to your
>> function.
>>
>> Rob
>>
>> Timothy Appnel <tappnel@pseg.com> wrote in article
>> <32E54C33.161A@pseg.com>...
>> > I recently got InstallShield Pro Express here and have been very
pleased
>> > with the results for new user installations. I was wondering if there
>> > is a way to create a setup that performs an upgrade to a current users
>> > system. I guess what is key is having an installation find the
>> > application's directory (INSTALLDIR) on their drive.
>> >
>> > Has anyone done this or know how or if it can be done at all? Any help
>> > would be highly appreciated.
>> >
>> > Timothy Appnel
>> > tappnel@pseg.com
>> >
>> >
>
>--
>
>-------------------------------------------------------------
> Ing. Martin NIGG
> eMail: mailto:niggNOSPAM@eunet.at
> URL: http://members.eunet.at/nigg/
>-------------------------------------------------------------
> NMUtils v14.5-beta - 2D-Architekturapplikation fuer AutoCAD
> Mitglied bei ADGE - AutoCAD Developers Group Europe
>-------------------------------------------------------------
> !!! Remove NOSPAM from my eMail adress !!!