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
Save $TARGETDIR$ for next Installation
-
- Posts: 252
- Joined: Sat Dec 03, 2011 3:07 am
- Location: Konstanz, Germany
- Contact:
Save $TARGETDIR$ for next Installation
Kind regards
Heiko Kummerfeld
MIK GmbH
Setup developer for .NET BI Software (12 products)
Head of quality assurance
technical consultant
Heiko Kummerfeld
MIK GmbH
Setup developer for .NET BI Software (12 products)
Head of quality assurance
technical consultant
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Save $TARGETDIR$ for next Installation
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
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
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
-
- Posts: 252
- Joined: Sat Dec 03, 2011 3:07 am
- Location: Konstanz, Germany
- Contact:
Re: Save $TARGETDIR$ for next Installation
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
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
Heiko Kummerfeld
MIK GmbH
Setup developer for .NET BI Software (12 products)
Head of quality assurance
technical consultant
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Save $TARGETDIR$ for next Installation
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
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
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
-
- Posts: 252
- Joined: Sat Dec 03, 2011 3:07 am
- Location: Konstanz, Germany
- Contact:
Re: Save $TARGETDIR$ for next Installation
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
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
Heiko Kummerfeld
MIK GmbH
Setup developer for .NET BI Software (12 products)
Head of quality assurance
technical consultant
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Save $TARGETDIR$ for next Installation
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
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
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
-
- Posts: 252
- Joined: Sat Dec 03, 2011 3:07 am
- Location: Konstanz, Germany
- Contact:
Re: Save $TARGETDIR$ for next Installation
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
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
Heiko Kummerfeld
MIK GmbH
Setup developer for .NET BI Software (12 products)
Head of quality assurance
technical consultant
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Save $TARGETDIR$ for next Installation

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
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
Who is online
Users browsing this forum: Google [Bot] and 101 guests