Go Back   PackageDeploy Application Packaging Forums > Package Development > Application Packaging > Platformsdk MSI

Reply
 
LinkBack Thread Tools Display Modes
Old 05-12-2010, 03:01 PM   #1 (permalink)
Stephen Connolly
Guest
 
Posts: n/a
Default WinSXS activation context error and CreateShortcut

We've come across a very subtle problem with the creation of
shortcuts.

We are deploying an exe that has dependencies on on the MS runtimes
(CRT\MFC etc). When the app is installed we occasionally get red
events in the event viewer implying that some of the files installed
to winsxs are not available.

If we drop the createshortcuts action the problem goes away.

If we run sxstrace during the installation the red event is clearly
associated with the exe we are installing.

Now I know that under windows 2008 winsxs is very strict and the
runtimes aren't properly installed until after installfinalize
completes, so I would expect to see errors in executables that tried
to load runtimes from sxs before installfinalize.

So the question is, why does createshortcuts seemingly want to load
the installed exe and trigger the sxs red event? Any sugggestions for
a workaround? We've switched to using an ico rather than the exe in
the shortcut table, but that doesn't appear to address the issue.

Stephen
  Reply With Quote
Old 05-18-2010, 05:01 PM   #2 (permalink)
Adrian Accinelli
Guest
 
Posts: n/a
Default Re: WinSXS activation context error and CreateShortcut

"Stephen Connolly" <sm_spc_2@hotmail.com> wrote in message
news:1df65bbc-19cd-4a95-877d-264fb1809352@r34g2000yqj.googlegroups.com...
> We've come across a very subtle problem with the creation of
> shortcuts.
> We are deploying an exe that has dependencies on on the MS runtimes
> (CRT\MFC etc). When the app is installed we occasionally get red
> events in the event viewer implying that some of the files installed
> to winsxs are not available.
> If we drop the createshortcuts action the problem goes away.
> If we run sxstrace during the installation the red event is clearly
> associated with the exe we are installing.
> Now I know that under windows 2008 winsxs is very strict and the
> runtimes aren't properly installed until after installfinalize
> completes, so I would expect to see errors in executables that tried
> to load runtimes from sxs before installfinalize.
> So the question is, why does createshortcuts seemingly want to load
> the installed exe and trigger the sxs red event? Any sugggestions for
> a workaround? We've switched to using an ico rather than the exe in
> the shortcut table, but that doesn't appear to address the issue.
> Stephen


I suppose the obvious workaround would be to install CRT/MFC as a
prerequisite. This way when your shortcut targets are accessed (not sure
why myself) you wouldn't see any WinSxS errors. You could chain the two
installs together to provide a seamless installation.

Does this event log issue actually mean that something in your product fails
to function correctly? If not then I suppose you could also take the "blame
microsoft" approach and document it as a known issue.

Sincerely,
Adrian Accinelli


  Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:05 PM.


vBulletin, Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
2007 - 2012 PackageDeploy.com