Another instance SQL Exp. 2008 even when I already have it. - 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!

caxama
Posts: 13
Joined: Tue Mar 22, 2011 4:48 am

Another instance SQL Exp. 2008 even when I already have it.

Hello there

I am evaluationg AI - profesional. Looks good to me. However I have quick questions

1)Target computer already has SQL expr. 2008 and I want to install 2nd instance of SQL Expr. 2008 (in silent mode). When I use pre-requisites in requirements section ("SQL Server 2008 Express R2"), the installer doesn't install it because probably already detects the first instance. I can trick the installer if I use something like "search" previous versions like 1.0 to 1.0 in the "installation options", and the installation of SQL will work , but I have always a message like "Warning 4154... installation of SQL failed.... wish to continue ?" (because ot the trick), of course the rest of the installation continues well. Is there any other way of doing this ? or perhaps I am missing something ? ( I tried custom installation of SQL Express doesn't work ).


2.- I only want to change the language in the User dialogs, ( AI profesional) when I select to translate only dialogs, and compile the project, I have message like ".... redisttributable XYZ doesn't exist in xxx language....", even though I only check the segment of "user interface"



Thanks in advance

Caxama
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Another instance SQL Exp. 2008 even when I already have it.

Hi Caxama,
Target computer already has SQL expr. 2008 and I want to install 2nd instance of SQL Expr. 2008 (in silent mode). When I use pre-requisites in requirements section ("SQL Server 2008 Express R2"), the installer doesn't install it because probably already detects the first instance. I can trick the installer if I use something like "search" previous versions like 1.0 to 1.0 in the "installation options", and the installation of SQL will work , but I have always a message like "Warning 4154... installation of SQL failed.... wish to continue ?" (because ot the trick), of course the rest of the installation continues well. Is there any other way of doing this ? or perhaps I am missing something ? ( I tried custom installation of SQL Express doesn't work ).
This is happening because the install conditions from the conditions tab are incorrect.
These conditions are evaluated two times:
- first to determine whether the prerequisite should be installed
- a second time, after the prerequisite has been installed, to determine whether the prerequisite install was successful
The reason you are receiving that warning is because the second time your conditions were evaluated, they failed. If you want to always install SQL Express 2008 you should do so with a "Launch file or Open URL" custom action schedule after the InstallFinalize standard action with the condition "(Not Installed)". Here is an article that can help you. Also, here is the user guide reference to the predefined custom action.
I only want to change the language in the User dialogs, ( AI profesional) when I select to translate only dialogs, and compile the project, I have message like ".... redisttributable XYZ doesn't exist in xxx language....", even though I only check the segment of "user interface"
I am not sure why you are encountering this behavior. Can you please show us a screenshot of the setting and error? Also, can you please send us the .AIP (project) to support at advancedinstaller dot com with a reference to this thread so we can investigate it?

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
caxama
Posts: 13
Joined: Tue Mar 22, 2011 4:48 am

Re: Another instance SQL Exp. 2008 even when I already have it.

Hi Mihai

Thanks for your answer , I tried your advice and it didn't work:

"....... "Launch file or Open URL" custom action schedule after the InstallFinalize standard action with the condition "(Not Installed)" .....".

The strange thing is that if I copy the command for the installation of SQL Express 2008 (from the project) to the command prompt it works fine, however if I want to use it inside of Advance installer it stops in the middle of the SQL installation. I am sending to your e-mail (support at...) the project, surely you can tell me if I am doing something wrong (I read somewhere that Windows Installer can not run concurrently two process, Am I doing something like that ?).

As always, thank you for your prompt answer

Caxama
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Another instance SQL Exp. 2008 even when I already have it.

Hello Caxama,
I read somewhere that Windows Installer can not run concurrently two process, Am I doing something like that ?
Since the custom action is scheduled after the "InstallFinalize" standard action, the main installer process is over and you can run the second one.

I have looked into your .AIP and the reason it's not working is because you used the "Launch File or Open URL" predefined custom action in the wrong way.
Here is the description of the fields:
  • Source Path - this contains the file that executes the action, in this case viewer.exe. You don't need to change this field.
  • Source Type - this is the type of the file, in this case an EXE. You don't need to change this field.
  • Command Line - this is where you specify the file, the folder or URL to be opened. Since this is of Formatted Type you can use the [ Edit ] button to include a reference to a file, a folder or a property.
In your project, you have modified the "Source Path" field with the source of your SQL setup package. For more information please read this user guide reference regarding the custom action.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”