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!

ivo_sol
Posts: 16
Joined: Tue Jul 07, 2009 11:30 am

Can Custom Action install slave MSI?

Hello,
In my installation scenario there are two MSIs – master and slave. They are distributed separately and could be installed separately. In case both are in one folder, for instance, the master MSI automatically installs the slave MSI.
I tried to accomplish the task with available Custom Actions from the Advance Installer Wizard, but both possibilities include the slave MSI in the master one. That is not acceptable because the size of MSI is crucial.
Did I make something wrong or the feature is not available at all?
Thank you in advance.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Can Custom Action install slave MSI?

Hi,

To do so, follow these steps:
- create a new file search in the Search Page, named MSI_SEARCH for example
- here set the value of the Path from Directory Properties to [SOURCEDIR] and select the slave MSI as the file to be searched.
- go to Custom Actions page right click on Commit → Show Standard Action → Before Finalization → InstallFinalize .
- After making visible InstallFinalize right click on it → Add predefined custom action → Launch file or Open URL.
- Here you set in the command line the value of your search like this

Code: Select all

“[MSI_SEARCH]” 
and in the Execution Condition group put the following condition in the Expression field :

Code: Select all

MSI_SEARCH 
this will condition the custom action the start only if the MSI file is found in the same directory. Also in the Execution Properties group check “Asynchronous execution, do not wait for return”.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ivo_sol
Posts: 16
Joined: Tue Jul 07, 2009 11:30 am

Re: Can Custom Action install slave MSI?

Sorry but the proposal does not work for me.
The "Source Path" property of the Custom Action puzzles me - “<AI_CUSTACTS>viewer.exe”. Is it correct? From my point of view “msiexec” will be more appropriate selection.
I’m using Windows Vista, Home edition. My user is not “Administrator”, but the “Master” package must be installed from an “Administrator”.
Do you have any other ideas?
Thanks in advance.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Can Custom Action install slave MSI?

Hi,
Sorry but the proposal does not work for me.
Can you please give me more details about the problem you are encountering?
The "Source Path" property of the Custom Action puzzles me - “<AI_CUSTACTS>viewer.exe”. Is it correct?
Yes, the "Launch file or open URL" custom action uses the "viewer.exe" tool from Advanced Installer. The source path should not be modified for this custom action.
My user is not “Administrator”, but the “Master” package must be installed from an “Administrator”.
The installation process is elevated automatically if the package is installed per-machine or per-user with Administrator rights required. Does your package use one of these installation types?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ivo_sol
Posts: 16
Joined: Tue Jul 07, 2009 11:30 am

Re: Can Custom Action install slave MSI?

Hello,
I suppose the problem comes because of proposed “Search” action. When I go to Search->MSI _SEARCH, right click->Test, nothing is found. However the MSI is there.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Can Custom Action install slave MSI?

Hi,

Since the search uses an installer property resolved when the installation runs, it will not work when tested from Advanced Installer (it will work only during the actual installation).

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ivo_sol
Posts: 16
Joined: Tue Jul 07, 2009 11:30 am

Re: Can Custom Action install slave MSI?

I guessed so.
However back to the main problem, what kind of information would be helpful for you?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Can Custom Action install slave MSI?

Hi,

You mentioned that Bogdan's proposal doesn't work for you. Can you please give me more details about this? What problem are you encountering?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ivo_sol
Posts: 16
Joined: Tue Jul 07, 2009 11:30 am

Re: Can Custom Action install slave MSI?

Hello,
The task is accomplished. Thank you guys for support!
I suppose it was a mistake from my side. Instead of “Asynchronous execution, do not wait for return” I probably chose “Asynchronous execution, wait for return code…”.
ivo_sol
Posts: 16
Joined: Tue Jul 07, 2009 11:30 am

Re: Can Custom Action install slave MSI?

Hello guys,
Above described algorithm works until I check in “Media” section, “Bootstrapped” tab, radio button “Include install files in EXE.” Do you have any idea why? Is there any workaround?
Thanks in advance!
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Can Custom Action install slave MSI?

Hello,

If you are using the bootstrapper, instead of setting the search path to [SourceDir] set it to [SETUPEXEDIR]. This is because the bootstrapper extracts the msi into a different location, thus [SourceDir] will not point to the location the exe installed in, but to that temporary folder.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
ivo_sol
Posts: 16
Joined: Tue Jul 07, 2009 11:30 am

Re: Can Custom Action install slave MSI?

Hello Gabriel,
Thank you very much!
The solution works flawlessly.

Return to “Common Problems”