[wix-devs] Wix patches and 3.14

Blair Murri osito at live.com
Thu Jan 17 20:51:29 PST 2019


I took a quick glance at the code in the exception stack. Don't we have 1 or 2 issues open regarding failures involving TempFileCollection in elevated processes?

Get Outlook for Android<https://aka.ms/ghei36>

________________________________
From: wix-devs <wix-devs-bounces at lists.wixtoolset.org> on behalf of Steven Ogilvie via wix-devs <wix-devs at lists.wixtoolset.org>
Sent: Thursday, January 17, 2019 6:27:08 AM
To: Rob Mensching; wix-devs at lists.wixtoolset.org
Cc: Steven Ogilvie
Subject: Re: [wix-devs] Wix patches and 3.14

Sorry I wasn't really clear..

I have NO issues creating MSI's and Bundles that works like a charm.

However, if I try to create a patch based on the MSI it fails:

set INTERMEDIATE_DIRECTORY=%1
set OLD_INSTALLER=%2
set NEW_INSTALLER=%3
mkdir %OLD_INSTALLER%
mkdir %NEW_INSTALLER%

set OLD_INSTALLER_PATH=%4
set NEW_INSTALLER_PATH=%5

cd "%INTERMEDIATE_DIRECTORY%"

copy /V /Y "%OLD_INSTALLER_PATH%\*" "%OLD_INSTALLER%"
copy /V /Y "%NEW_INSTALLER_PATH%\*" "%NEW_INSTALLER%"

rem Melt.exe: Windows Installer XML Toolset Melter
"C:\Program Files (x86)\MSBuild\Genetec.Extensions\WiX\3.11.1\Melt.exe" -v "%OLD_INSTALLER%\AirportSense.BRM.msi" -out "%INTERMEDIATE_DIRECTORY%\AirportSense.BRM.Old.Corrected.wixpdb" -pdb "%OLD_INSTALLER%\AirportSense.BRM.wixpdb" -x "%INTERMEDIATE_DIRECTORY%\ProductOldbits"

"C:\Program Files (x86)\MSBuild\Genetec.Extensions\WiX\3.11.1\Melt.exe" -v "%NEW_INSTALLER%\AirportSense.BRM.msi" -out "%INTERMEDIATE_DIRECTORY%\AirportSense.BRM.New.Corrected.wixpdb" -pdb "%NEW_INSTALLER%\AirportSense.BRM.wixpdb" -x "%INTERMEDIATE_DIRECTORY%\ProductNewbits"

rem Torch.exe: Windows Installer XML Toolset Transform Builder
"C:\Program Files (x86)\MSBuild\Genetec.Extensions\WiX\3.11.1\torch.exe" -p -v -xi "%INTERMEDIATE_DIRECTORY%\AirportSense.BRM.Old.Corrected.wixpdb" %INTERMEDIATE_DIRECTORY%\AirportSense.BRM.New.Corrected.wixpdb" -out "%INTERMEDIATE_DIRECTORY%\Genetec_AirportSense.BRM_Patch.wixmst"

rem Candle.exe: Windows Installer XML Toolset Compiler
"C:\Program Files (x86)\MSBuild\Genetec.Extensions\WiX\3.11.1\candle.exe" -v "%INTERMEDIATE_DIRECTORY%\Genetec_AirportSense.BRM_Patch.wxs" -out "%INTERMEDIATE_DIRECTORY%\Genetec_AirportSense.BRM_Patch.wixobj"

rem Light.exe: Windows Installer XML Toolset Linker
"C:\Program Files (x86)\MSBuild\Genetec.Extensions\WiX\3.11.1\light.exe" -v "%INTERMEDIATE_DIRECTORY%\Genetec_AirportSense.BRM_Patch.wixobj" -out "%INTERMEDIATE_DIRECTORY%\Genetec_AirportSense.BRM_Patch.wixmsp"

rem Pyro.exe: Windows Installer XML Toolset Patch Builder
"C:\Program Files (x86)\MSBuild\Genetec.Extensions\WiX\3.11.1\pyro.exe" -v "%INTERMEDIATE_DIRECTORY%\Genetec_AirportSense.BRM_Patch.wixmsp" -out "%INTERMEDIATE_DIRECTORY%\Genetec_AirportSense.BRM_Patch.msp" -t media1 "%INTERMEDIATE_DIRECTORY%\Genetec_AirportSense.BRM_Patch.wixmst"


When I run this in an elevated cmd prompt (since our build process is run elevated) this happens:


D:\Repos\Genetec.AP.AOM\Installation\BDRM\Patch>rem Melt.exe: Windows Installer XML Toolset Melter

D:\Repos\Genetec.AP.AOM\Installation\BDRM\Patch>"C:\Program Files (x86)\MSBuild\Genetec.Extensions\WiX\3.11.1\Melt.exe" -v "D:\Repos\Genetec.AP.AOM\Installation\BDRM\Patch\AirportSense.BRM\old\AirportSense.BRM.msi" -out "D:\Repos\Genetec.AP.AOM\Installation\BDRM\Patch\AirportSense.BRM.Old.Corrected.wixpdb" -pdb "D:\Repos\Genetec.AP.AOM\Installation\BDRM\Patch\AirportSense.BRM\old\AirportSense.BRM.wixpdb" -x "D:\Repos\Genetec.AP.AOM\Installation\BDRM\Patch\ProductOldbits"
Windows Installer XML Toolset Melter version 3.11.1.2318
Copyright (c) .NET Foundation and contributors. All rights reserved.

AirportSense.BRM.msi / AirportSense.BRM.wixpdb
melt.exe : error MELT0001 : Could not find a part of the path 'C:\Users\stogilvie\AppData\Local\Temp\ymqcpill\ymqcpill.cab'.

Exception Type: System.IO.DirectoryNotFoundException

Stack Trace:
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
   at Microsoft.Tools.WindowsInstallerXml.Pdb.Load(Stream stream, Uri uri, Boolean suppressVersionCheck, Boolean suppressSchema)
   at Microsoft.Tools.WindowsInstallerXml.Pdb.Load(String path, Boolean suppressVersionCheck, Boolean suppressSchema)
   at Microsoft.Tools.WindowsInstallerXml.Tools.Melt.MeltProduct()
   at Microsoft.Tools.WindowsInstallerXml.Tools.Melt.Run(String[] args)

D:\Repos\Genetec.AP.AOM\Installation\BDRM\Patch>ping 192.0.2.1 -n 4 -w 2000  1>NUL

D:\Repos\Genetec.AP.AOM\Installation\BDRM\Patch>"C:\Program Files (x86)\MSBuild\Genetec.Extensions\WiX\3.11.1\Melt.exe" -v "D:\Repos\Genetec.AP.AOM\Installation\BDRM\Patch\AirportSense.BRM\new\AirportSense.BRM.msi" -out "D:\Repos\Genetec.AP.AOM\Installation\BDRM\Patch\AirportSense.BRM.New.Corrected.wixpdb" -pdb "D:\Repos\Genetec.AP.AOM\Installation\BDRM\Patch\AirportSense.BRM\new\AirportSense.BRM.wixpdb" -x "D:\Repos\Genetec.AP.AOM\Installation\BDRM\Patch\ProductNewbits"
Windows Installer XML Toolset Melter version 3.11.1.2318
Copyright (c) .NET Foundation and contributors. All rights reserved.

AirportSense.BRM.msi / AirportSense.BRM.wixpdb
melt.exe : error MELT0001 : Could not find a part of the path 'C:\Users\stogilvie\AppData\Local\Temp\n21exshp\n21exshp.cab'.

Exception Type: System.IO.DirectoryNotFoundException

Stack Trace:
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
   at Microsoft.Tools.WindowsInstallerXml.Pdb.Load(Stream stream, Uri uri, Boolean suppressVersionCheck, Boolean suppressSchema)
   at Microsoft.Tools.WindowsInstallerXml.Pdb.Load(String path, Boolean suppressVersionCheck, Boolean suppressSchema)
   at Microsoft.Tools.WindowsInstallerXml.Tools.Melt.MeltProduct()
   at Microsoft.Tools.WindowsInstallerXml.Tools.Melt.Run(String[] args)

D:\Repos\Genetec.AP.AOM\Installation\BDRM\Patch>ping 192.0.2.1 -n 4 -w 2000  1>NUL

D:\Repos\Genetec.AP.AOM\Installation\BDRM\Patch>rem Torch.exe: Windows Installer XML Toolset Transform Builder

D:\Repos\Genetec.AP.AOM\Installation\BDRM\Patch>"C:\Program Files (x86)\MSBuild\Genetec.Extensions\WiX\3.11.1\torch.exe" -p -v -xi "D:\Repos\Genetec.AP.AOM\Installation\BDRM\Patch\AirportSense.BRM.Old.Corrected.wixpdb" "D:\Repos\Genetec.AP.AOM\Installation\BDRM\Patch\AirportSense.BRM.New.Corrected.wixpdb" -out "D:\Repos\Genetec.AP.AOM\Installation\BDRM\Patch\Genetec_AirportSense.BRM_Patch.wixmst"
Windows Installer XML Toolset Transform Builder version 3.11.1.2318
Copyright (c) .NET Foundation and contributors. All rights reserved.

torch.exe : error TRCH0258 : The file 'D:\Repos\Genetec.AP.AOM\Installation\BDRM\Patch\AirportSense.BRM.Old.Corrected.wixpdb' cannot be found.

D:\Repos\Genetec.AP.AOM\Installation\BDRM\Patch>ping 192.0.2.1 -n 4 -w 2000  1>NUL

D:\Repos\Genetec.AP.AOM\Installation\BDRM\Patch>rem Candle.exe: Windows Installer XML Toolset Compiler

D:\Repos\Genetec.AP.AOM\Installation\BDRM\Patch>"C:\Program Files (x86)\MSBuild\Genetec.Extensions\WiX\3.11.1\candle.exe" -v "D:\Repos\Genetec.AP.AOM\Installation\BDRM\Patch\Genetec_AirportSense.BRM_Patch.wxs" -out "D:\Repos\Genetec.AP.AOM\Installation\BDRM\Patch\Genetec_AirportSense.BRM_Patch.wixobj"
Windows Installer XML Toolset Compiler version 3.11.1.2318
Copyright (c) .NET Foundation and contributors. All rights reserved.

Genetec_AirportSense.BRM_Patch.wxs

D:\Repos\Genetec.AP.AOM\Installation\BDRM\Patch>rem Light.exe: Windows Installer XML Toolset Linker

D:\Repos\Genetec.AP.AOM\Installation\BDRM\Patch>"C:\Program Files (x86)\MSBuild\Genetec.Extensions\WiX\3.11.1\light.exe" -v "D:\Repos\Genetec.AP.AOM\Installation\BDRM\Patch\Genetec_AirportSense.BRM_Patch.wixobj" -out "D:\Repos\Genetec.AP.AOM\Installation\BDRM\Patch\Genetec_AirportSense.BRM_Patch.wixmsp"
Windows Installer XML Toolset Linker version 3.11.1.2318
Copyright (c) .NET Foundation and contributors. All rights reserved.


If I run in non elevated process it works like a charm....

Thanks,

Steve

From: Rob Mensching <rob at firegiant.com>
Sent: January 16, 2019 11:39 PM
To: Steven Ogilvie <stogilvie at GENETEC.COM>; wix-devs at lists.wixtoolset.org
Subject: RE: Wix patches and 3.14

1. What is the exact issue?

2. For an exact time frame, ask again in about 3 or so months. In the meantime, you can, of course, use any WiX v3.x build you want... including your own private build.


PS If you want guarantees, you should check out the Enterprise Support Program provided by FireGiant. I know the team there, they are very responsive to customer issues.


From: Steven Ogilvie <stogilvie at GENETEC.COM<mailto:stogilvie at GENETEC.COM>>
Sent: Tuesday, January 15, 2019 11:40 AM
To: wix-devs at lists.wixtoolset.org<mailto:wix-devs at lists.wixtoolset.org>
Cc: Rob Mensching <rob at firegiant.com<mailto:rob at firegiant.com>>
Subject: Wix patches and 3.14
Importance: High

Hi all,

We are currently using WiX 3.11.1 for a few WiX installers (we use InstallShield for most projects).

For a few of the WiX installers, luckily we do not need to do patches because we are BLOCKED...

Our build process is run in an Elevated process, which craps out with Melt.exe and Torch.exe.


  1.  Are there any current work arounds for this?

     *   I have tried using "runas /trustlevel:0x20000" and "PSExec.exe" with no joy...
     *   Also tried using PowerShell scripts as well...

  1.  When is 3.14 going to be released which supposedly has a fix for this issue, an exact time frame please... since we cannot continue to use WiX for new projects if we can't create patches...

Cheers,

Steve

Steve Ogilvie
Builds and Release

Genetec Inc. * Intelligence * Operations * Security
Video Surveillance | Access Control | License Plate Recognition

P: +1-514-332-4000 x9149 * M: +1-613 299-2121 * stogilvie at genetec.com<mailto:stogilvie at genetec.com>
2280, Alfred-Nobel Blvd, Montreal, QC, H4S 2A4, Canada

Confidentiality Message * This e-mail message is confidential, may be privileged and is intended for the exclusive use of the
addressee. Any other person is strictly prohibited from disclosing, distributing or reproducing it. If the addressee cannot be
reached or is unknown to you, please inform the sender by return e-mail immediately and delete this e-mail message and
destroy all copies.

____________________________________________________________________
WiX Toolset Developer Mailing List provided by FireGiant http://www.firegiant.com/



More information about the wix-devs mailing list