Problems with installing Silverlight Out-of-Browser App - 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!

oliverw
Posts: 12
Joined: Sat Jun 25, 2011 9:43 am

Problems with installing Silverlight Out-of-Browser App

I'm currently using the trial version of Advanced Installer Professional. I've added Silverlight 4 as a prerequisite which installs just fine. The problem I am facing is that during the commit phase I have a custom action that's basically defined as this:

Property Name: RESULT_PROPERTY_SLLAUNCHER.EXE
Source Type: Executable
Command Line: /install:"[#FooBar.xap]" /origin:"http://example.com/silverlightclient/FooBar.xap" /shortcut:desktop+startmenu /overwrite

The Search Property RESULT_PROPERTY_SLLAUNCHER.EXE is defined as:
Name: sllauncher.exe
Path: [ProgramFilesFolder]Microsoft Silverlight
Depth: 1

A test search for the property works fine on my development machine.

When the installer runs and the custom action is executed directly after installing the runtime during the commit phase the installation always stops with:
"There's a problem with this installer package. A program required for this installation could not be run ..."

When I launch the installer again, this time the runtime is not installed because the SL4 prerequisite was installed already, the installation completes successfully. I've already turned on verbose logging but there's no information about the actual problem. Any suggestions?

This is the log output:

Code: Select all

MSI (s) (8C:48) [10:43:46:399]: Executing op: CustomActionSchedule(Action=OOBInstall,ActionType=3122,,Target=debug /install:"C:\Documents and Settings\Oliver\Application Data\FooBar\Foobar.xap" /origin:"http://example.com/silverlightclient/Foobar.xap" /shortcut:desktop+startmenu /overwrite,)
MSI (s) (8C:48) [10:43:46:399]: Note: 1: 1721 2: OOBInstall 3:  4: debug /install:"C:\Documents and Settings\Oliver\Application Data\FooBar\Foobar.xap" /origin:"http://example.com/silverlightclient/Foobar.xap" /shortcut:desktop+startmenu /overwrite 
MSI (s) (8C:48) [10:51:13:196]: Product: FooBar -- Error 1721. There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor. Action: OOBInstall, location: , command: debug /install:"C:\Documents and Settings\Oliver\Application Data\FooBar\Foobar.xap" /origin:"http://example.com/silverlightclient/Foobar.xap" /shortcut:desktop+startmenu /overwrite 

MSI (s) (8C:48) [10:51:13:196]: User policy value 'DisableRollback' is 0
MSI (s) (8C:48) [10:51:13:196]: Machine policy value 'DisableRollback' is 0
MSI (s) (8C:48) [10:51:13:196]: Executing op: Header(Signature=1397708873,Version=301,Timestamp=1054430583,LangId=1033,Platform=0,ScriptType=2,ScriptMajorVersion=21,ScriptMinorVersion=4,ScriptAttributes=0)
MSI (s) (8C:48) [10:51:13:196]: Executing op: DialogInfo(Type=0,Argument=1033)
MSI (s) (8C:48) [10:51:13:196]: Executing op: DialogInfo(Type=1,Argument=FooBar)
MSI (s) (8C:48) [10:51:13:196]: Executing op: RollbackInfo(,RollbackAction=Rollback,RollbackDescription=Rolling back action:,,CleanupAction=RollbackCleanup,CleanupDescription=Removing backup files,CleanupTemplate=File: [1])
MSI (s) (8C:48) [10:51:13:212]: Executing op: ActionStart(Name=OOBInstall,,)
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Problems with installing Silverlight Out-of-Browser App

Hi,

Searches are performed before prerequisites are installed. So your search property is empty. A solution is to set your prerequisite as global.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
oliverw
Posts: 12
Joined: Sat Jun 25, 2011 9:43 am

Re: Problems with installing Silverlight Out-of-Browser App

Thanks! That did the trick.
oliverw
Posts: 12
Joined: Sat Jun 25, 2011 9:43 am

Re: Problems with installing Silverlight Out-of-Browser App

One question. Is there a possibility to create a custom action that executes an executable at predefined location and thus bypass the problem with the search happening too early? sllauncher.exe for example will always live in [Program Files]Microsoft Silverlight/sllauncher.exe.
oliverw
Posts: 12
Joined: Sat Jun 25, 2011 9:43 am

Re: Problems with installing Silverlight Out-of-Browser App

Looks like the "EXE with working Dir" Action accepts arguments with its "Full Path" property and thus gets the job done.
oliverw
Posts: 12
Joined: Sat Jun 25, 2011 9:43 am

Re: Problems with installing Silverlight Out-of-Browser App

Just to be safe. Could someone from the AI staff could confirm that my conclusions are correct and that the behavior is working as intended?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Problems with installing Silverlight Out-of-Browser App

Hi,

The custom action you've chosen is the correct one. The approach however, i.e. eliminating the search, is not recommended. Its better to make the search
and use it as an execution condition for the custom action. This will ensure that the executable is in the expected location.

All searches are done during the standard action AppSearch, in the beginning of the install process. A global prerequisite is always
installed before the MSI is launched, so the search will never be executed to early. Only if you have a feature-based prerequisite the search is performed before its installation.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”