Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
ScheduleReboot action
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Prasanna  
View profile  
 More options Aug 24 2004, 4:43 am
Newsgroups: microsoft.public.platformsdk.msi
From: "Prasanna" <csoprasanna-nos...@hotmail.com>
Date: Mon, 23 Aug 2004 11:43:55 -0700
Local: Tues, Aug 24 2004 4:43 am
Subject: ScheduleReboot action
I am trying to schedule a reboot if certain actions were done as part of my
custom action. I have a CA1 that runs in a deferred mode. This CA1 sets a
registry key to indicate whether a reboot is necessary following the
installation. I need to have another CA2 run after my CA1. CA2 checks for
the registry key and must call ScheduleReboot action.

I run CA2 on a deferred mode. I just call
Session.DoAction("ScheduleReboot"). However my installation is giving an
error whenever it hits this CA2.

MSI (s) (D8:30): Executing op:
CustomActionSchedule(Action=aaa,ActionType=1062,Source=Session.DoAction
"ScheduleReboot"
,,)
MSI (s) (D8:30): Creating MSIHANDLE (1) of type 790536 for thread 5424
MSI (s) (D8:30): Creating MSIHANDLE (2) of type 0 for thread 5424
MSI (s) (D8:30): Entering MsiProvideComponentFromDescriptor. Descriptor:
Wwfyw*qz??RPR$j{ODC-SharedComponents>M5KDYSUnf(HA*L[xeX)y, PathBuf: F3D148,
pcchPathBuf: F3D358, pcchArgsOffset: F3D114
MSI (s) (D8:30): MsiProvideComponentFromDescriptor called for component
{997FA962-E067-11D1-9396-00A0C90F27F9}: returning harcoded oleaut32.dll
value
MSI (s) (D8:30): MsiProvideComponentFromDescriptor is returning: 0
MSI (s) (D8:30): Note: 1: 1720 2: aaa 3: -2147467259 4: Msi API Error 5:
DoAction,Action 6: 1 7: 1

I have CA1 scheduled to run after StartServices action. I have CA2 schduled
to run after CA1.

Am I doing something wrong?


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Phil Wilson  
View profile  
 More options Aug 24 2004, 5:10 am
Newsgroups: microsoft.public.platformsdk.msi
From: "Phil Wilson" <Phil.Wil...@unisys.spamcom>
Date: Mon, 23 Aug 2004 12:10:04 -0700
Local: Tues, Aug 24 2004 5:10 am
Subject: Re: ScheduleReboot action
Session.DoAction for ScheduleReboot apparently works only in an immediate
custom action.
--
Phil Wilson [MVP Windows Installer]
----
"Prasanna" <csoprasanna-nos...@hotmail.com> wrote in message

news:#wZulEUiEHA.1048@tk2msftngp13.phx.gbl...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Prasanna  
View profile  
 More options Aug 24 2004, 6:30 am
Newsgroups: microsoft.public.platformsdk.msi
From: "Prasanna" <csoprasanna-nos...@hotmail.com>
Date: Mon, 23 Aug 2004 13:30:34 -0700
Local: Tues, Aug 24 2004 6:30 am
Subject: Re: ScheduleReboot action
Yes, You are right. It worked when I had the mode set to Immediate. However
I want this to work from a deferred mode. Is there any way I can do it?

"Phil Wilson" <Phil.Wil...@unisys.spamcom> wrote in message

news:%23NB5MTUiEHA.3608@TK2MSFTNGP09.phx.gbl...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Prasanna  
View profile  
 More options Aug 24 2004, 10:58 am
Newsgroups: microsoft.public.platformsdk.msi
From: "Prasanna" <csoprasanna-nos...@hotmail.com>
Date: Mon, 23 Aug 2004 17:58:46 -0700
Local: Tues, Aug 24 2004 10:58 am
Subject: Re: ScheduleReboot action
I even tried writting a C++ DLL that will call ::MsiDoAction(hInstall,
_T("ScheduleReboot")). It doesn't seem to work.

Any ideas?

"Prasanna" <csoprasanna-nos...@hotmail.com> wrote in message

news:e0zGMAViEHA.1776@tk2msftngp13.phx.gbl...

CustomActionSchedule(Action=aaa,ActionType=1062,Source=Session.DoAction


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Phil Wilson  
View profile  
 More options Aug 24 2004, 11:22 am
Newsgroups: microsoft.public.platformsdk.msi
From: "Phil Wilson" <pdjwil...@nospam.cox.net>
Date: Mon, 23 Aug 2004 18:22:24 -0700
Local: Tues, Aug 24 2004 11:22 am
Subject: Re: ScheduleReboot action
I wouldn't expect it work really, it's the same API underneath. What's the
problem with making the CA immediate?
--
Phil Wilson
[MVP Windows Installer]
Definitive Guide to Windows Installer
http://www.amazon.com/exec/obidos/tg/detail/-/1590592972/104-7044380-...

"Prasanna" <csoprasanna-nos...@hotmail.com> wrote in message

news:exNqDWXiEHA.3264@tk2msftngp13.phx.gbl...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Prasanna  
View profile  
 More options Aug 24 2004, 11:27 am
Newsgroups: microsoft.public.platformsdk.msi
From: "Prasanna" <csoprasanna-nos...@hotmail.com>
Date: Mon, 23 Aug 2004 18:27:35 -0700
Local: Tues, Aug 24 2004 11:27 am
Subject: Re: ScheduleReboot action
I can't make it Immediate since I want to execute the CA after I start some
services. Basically CA1 is supposed to run after StartServices action. CA1
figures whether it need to do a reboot or not and then it should schedule a
reboot if required. The code is quite custom that needs to be done after I
install my service. Hence I need to run it on a deferred mode after the
services gets started.

"Phil Wilson" <pdjwil...@nospam.cox.net> wrote in message

news:OXis8hXiEHA.3944@tk2msftngp13.phx.gbl...
> I wouldn't expect it work really, it's the same API underneath. What's the
> problem with making the CA immediate?
> --
> Phil Wilson
> [MVP Windows Installer]
> Definitive Guide to Windows Installer

http://www.amazon.com/exec/obidos/tg/detail/-/1590592972/104-7044380-...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steven Bone  
View profile  
 More options Aug 24 2004, 4:15 pm
Newsgroups: microsoft.public.platformsdk.msi
From: "Steven Bone" <steven.b...@gmail.com>
Date: 23 Aug 2004 23:15:48 -0700
Local: Tues, Aug 24 2004 4:15 pm
Subject: Re: ScheduleReboot action
I had to do the exact same thing.  I created a file in the system temp
dir, but same concept.  Run CA2 as immediate after InstallFinalize in
the InstallExecute sequence as the workaround.  I wonder how the MSI
engine sets this in the standard actions that are likely running in
that context...

CustomActionSchedule(Action=aaa,ActionType=1062,Source=Session.DoAction


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Prasanna  
View profile  
 More options Aug 25 2004, 5:09 am
Newsgroups: microsoft.public.platformsdk.msi
From: "Prasanna" <csoprasanna-nos...@hotmail.com>
Date: Tue, 24 Aug 2004 12:09:14 -0700
Local: Wed, Aug 25 2004 5:09 am
Subject: Re: ScheduleReboot action
I moved CA2 after InstallFinalize action. Set CA2 to run as Immediate and it
works....

Thanks.

"Steven Bone" <steven.b...@gmail.com> wrote in message

news:cgemek$4hi@odah37.prod.google.com...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google