[wix-users] RestartResource is not working for VS2015 on windows server 2012
sampat magi
ssmcs060 at gmail.com
Wed May 4 10:51:06 PDT 2016
HI,
I am making use of util:RestartResource to close the VS , if vs is
running.during our product installation.
*wix code goes like this.*
<Component Id="ScaffolderExtension.vsix"
Guid="{38173E26-6019-4756-9DF4-2BA2BEB66B47}">
<File Id="MVC_ScaffolderExtension.vsix" KeyPath="yes"
Source="MVC_ScaffolderExtension.vsix">
<VS:VsixPackage
PackageId="ScaffolderExtension..40e7bb7e-f72d-44cf-8439-2567be2590c6"/>
</File>
<util:RestartResource Path="[VS2015DEVENV]"
ProcessName="devenv.exe"/>
</Component>
*in the log i m seeing :*
wixregisterrestartresources: The MsiRestartManagerSessionKey property is
not available to join.
*when looked at the : RestartManager.cpp*
hr = ::StringCchLengthW(wzSessionKey, CCH_SESSION_KEY,
&cchSessionKey); ExitOnFailure(hr, "Failed to get the
MsiRestartManagerSessionKey string length."); // Skip if the
property doesn't exist. if (0 == cchSessionKey) {
WcaLog(LOGMSG_STANDARD, "The MsiRestartManagerSessionKey property is
not available to join."); ExitFunction(); }
*from msdn : *
The installer sets the value of the *MsiRestartManagerSessionKey*
property at initialization, and then clears the value during the
InstallValidate
<https://msdn.microsoft.com/en-us/library/windows/desktop/aa369546(v=vs.85).aspx>
action. Custom actions that need the value of the
*MsiRestartManagerSessionKey* property must be come before the
InstallValidate action in the action sequence.
So, What could be the issue here?
Regards,
Sampat
More information about the wix-users
mailing list