I assume Rob was speaking of WcaDoDeferredAction. If you are writing a CA in
C, I would defiantly be using wcautil.lib as it provides a framework for
handling native custom actions.
Ex:
EXPORT UINT __stdcall MyCA(MSIHANDLE hInstall)
{
HRESULT hr = S_OK;
UINT er = ERROR_SUCCESS;
hr = WcaInitialize(hInstall, "MyCA");
ExitOnFailure(hr, "Failed to initialize");
WcaLog(LOGMSG_STANDARD, "Initialized.");
if (Foo()) {
hr = WcaSetProperty(Foo_Property, TEXT("Bar"));
ExitOnFailure(hr, "Failed to SetProperty for Foo");
}
LExit:
er = SUCCEEDED(hr) ? ERROR_SUCCESS : ERROR_INSTALL_FAILURE;
return WcaFinalize(er);
}
-----Original Message-----
From: Ivanoff, Alex [mailto:[email protected]]
Sent: Thursday, March 12, 2015 2:25 PM
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] Reboots
Rob,
Can you be more specific? I am not that familiar with wcautil.lib.
-----Original Message-----
From: Phil Wilson [mailto:[email protected]]
Sent: Thursday, March 12, 2015 12:08
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] Reboots
MsiDoAction() on ScheduleReboot might work - I'm not sure if that's the
underlying method that Rob is referring to.
---------------
Phil Wilson
On Wed, Mar 11, 2015 at 1:09 PM, Rob Mensching <[email protected]> wrote:
> wcautil.lib provides a mechanism to do that.
>
> _____________________________________________________________
> Short replies here. Complete answers over there:
> http://www.firegiant.com/
>
>
> -----Original Message-----
> From: Ivanoff, Alex [mailto:[email protected]]
> Sent: Wednesday, March 11, 2015 11:42 AM
> To: General discussion about the WiX toolset.
> Subject: Re: [WiX-users] Reboots
>
> MsiSetMode does not seem to work when called from deferred custom action. So,
> my question should have been "How do I tell Windows Installer from deferred
> custom action written in C that reboot is required?"
>
> ----------------------------------------------------------------------
> -------- Dive into the World of Parallel Programming The Go Parallel
> Website, sponsored by Intel and developed in partnership with Slashdot
> Media, is your hub for all things parallel software development, from
> weekly thought leadership blogs to news, videos, case studies,
> tutorials and more. Take a look and join the conversation now.
> http://goparallel.sourceforge.net/
> _______________________________________________
> WiX-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users