primairy prerequisite inherits the basepath from setupfile - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

installchief
Posts: 5
Joined: Wed Aug 04, 2010 5:30 pm

primairy prerequisite inherits the basepath from setupfile

I have created a new prerequisite. Then I ran the install file. The files of this prerequisite are all extracted to the same temporary folder. There should be no problem for the primairy file to find all the files I added by selecting "Add Files" and "Add Folder" because they are extracted to the same directory.

But the problem is that the primairy file can't find the other files. This is because the primairy file inherits the base path from the setup file. So if I run my setup file from my desktop the primairy Prerequisite file tries to find the other files on my desktop while all files, including the primairy file, are extracted to a temporary folder.

It seems to me there is no option to add a prerequisite that uses multiple files.

Regards,
Installchief
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: primairy prerequisite inherits the basepath from setupfile

Hi,

Please note that you can specify the location where the prerequisite files will be placed, extracted or downloaded using the "Folder" edit box from the "Edit Prerequisite" dialog. This should help you overcome the problem encountered.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
installchief
Posts: 5
Joined: Wed Aug 04, 2010 5:30 pm

Re: primairy prerequisite inherits the basepath from setupfile

Hi Bogdan,

I already specified the location to "testCase". This is not the solution.

I build a testcase with two files. One primairy file (exePrerequisite.exe) which outputs his basepath and outputs whether or not he can find the second file (doIExist.txt) which should be in the same directory.

When I run the installer, the installer extracts the two files to "C:\Users\installchief\AppData\Roaming\Template\install\testCase" than the installer starts the primairy file (exePrerequisite.exe) which outputs its basepath as : "C:\Users\installchief\Desktop\" this is not the location to where the prerequisite was extracted but the location of the installer. So the primairy file searches for other files in the folder "C:\Users\installchief\Desktop\" and therefore cannot find the other files.

When I move the installer to for example "c:\" the installer still extracts the files to "C:\Users\installchief\AppData\Roaming\Template\install\testCase" but the primairy file outputs the basepath as "c:\" . The primairy file's is not located at the "c:\" so I gues that the primairy file inherits the base path from the setup file.

When I manualy click the primairy file that was extracted to "C:\Users\installchief\AppData\Roaming\Template\install\testCase" everything goes as it should and he can find the secondary file. Something goes wrong when the installer launches the primairy file.

This is a problem because I need to install Third party software which is an exe which needs to find a couple of dll's in the same directory.

I hope you understand the problem.

Regards installchief
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: primairy prerequisite inherits the basepath from setupfile

Hi,

I just talked to the development team and indeed it seems the working directory is set to the one of main application.

They have just started to create an improvement so the working directory is set to the extraction folder specified by you. This will be available in the next version which
is scheduled for release the next week.

If you are in a hurry and cannot wait for your next release you can try to create a wrapper to your third party package that extracts it along with the DLL files and then launches it.
The wrapper will be added as a prerequisite and launched by our setup.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
installchief
Posts: 5
Joined: Wed Aug 04, 2010 5:30 pm

Re: primairy prerequisite inherits the basepath from setupfile

Great, fixing it that way will be the best solution and will make Advanced Installer an even better product!

I have considered the wrapper solution but if you're ready in such a short notice I will wait for that.

Regards installchief
installchief
Posts: 5
Joined: Wed Aug 04, 2010 5:30 pm

Re: primairy prerequisite inherits the basepath from setupfile

Thu Aug 05,
Bogdan wrote:This will be available in the next version which
is scheduled for release the next week.
Today being 23 Aug, is there a new date that the release is going to be?
installchief
Posts: 5
Joined: Wed Aug 04, 2010 5:30 pm

Re: primairy prerequisite inherits the basepath from setupfile

Any update when there will be a fix of the bug I reported?

I've been waiting very long!!!
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: primairy prerequisite inherits the basepath from setupfile

Hi,

Sorry for the delay, the fix has been implemented and included in version 8.0 of Advanced Installer.

However, this version of Advanced Installer contains a lot of new features that have delayed the release date in order to make sure everything is working correctly.
The release is scheduled for this week, if you cannot wait and wish a RC version please send me an e-mail to support at advancedinstaller dot com so I can give you a download link.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”