Clickonce update fails when Framework upgrade is required


K

Ken Lemieux

Hi,

I have a Clickonce application currently deployed with .NET 2.0 as a
prerequisite. This application has been updated to use features in .NET 3.5,
(file association).

My publish prerequisites are updated to include 3.5 Framework and Windows
Installer 3.1 as prerequisites.

As a test, the 2.0 version of my application is installed on a Windows XP
Pro, SP2 machine with only the 2.0 Framework. When the app sees the available
update, the install fails with a “System Update Required" dialog box whose
contents read:

"Unable to install or run the application. The application requires that
assembly WindowsBase Version 3.0.0.0 be installed in the Global Assembly
Cache (GAC) first.

More information on this system update can be found by visiting the site
here."

Initial installations of the 3.5 application works fine.

Can anyone shed light on the error message and perhaps the implications of
trying to update the .NET Framework during an application update that
requires said framework update?
 
Ad

Advertisements

J

Jeffrey Tan[MSFT]

Hi Kenneth,

I have added a reply to you in the original thread for this issue, it seems
that you missed it.

I have discussed this issue with the ClickOnce deployment team, they
confirmed that the only way to install prerequisites is to run the
bootstrapper, Setup.exe published by VS. Update through
shortcut will not get prerequisites installed.

You should run Setup.exe from the publish location. This will install the
prereqs and update the application as well. Hope this helps.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
K

Ken Lemieux

Thanks Jeffrey,

I apologize, I did miss your post in the original thread.

Your answer is helpful, however, it leads me to a new question. My
application is set to update before the application starts, how do I
interrupt that process to prompt users to re-run setup.exe.? I would also ask
if the process in some way could be automated to appear as an update?

I have two deployment scenerios: internal and external consumers. Internal
is less of an issue because, once available as a wsus update, I could
pre-deploy the 3.5 framework. External users are my real concern because my
app is my only link to them.
 
J

Jeffrey Tan[MSFT]

Hi Kenneth,

Thanks for your feedback.

By design, Setup.exe is supposed to run once before the installation of v1
so there is no seamless way of getting it executed during auto-update at
this time.

After discussing with the ClickOnce deployment team, we can think of some
tricks like : Publish a new version v2 which is an intermediate version
just to install the actual new version. v2 launches Setup.exe upon first
run etc. to get some auto-update behavior. But it will not look seamless
unfortunately.

Hope this helps.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
K

Ken Lemieux

Thanks Jeffrey,

You've confirmed what I believed to be my best option; to deploy an
intermediate version.
 
J

Jeffrey Tan[MSFT]

Hi Kenneth,

Yes, it seems that using an intermediate version to launch setup.exe is the
only workaround we have now.

Anyway, if you need further help, please feel free to post, thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Ad

Advertisements

K

Ken Olsen

Hello,

I am facing this problem and wonder if there is a more elegant way of adding new prereqisites to a already installed ClickOnce application

Thanks in advance
/Ken



jeta wrote:

Hi Kenneth,Yes, it seems that using an intermediate version to launch setup.
12-Feb-08

Hi Kenneth

Yes, it seems that using an intermediate version to launch setup.exe is the
only workaround we have now.

Anyway, if you need further help, please feel free to post, thanks

Best regards
Jeffrey Ta
Microsoft Online Community Suppor
=================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#noti
ications

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx
=================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Previous Posts In This Thread:

Clickonce update fails when Framework upgrade is required
Hi

I have a Clickonce application currently deployed with .NET 2.0 as a
prerequisite. This application has been updated to use features in .NET 3.5
(file association).

My publish prerequisites are updated to include 3.5 Framework and Windows
Installer 3.1 as prerequisites.

As a test, the 2.0 version of my application is installed on a Windows XP
Pro, SP2 machine with only the 2.0 Framework. When the app sees the available
update, the install fails with a ???System Update Required" dialog box whose
contents read

"Unable to install or run the application. The application requires that
assembly WindowsBase Version 3.0.0.0 be installed in the Global Assembly
Cache (GAC) first

More information on this system update can be found by visiting the site
here.

Initial installations of the 3.5 application works fine

Can anyone shed light on the error message and perhaps the implications of
trying to update the .NET Framework during an application update that
requires said framework update

--
Kenneth Lemieu
Project Enginee
Whelen Engineering Co., Inc.

Hi Kenneth,I have added a reply to you in the original thread for this issue,
Hi Kenneth

I have added a reply to you in the original thread for this issue, it seems
that you missed it.

I have discussed this issue with the ClickOnce deployment team, they
confirmed that the only way to install prerequisites is to run the
bootstrapper, Setup.exe published by VS. Update through
shortcut will not get prerequisites installed.

You should run Setup.exe from the publish location. This will install the
prereqs and update the application as well. Hope this helps

Best regards
Jeffrey Ta
Microsoft Online Community Suppor
=================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#noti
ications

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Thanks Jeffrey,I apologize, I did miss your post in the original thread.
Thanks Jeffrey,

I apologize, I did miss your post in the original thread.

Your answer is helpful, however, it leads me to a new question. My
application is set to update before the application starts, how do I
interrupt that process to prompt users to re-run setup.exe.? I would also ask
if the process in some way could be automated to appear as an update?

I have two deployment scenerios: internal and external consumers. Internal
is less of an issue because, once available as a wsus update, I could
pre-deploy the 3.5 framework. External users are my real concern because my
app is my only link to them.
--
Kenneth Lemieux
Project Engineer
Whelen Engineering Co., Inc.


:

Hi Kenneth,Thanks for your feedback.By design, Setup.
Hi Kenneth,

Thanks for your feedback.

By design, Setup.exe is supposed to run once before the installation of v1
so there is no seamless way of getting it executed during auto-update at
this time.

After discussing with the ClickOnce deployment team, we can think of some
tricks like : Publish a new version v2 which is an intermediate version
just to install the actual new version. v2 launches Setup.exe upon first
run etc. to get some auto-update behavior. But it will not look seamless
unfortunately.

Hope this helps.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Thanks Jeffrey,You've confirmed what I believed to be my best option; to
Thanks Jeffrey,

You've confirmed what I believed to be my best option; to deploy an
intermediate version.

--
Kenneth Lemieux
Project Engineer
Whelen Engineering Co., Inc.


:

Hi Kenneth,Yes, it seems that using an intermediate version to launch setup.
Hi Kenneth,

Yes, it seems that using an intermediate version to launch setup.exe is the
only workaround we have now.

Anyway, if you need further help, please feel free to post, thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.


Submitted via EggHeadCafe - Software Developer Portal of Choice
..NET Windows Forms Cursor To Hourglass
http://www.eggheadcafe.com/tutorial...e2-fd2e66d4dbcd/net-windows-forms-cursor.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top