[wix-users] RestartResource is not working for VS2015 on windows server 2012
sampat magi
ssmcs060 at gmail.com
Wed May 4 17:44:00 PDT 2016
Hi,
I am not using bundle right now, so am not passing anything from bundle to
msi. Please let me know if any information is needed.
Thanks
Sampat
On Thu, May 5, 2016 at 12:31 AM, Carter Young <ecyoung at grandecom.net> wrote:
> Where is VS2015DEVENV set. I don't think the value set in your bootstrap
> code is passable to the MSI in your Wix Payload, I.e I think you need a wix
> include file... Don't quote me on this until I see some more responses :)
>
>
> Quoting sampat magi <ssmcs060 at gmail.com>:
>
> 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
>>
>> ____________________________________________________________________
>> WiX Toolset Users Mailing List provided by FireGiant
>> http://www.firegiant.com/
>>
>>
>>
>
>
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>
More information about the wix-users
mailing list