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!

ngottschalk
Posts: 3
Joined: Wed Sep 24, 2014 4:23 pm

Installing SQL 2014 SP2 Express using formatted as parameter

Hi@all,

i've got a problem installing Microsoft SQL 2012 SP2 Express ENU as a feature-based prerequisite (feature-based is the only option that takes formatted as parameter), because my main exe does not wait for the "aipackagechainer.exe" (installing in completely quiet mode, /exenoui for the bootstrapper + /qn for the windows installer).
According to the custom action table this is expected behaviour (AI_LaunchChainer is of type 3314, which equals asynch+continue if i'm right, using type 3122 (without async+continue) doesn't help, as the chainer doesn't run the executable then), so the error must be somewhere in the bootstrapper i think.

(This is the complete opposite of what i found regarding sql server installations; Most of the topics i found are about hanging / freezing installations because of a sql server setup bug, but my main problem is that my bootstrapper exe doesn't wait for the sql setup to exit)

Please help, as i don't know of a way to log the bootstrapper part (using current version 11.4.1 of advanced installer).

BTW: Is there a reason why SOURCEDIR and SourceDir are empty before running "ProcessComponents"?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Installing SQL 2014 SP2 Express using formatted as param

Hi and welcome to Advanced Installer forums.

First of all I apologize for my delayed reply.

I'm not sure why you encounter the described problem, however I'm afraid that starting with "SQL Server 2008R2 SP2", this software cannot be installed from an MSI package as a Feature-based of Post-install prerequisite.

For more details you can take a look on the How to install SQL Server Express with your application article where you can find a workaround. Also, it is recommended that you test your package on multiple clean machines.
BTW: Is there a reason why SOURCEDIR and SourceDir are empty before running "ProcessComponents"?
I'm not aware of any reason why those properties are empty before the "ProcessComponents" standard action. Did you encountered this problem? If so, can you please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com, so we can investigate them?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ngottschalk
Posts: 3
Joined: Wed Sep 24, 2014 4:23 pm

Re: Installing SQL 2014 SP2 Express using formatted as param

Hi Eusebiu,

yes, i did encounter this and mailed some logs and AIPs some minutes ago to your support, but if you don't want to wait, you can download the zip over here:
SourceDir.zip
Example
(33.45 KiB) Downloaded 238 times
.

EDIT: Please let me know if you need more information=)
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Installing SQL 2014 SP2 Express using formatted as param

Hi,

Sorry for the delayed reply.

I tested the projects that you sent and, indeed, I reproduced the behavior. The project that I firstly tested contained some temporary files and in that case the [SourceDir] and [SOURCEDIR] properties are resolved earlier by an Advanced Installer custom action (AI_RemoveAllTempFiles).

However, I'm afraid that this is not an Advanced Installer issue, this is the normal Windows Installer behavior. As mentioned on the SourceDir property article, "the ResolveSource action must be called before using the SourceDir property in any expression or attempting to retrieve the value of SourceDir with MsiGetProperty". It seems that this action is called inside the "ProcessComponents" standard action.

Also, please keep in mind that this action cannot be called before the "Paths Resolutions -> CostFinalize" standard action. So, only from that point the [SourceDir] and [SOURCEDIR] properties can be available on the "Install Execution Stage" section.

Also, they are available during the whole "Wizard Dialogs Stage" section.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ngottschalk
Posts: 3
Joined: Wed Sep 24, 2014 4:23 pm

Re: Installing SQL 2014 SP2 Express using formatted as param

Hi Eusebiu,

thanks for your answer, i only read about it in your wiki at http://www.advancedinstaller.com/user-g ... rties.html ("It is resolved when you launch the MSI package, available throughout the installation process and it shouldn't be confused with the "SourceDir" Windows Installer property."), so i thought it would be available at launch time.
But if using some of your custom actions (like removing tempfiles) is a workaround to initialize "SOURCEDIR", it'll work for me=)

Thanks for your help,
niklas
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Installing SQL 2014 SP2 Express using formatted as param

Hi Niklas,

The "AI_RemoveAllTempFiles" custom action is automatically added when some temporary files are added to the package (using the [Temporary Files] toolbar button from the "Files and Folders" page). As I mentioned above, you can call the "ResolveSource" action after the "Paths Resolutions -> CostFinalize" standard action.

To achieve this you can add an "Execute Inline Script" custom action as in the example below:

Code: Select all

Session.DoAction("ResolveSource")
Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”