Save $TARGETDIR$ for next Installation

Got a problem you cannot solve? Try here.
mikKummerfeld
Posts: 252
Joined: Sat Dec 03, 2011 3:07 am
Location: Konstanz, Germany
Contact:

Save $TARGETDIR$ for next Installation

Postby mikKummerfeld » Thu Aug 25, 2016 6:23 am

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
Kind regards

Heiko Kummerfeld
MIK GmbH

Setup developer for .NET BI Software (12 products)
Head of quality assurance
technical consultant

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Save $TARGETDIR$ for next Installation

Postby FrancescoT » Thu Aug 25, 2016 12:28 pm

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
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

mikKummerfeld
Posts: 252
Joined: Sat Dec 03, 2011 3:07 am
Location: Konstanz, Germany
Contact:

Re: Save $TARGETDIR$ for next Installation

Postby mikKummerfeld » Fri Aug 26, 2016 2:19 am

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 :)
Kind regards

Heiko Kummerfeld
MIK GmbH

Setup developer for .NET BI Software (12 products)
Head of quality assurance
technical consultant

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Save $TARGETDIR$ for next Installation

Postby FrancescoT » Fri Aug 26, 2016 8:48 am

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
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

mikKummerfeld
Posts: 252
Joined: Sat Dec 03, 2011 3:07 am
Location: Konstanz, Germany
Contact:

Re: Save $TARGETDIR$ for next Installation

Postby mikKummerfeld » Fri Aug 26, 2016 8:55 am

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
Kind regards

Heiko Kummerfeld
MIK GmbH

Setup developer for .NET BI Software (12 products)
Head of quality assurance
technical consultant

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Save $TARGETDIR$ for next Installation

Postby FrancescoT » Fri Aug 26, 2016 9:16 am

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
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

mikKummerfeld
Posts: 252
Joined: Sat Dec 03, 2011 3:07 am
Location: Konstanz, Germany
Contact:

Re: Save $TARGETDIR$ for next Installation

Postby mikKummerfeld » Mon Aug 29, 2016 2:07 am

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
Kind regards

Heiko Kummerfeld
MIK GmbH

Setup developer for .NET BI Software (12 products)
Head of quality assurance
technical consultant

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Save $TARGETDIR$ for next Installation

Postby FrancescoT » Tue Aug 30, 2016 6:40 am

:D
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: Google [Bot] and 147 guests