Currently, our installer does a force reboot every time to ensure a reboot occurs should we ever update a driver we use. I am trying to find a way round this but nothing I try seems to work.
I attempted the attached action route that gets passed an MSIHANDLE however we need admin rights to install the driver and running in deferred prevents me from updating the REBOOT property.
I am now playing with calling a standard function in the hope that can be run as deferred but still update the property, however while I can get it to call the function I cannot get the passing of parameters in or out to work.
What I would like is an example of how to call a standard function as the document is severely lacking, and confirmation that this route is actually going to work.
Currently my function is defined as:
std::wstring __stdcall DeferredInstallDrivers(std::wstring szProperty)
{
MessageBox(NULL, szProperty.c_str(), L"livedrive.com", MB_OK);
return L"Force";
}
And the custom data passed to CallStdFcn is:
[&setuplib.dll]?S;REBOOT;S;DeferredInstallDrivers;B;S;I;This is a test?
Where setuplib.dll is a temporary file
FOLLOW US
Get the latest news in Application Packaging