Page 1 of 1

Save $TARGETDIR$ for next Installation

Posted: Thu Aug 25, 2016 6:23 am
by mikKummerfeld
Hey Guys,

one question. When we install, uninstall and reinstall again, we want to use the content of $TARGETDIR$ für the next installation.
I tried SAVEDATA, LOADOLDDATA, $TARGETDIR$ as persistent variable...nothing works.

How can we make that work?

Thanks
Heiko

Re: Save $TARGETDIR$ for next Installation

Posted: Thu Aug 25, 2016 12:28 pm
by FrancescoT
Dear Heiko,

have a look at the "Features sample (2)" from the link below.
http://www.installaware.com/forums/viewtopic.php?f=2&t=6772#p25655

Hope this helps you.

Regards

Re: Save $TARGETDIR$ for next Installation

Posted: Fri Aug 26, 2016 2:19 am
by mikKummerfeld
Thanks. I did and build that.

1. Install Features with Path D:\insttest
2. Uninstall Feature
3. Run the installer again => C:\Program Files (x86) again

Nice sample...but it does not work :)

Re: Save $TARGETDIR$ for next Installation

Posted: Fri Aug 26, 2016 8:48 am
by FrancescoT
Dear Heiko,

honestly, I really don't know how did you test the sample.

If you have a look at its description;
"The sample demonstrates how to keep track of features selection and TARGETDIR, with different version of a setup"

... and this is what the sample exactly does and demonstrates!
It keeps track of features selection and TARGETDIR, with different version of a setup.

That said and to test the sample properly, you have;

1- to build the project and then to install the package.
2- To build the project once again and then to install the package over an existing installation.

Hope this clarify your doubt.

Regards

Re: Save $TARGETDIR$ for next Installation

Posted: Fri Aug 26, 2016 8:55 am
by mikKummerfeld
Yes ok, but I Need to SAVE the TARGEDIR also after an uninstallation of the Setup.

1. INSTALL to D:\instpath
2. UNINST
3. INSTALL again and I want to have D:\instpath filled

Re: Save $TARGETDIR$ for next Installation

Posted: Fri Aug 26, 2016 9:16 am
by FrancescoT
After a complete un-install, you should not keep any setup data.

Anyway if you want to proceed in that way, use a similar approach as the one the described by the above sample.

Of course in your case ... you should not delete the stored data.

Regards

Re: Save $TARGETDIR$ for next Installation

Posted: Mon Aug 29, 2016 2:07 am
by mikKummerfeld
I have a Workaround now...after Installing, I create a reg key with the last install Folder
and I check this value at the beginning of a new install process

Re: Save $TARGETDIR$ for next Installation

Posted: Tue Aug 30, 2016 6:40 am
by FrancescoT
:D