Prerequisite installation directory - 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!

schmidt
Posts: 2
Joined: Thu Apr 16, 2009 9:37 am

Prerequisite installation directory

I've been having problems including an Oracle XE installation as a prerequisite like I see others have. It seems like Eric here http://www.advancedinstaller.com/forums ... 6870#p6870 found a solution by running the installation from at bat file. So I'm trying to do the same. It confused me at first that I could use a bat-file as prerequisite since AI does not list them when "All supported files" is selected in the file selection dialog. But apparently it works anyway.

Now, in Erics post it is evident that the bat file is executed with the "download folder" as working directory. So he can refer to the other resources for the prerequisite (Oracle XE installer and response file) knowing this. The big issue with the Oracle XE silent installation is that for some reason it is required that the response file argument is an absolute path and Eric achieves that by setting an environment variable to the current working directory (set OLDDIR=%CD%) and then prefix the response file name with that.

But when I do that, it fails because my current directory is the folder in which the installer (exe) is located. Not the "download folder" with the prerequisite ressources. I can handle this by wiring the environment to %APPDATA% and such but it would be so much nicer if I didn't have to - and if I understood why things are different for me.

Regards,
Jakob
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Prerequisite installation directory

Hi Jakob,

Could you perhaps give more details regarding the problem you are encountering when adding Oracle XE as a prerequisite the way it is recommended in our user guide? Perhaps a cleaner solution can be found.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
schmidt
Posts: 2
Joined: Thu Apr 16, 2009 9:37 am

Re: Prerequisite installation directory

Hi Gabriel

I'm not actually encountering any problems. I just had to make a few moves (like depending on some environment variables and my knowledge of the product name etc.) that it seems from the post I refer to aren't always necessary. This is due to the fact that my prerequisite bat-file runs with the directory where the installer (Bootstrapper) is located as working directory rather than with the directory where the included resources for the prerequisite are unpacked as it seems to be the case for the poster. This puzzled me. Perhaps there are some basics about the way the bootstrapper works that escape me.

Anyway I was not aware that there's a specific recommendation regarding Oracle XE?

Regards,
Jakob
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Prerequisite installation directory

Hi Jakob,

Sorry for the misunderstanding, I was referring to the general way of adding a prerequisite, there isn't any recommendation specifically for Oracle XE.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”