PC Review


Reply
Thread Tools Rate Thread

msi wrapper for Windows Updates

 
 
Anthony Yates
Guest
Posts: n/a
 
      10th Jun 2004
I am using msi wrappers to execute Windows Updates. They work fine as long
as the custom action to execute the update is run Synchronous, Ignore exit
code. Without the "Ignore exit code" the update is executed successfully but
the msi execution fails. The failure happens rights at the end of the custom
action, just at the point that the update would be prompting the user to
restart.
Any ideas why Windows Installer cannot handle the restart return code from
the update? Up to about 6 months ago the patches used to just force a
restart and Windows Installer finished normally,
Thanks,
Anthony


 
Reply With Quote
 
 
 
 
David Randall [MS]
Guest
Posts: n/a
 
      17th Jun 2004
I'm not sure about why MSI isn't handling the restart return code, but can
you configure your program to "SMS Reboots Computer" ??


----
This posting is provided "AS IS" with no warranties, and confers no rights.

SMS Technical FAQ at:
http://www.microsoft.com/technet/pro...q/default.mspx
----
Dave Randall
SMS Software Distribution Team


"Anthony Yates" <anthony.yates@airno~spamdesk.com> wrote in message
news:ein%(E-Mail Removed)...
>I am using msi wrappers to execute Windows Updates. They work fine as long
> as the custom action to execute the update is run Synchronous, Ignore exit
> code. Without the "Ignore exit code" the update is executed successfully
> but
> the msi execution fails. The failure happens rights at the end of the
> custom
> action, just at the point that the update would be prompting the user to
> restart.
> Any ideas why Windows Installer cannot handle the restart return code from
> the update? Up to about 6 months ago the patches used to just force a
> restart and Windows Installer finished normally,
> Thanks,
> Anthony
>
>



 
Reply With Quote
 
Anthony Yates
Guest
Posts: n/a
 
      18th Jun 2004
I can force a reboot using the REBOOT property in the msi, but the
update.exe itself is returning an error. At the moment I just get round it
by ignoring the return code. I am suprised that the update.exe reboot
request is interpreted by Windows installer as an error,
Anthony




"David Randall [MS]" <(E-Mail Removed)> wrote in message
news:#(E-Mail Removed)...
> I'm not sure about why MSI isn't handling the restart return code, but can
> you configure your program to "SMS Reboots Computer" ??
>
>
> ----
> This posting is provided "AS IS" with no warranties, and confers no

rights.
>
> SMS Technical FAQ at:
>

http://www.microsoft.com/technet/pro...aq/default.msp
x
> ----
> Dave Randall
> SMS Software Distribution Team
>
>
> "Anthony Yates" <anthony.yates@airno~spamdesk.com> wrote in message
> news:ein%(E-Mail Removed)...
> >I am using msi wrappers to execute Windows Updates. They work fine as

long
> > as the custom action to execute the update is run Synchronous, Ignore

exit
> > code. Without the "Ignore exit code" the update is executed successfully
> > but
> > the msi execution fails. The failure happens rights at the end of the
> > custom
> > action, just at the point that the update would be prompting the user to
> > restart.
> > Any ideas why Windows Installer cannot handle the restart return code

from
> > the update? Up to about 6 months ago the patches used to just force a
> > restart and Windows Installer finished normally,
> > Thanks,
> > Anthony
> >
> >

>
>



 
Reply With Quote
 
Phil Wilson
Guest
Posts: n/a
 
      22nd Jun 2004
"Success" from a custom action program is defined as an exit code of zero.
Maybe update.exe now returns non-zero for success. If some arbritrary
program like that returns non-zero for success, you can wrap it in another
custom action that launches it.
http://msdn.microsoft.com/library/de...urn_values.asp
--
Phil Wilson
[MVP Windows Installer]
Definitive Guide to Windows Installer
http://www.amazon.com/exec/obidos/tg...id=1087915405/

"Anthony Yates" <anthony.yates@airno~spamdesk.com> wrote in message
news:(E-Mail Removed)...
> I can force a reboot using the REBOOT property in the msi, but the
> update.exe itself is returning an error. At the moment I just get round it
> by ignoring the return code. I am suprised that the update.exe reboot
> request is interpreted by Windows installer as an error,
> Anthony
>
>
>
>
> "David Randall [MS]" <(E-Mail Removed)> wrote in message
> news:#(E-Mail Removed)...
> > I'm not sure about why MSI isn't handling the restart return code, but

can
> > you configure your program to "SMS Reboots Computer" ??
> >
> >
> > ----
> > This posting is provided "AS IS" with no warranties, and confers no

> rights.
> >
> > SMS Technical FAQ at:
> >

>

http://www.microsoft.com/technet/pro...aq/default.msp
> x
> > ----
> > Dave Randall
> > SMS Software Distribution Team
> >
> >
> > "Anthony Yates" <anthony.yates@airno~spamdesk.com> wrote in message
> > news:ein%(E-Mail Removed)...
> > >I am using msi wrappers to execute Windows Updates. They work fine as

> long
> > > as the custom action to execute the update is run Synchronous, Ignore

> exit
> > > code. Without the "Ignore exit code" the update is executed

successfully
> > > but
> > > the msi execution fails. The failure happens rights at the end of the
> > > custom
> > > action, just at the point that the update would be prompting the user

to
> > > restart.
> > > Any ideas why Windows Installer cannot handle the restart return code

> from
> > > the update? Up to about 6 months ago the patches used to just force a
> > > restart and Windows Installer finished normally,
> > > Thanks,
> > > Anthony
> > >
> > >

> >
> >

>
>




 
Reply With Quote
 
Anthony Yates
Guest
Posts: n/a
 
      23rd Jun 2004
Thanks,
I read somewhere that it returns an error code for "reboot required". I can
get round this by ignoring the return code, but obviously if there is an
error it will continue regardless,
Anthony



"Phil Wilson" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> "Success" from a custom action program is defined as an exit code of zero.
> Maybe update.exe now returns non-zero for success. If some arbritrary
> program like that returns non-zero for success, you can wrap it in another
> custom action that launches it.
>

http://msdn.microsoft.com/library/de...us/msi/setup/c
ustom_action_return_values.asp
> --
> Phil Wilson
> [MVP Windows Installer]
> Definitive Guide to Windows Installer
> http://www.amazon.com/exec/obidos/tg...id=1087915405/
>
> "Anthony Yates" <anthony.yates@airno~spamdesk.com> wrote in message
> news:(E-Mail Removed)...
> > I can force a reboot using the REBOOT property in the msi, but the
> > update.exe itself is returning an error. At the moment I just get round

it
> > by ignoring the return code. I am suprised that the update.exe reboot
> > request is interpreted by Windows installer as an error,
> > Anthony
> >
> >
> >
> >
> > "David Randall [MS]" <(E-Mail Removed)> wrote in message
> > news:#(E-Mail Removed)...
> > > I'm not sure about why MSI isn't handling the restart return code, but

> can
> > > you configure your program to "SMS Reboots Computer" ??
> > >
> > >
> > > ----
> > > This posting is provided "AS IS" with no warranties, and confers no

> > rights.
> > >
> > > SMS Technical FAQ at:
> > >

> >

>

http://www.microsoft.com/technet/pro...aq/default.msp
> > x
> > > ----
> > > Dave Randall
> > > SMS Software Distribution Team
> > >
> > >
> > > "Anthony Yates" <anthony.yates@airno~spamdesk.com> wrote in message
> > > news:ein%(E-Mail Removed)...
> > > >I am using msi wrappers to execute Windows Updates. They work fine as

> > long
> > > > as the custom action to execute the update is run Synchronous,

Ignore
> > exit
> > > > code. Without the "Ignore exit code" the update is executed

> successfully
> > > > but
> > > > the msi execution fails. The failure happens rights at the end of

the
> > > > custom
> > > > action, just at the point that the update would be prompting the

user
> to
> > > > restart.
> > > > Any ideas why Windows Installer cannot handle the restart return

code
> > from
> > > > the update? Up to about 6 months ago the patches used to just force

a
> > > > restart and Windows Installer finished normally,
> > > > Thanks,
> > > > Anthony
> > > >
> > > >
> > >
> > >

> >
> >

>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
WIndows API Timer operations / wrapper class ? soworl Microsoft Outlook VBA Programming 1 4th Apr 2008 03:03 PM
.NET Wrapper for Windows Firewall... ? Skybuck Flying Microsoft Dot NET Framework 4 25th Jul 2007 01:22 AM
Windows Installer Installation Wrapper error =?Utf-8?B?V2lsc29u?= Windows XP Help 0 18th Feb 2007 01:43 PM
Managed Wrapper for Windows Media Center Scott Meddows Microsoft VB .NET 0 20th Aug 2004 03:25 AM
ANN: Free .NET Managed Windows Address Book (WAB) Wrapper component/tutorial Simon Bond Microsoft Dot NET Framework 0 11th Jul 2004 09:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:32 PM.