Upgrade and APPDIR - 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!

Frode
Posts: 34
Joined: Thu Feb 26, 2009 3:11 pm

Upgrade and APPDIR

Hi,

what is the "preferred" way to have AI suggest previous installed folder as installation folder for an upgrade?

(And a bonus question :) ) What is the property/registry entry AI_ExePath, and can I just remove it from the project file? (I seem unable to remove it from within AI)

Thank you.

-frode
Frode
Posts: 34
Joined: Thu Feb 26, 2009 3:11 pm

Re: Upgrade and APPDIR

Never mind the initial question, it is automatic. (I upgraded from a non-AI msi in the first upgrade)

But I am still curious about AI_ExePath

-frode
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Upgrade and APPDIR

Hi Frode,

AI_ExePath is automatically added when LZMA compression is enabled from the Builds page->Configuration tab. It is removed when this option is disabled.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
Frode
Posts: 34
Joined: Thu Feb 26, 2009 3:11 pm

Re: Upgrade and APPDIR

Hi Gabriel,

thank you for the clarification.

There seems to be a glitch when changing settings in Media settings between Media and Bootstrapper pages (or my AI file has gone in a "limbo" state)

Currently I have selected Archive installation files into CAB files (in Media tab), and Include install files in EXE (in Bootstrapper page) - which shouldn't be possible?

If I select Archive installation files using LMZA ... in Media and then reselect Archive installation files into CAB files I get the warning 'This option requires the "Leave install files outside" Bootstrapper option. It has been select for you in the "Bootstrapper" tab.'

If I then go to Bootstrapper page and select Include install files in EXE there are no complaints and the selection in Media stays put.

I can then build my project (and it works).

If I set Archive installation files using LMZA ... and do a build I get the error "Exception - Reason: Your project must contain at least one file before this operation can be performed.", which is a correct observation.

Any explanation? :?

-frode
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Upgrade and APPDIR

Hello,
Currently I have selected Archive installation files into CAB files (in Media tab), and Include install files in EXE (in Bootstrapper page) - which shouldn't be possible?
This combination of options is valid as long as "Include CAB file into the MSI database" option is not enabled on the Media tab.

You get the error since there need to files in your project to use the LZMA option. Disable the option and you will not receive the error anymore.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
Frode
Posts: 34
Joined: Thu Feb 26, 2009 3:11 pm

Re: Upgrade and APPDIR

GabrielBarbu wrote:
Frode wrote:Currently I have selected Archive installation files into CAB files (in Media tab), and Include install files in EXE (in Bootstrapper page) - which shouldn't be possible?
This combination of options is valid as long as "Include CAB file into the MSI database" option is not enabled on the Media tab.
Ok, nice to know my file is still sane :)
GabrielBarbu wrote: You get the error since there need to files in your project to use the LZMA option. Disable the option and you will not receive the error anymore.
Don't know if this is relevant, but the installer contains several prereq' files

-frode
Frode
Posts: 34
Joined: Thu Feb 26, 2009 3:11 pm

Re: Upgrade and APPDIR

GabrielBarbu wrote: AI_ExePath is automatically added when LZMA compression is enabled from the Media page->Media tab. It is removed when this option is disabled.
In fact, it is not removed (in my case at least).

-frode
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Upgrade and APPDIR

Hello,

Indeed this is the case if some other options are enabled, since LZMA is not the only one which uses that particular component.

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

Return to “Common Problems”