[WiX-users] Bootstrapper VCredist
Hello all, I am currently working on an installer in which I would need to bootstrap VCredist. As some may know there are two separate files within the C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages folder: Vcredist_x64 Vcredist_x86 I have tried bootstrapping both product xmls and simply changed the FailIf element to BypassIf Property=ProcessorArchitecture Compare=ValueNotEqualTo Value=AMD64 String=InvalidOS/ I have done the same for the x86 product xml. Although my changes have correctly caused them to run on their respective machine. They appear to run regardless if there is an updated version of the VCredist already installed. Below I have posted both product xmls in hopes that someone has a suggestion on what to add within the product.xml files or if there is a better way of installing the VCredist altogether. Any help will be greatly appreciated. VCredist_x86 Product.xml ?xml version=1.0 encoding=utf-8 ? Product xmlns=http://schemas.microsoft.com/developer/2004/01/bootstrapper; ProductCode=Microsoft.Visual.C++.10.0.x86 !-- Defines list of files to be copied on build -- PackageFiles PackageFile Name=vcredist_x86.exe HomeSite=VCRedistExe/ /PackageFiles InstallChecks MsiProductCheck Property=VCRedistInstalled Product={6EE91C1A-A2E7-38CD-AEBB-3B900A4D8868}/ /InstallChecks !-- Defines how to invoke the setup for the Visual C++ 10.0 redist -- !-- TODO: Needs EstrimatedTempSpace, LogFile, and an update of EstimatedDiskSpace -- Commands Reboot=Defer Command PackageFile=vcredist_x86.exe Arguments=' /q:a ' !-- These checks determine whether the package is to be installed -- InstallConditions BypassIf Property=VCRedistInstalled Compare=ValueGreaterThanOrEqualTo Value=3/ !-- Block install if user does not have admin privileges -- FailIf Property=AdminUser Compare=ValueEqualTo Value=false String=AdminRequired/ !-- Block install on Win95 -- FailIf Property=Version9X Compare=VersionLessThan Value=4.10 String=InvalidPlatformWin9x/ !-- Block install on NT 4 or less -- !-- Custom comment below -- !-- FailIf Property=VersionNT Compare=VersionLessThan Value=5.00 String=InvalidPlatformWinNT/ -- !-- Change made to check if processor architecture is AMD64 -- BypassIf Property=ProcessorArchitecture Compare=ValueNotEqualTo Value=Intel String=InvalidOS/ /InstallConditions ExitCodes ExitCode Value=0 Result=Success/ ExitCode Value=3010 Result=SuccessReboot/ DefaultExitCode Result=Fail FormatMessageFromSystem=true String=GeneralFailure / /ExitCodes /Command /Commands /Product VCredist_x64 Product.xml ?xml version=1.0 encoding=utf-8 ? Product xmlns=http://schemas.microsoft.com/developer/2004/01/bootstrapper; ProductCode=Microsoft.Visual.C++.10.0.x64 !-- Defines list of files to be copied on build -- PackageFiles PackageFile Name=vcredist_x64.exe HomeSite=VCRedistExe/ /PackageFiles InstallChecks MsiProductCheck Property=VCRedistInstalled Product={5275B86B-C594-367D-8C38-F83DF9745B31}/ /InstallChecks !-- Defines how to invoke the setup for the Visual C++ 10.0 redist -- !-- TODO: Needs EstrimatedTempSpace, LogFile, and an update of EstimatedDiskSpace -- Commands Reboot=Defer Command PackageFile=vcredist_x64.exe Arguments=' /q:a ' !-- These checks determine whether the package is to be installed -- InstallConditions BypassIf Property=VCRedistInstalled Compare=ValueGreaterThanOrEqualTo Value=3/ !-- Block install if user does not have admin privileges -- FailIf Property=AdminUser Compare=ValueEqualTo Value=false String=AdminRequired/ !-- Block install on any platform other than x64 -- !-- Custom comment below -- !-- Changed from FailIf to BypassIf -- BypassIf Property=ProcessorArchitecture Compare=ValueNotEqualTo Value=AMD64 String=InvalidOS/ /InstallConditions ExitCodes ExitCode Value=0 Result=Success/ ExitCode Value=3010 Result=SuccessReboot/ DefaultExitCode Result=Fail FormatMessageFromSystem=true String=GeneralFailure / /ExitCodes /Command /Commands /Product -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Re: [WiX-users] WIX regsvr32 with XP
Thank you, I appreciate all of your help On Fri, May 25, 2012 at 3:24 AM, Rob Hamflett rob_hamfl...@sn.scee.netwrote: On 24/05/2012 17:52, Wilson, Phil wrote: Those top two are Visual C++ 2010 C runtime support Dlls, typically supplied with this type of thing: http://www.microsoft.com/en-us/download/details.aspx?id= or with merge modules that came with Visual Studio 2010. You'll probably need a minimum of XP SP3 (see the link, system requirements). Phil W Statically linking the binaries is another option. Rob -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] WIX regsvr32 with XP
Yes I have, when I run regsvr32 on XP I get LoadLibrary(the dll I'm using) failed - The specified module could not be found On Thu, May 24, 2012 at 3:18 AM, Rob Hamflett rob_hamfl...@sn.scee.netwrote: Have you tried running regsvr32 on the DLL directly on an XP machine? I've seen issues with DLLs where the developer is using a Windows 7 machine and has unknowingly used an API call that's just not available on XP. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] WIX regsvr32 with XP
I opened the dll with dependency walker and this is the error that I received Error: At least one required implicit or forwarded dependency was not found. Warning: At least one delay-load dependency module was not found. Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module. On Thu, May 24, 2012 at 9:15 AM, Pally Sandher pally.sand...@iesve.comwrote: Sounds like either as Rob says an API call which doesn't exist on XP or a missing dependency (essentially the same thing). Open your DLL in dependency walker on XP see what it says. Once you get it registering manually, use heat to register it the proper way in your MSI. Palbinder Sandher Software Platform Engineer T: +44 (0) 141 945 8500 F: +44 (0) 141 945 8501 http://www.iesve.com **Design, Simulate + Innovate with the Virtual Environment** Integrated Environmental Solutions Limited. Registered in Scotland No. SC151456 Registered Office - Helix Building, West Of Scotland Science Park, Glasgow G20 0SP Email Disclaimer -Original Message- From: Jelani Jackson [mailto:jeljac...@gmail.com] Sent: 24 May 2012 13:01 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] WIX regsvr32 with XP Yes I have, when I run regsvr32 on XP I get LoadLibrary(the dll I'm using) failed - The specified module could not be found On Thu, May 24, 2012 at 3:18 AM, Rob Hamflett rob_hamfl...@sn.scee.net wrote: Have you tried running regsvr32 on the DLL directly on an XP machine? I've seen issues with DLLs where the developer is using a Windows 7 machine and has unknowingly used an API call that's just not available on XP. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] WIX regsvr32 with XP
There are 3 files the that give an error opening a file they are: MSVCP100.DLL MSVCR100.DLL MSJAVA.DLL On Thu, May 24, 2012 at 9:56 AM, Jelani Jackson jeljac...@gmail.com wrote: I opened the dll with dependency walker and this is the error that I received Error: At least one required implicit or forwarded dependency was not found. Warning: At least one delay-load dependency module was not found. Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module. On Thu, May 24, 2012 at 9:15 AM, Pally Sandher pally.sand...@iesve.comwrote: Sounds like either as Rob says an API call which doesn't exist on XP or a missing dependency (essentially the same thing). Open your DLL in dependency walker on XP see what it says. Once you get it registering manually, use heat to register it the proper way in your MSI. Palbinder Sandher Software Platform Engineer T: +44 (0) 141 945 8500 F: +44 (0) 141 945 8501 http://www.iesve.com **Design, Simulate + Innovate with the Virtual Environment** Integrated Environmental Solutions Limited. Registered in Scotland No. SC151456 Registered Office - Helix Building, West Of Scotland Science Park, Glasgow G20 0SP Email Disclaimer -Original Message- From: Jelani Jackson [mailto:jeljac...@gmail.com] Sent: 24 May 2012 13:01 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] WIX regsvr32 with XP Yes I have, when I run regsvr32 on XP I get LoadLibrary(the dll I'm using) failed - The specified module could not be found On Thu, May 24, 2012 at 3:18 AM, Rob Hamflett rob_hamfl...@sn.scee.net wrote: Have you tried running regsvr32 on the DLL directly on an XP machine? I've seen issues with DLLs where the developer is using a Windows 7 machine and has unknowingly used an API call that's just not available on XP. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] WIX regsvr32 with XP
Hello all I am currently working on an installer which works for Windows Vista and Windows 7. When it comes to Windows XP on the other hand I receive the error code 1722. I logged the installation process and found that the error occurred when the command regsvr32 is ran for a particular dll (the only time regsvr32 is actually called). Any insight would be a great help. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] WIX regsvr32 with XP
Thank you for the feedback. I'm not necessarily certain how to go about doing that since I am developing the wix installer with visual studio. Also here is the error that I am getting Event Type: Error Event Source: MsiInstaller Event Category: None Event ID: 11722 Date: 5/23/2012 Time: 4:17:12 PM User: VIRTUALXP-52160\XPMUser Computer: VIRTUALXP-52160 Description: Product: [Product] -- Error 1722. There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor. Action RegisterPlugin, location: C:\Program Files\[Product Information]\, command: regsvr32.exe /s C:\Program Files\[Product Information].dll For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp. Data: : 7b 36 46 30 44 39 41 38 {6F0D9A8 0008: 41 2d 34 39 37 34 2d 34 A-4974-4 0010: 30 37 41 2d 42 34 42 33 07A-B4B3 0018: 2d 37 31 31 32 37 43 39 -71127C9 0020: 46 46 34 38 30 7d FF480} On Wed, May 23, 2012 at 3:02 PM, Wilson, Phil phil.wil...@invensys.comwrote: WiX has a tool for extracting COM information, it's harvested using heat.exe. Even if you wanted to have the Dll self-register you don't need to do that by running regsvr32 because Windows Installer has a SelfReg table, just get your Dll in there. Developers often think that installs work using the same tools as used during development. You don't need regsv32 to do registration (or regasm), you don't install assemblies in the GAC with GacUtil, and you don't need InstallUtil to install services etc. Phil W -Original Message- From: Jelani Jackson [mailto:jeljac...@gmail.com] Sent: Wednesday, May 23, 2012 11:28 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] WIX regsvr32 with XP Hello all I am currently working on an installer which works for Windows Vista and Windows 7. When it comes to Windows XP on the other hand I receive the error code 1722. I logged the installation process and found that the error occurred when the command regsvr32 is ran for a particular dll (the only time regsvr32 is actually called). Any insight would be a great help. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users *** Confidentiality Notice: This e-mail, including any associated or attached files, is intended solely for the individual or entity to which it is addressed. This e-mail is confidential and may well also be legally privileged. If you have received it in error, you are on notice of its status. Please notify the sender immediately by reply e-mail and then delete this message from your system. Please do not copy it or use it for any purposes, or disclose its contents to any other person. This email comes from a division of the Invensys Group, owned by Invensys plc, which is a company registered in England and Wales with its registered office at 3rd Floor, 40 Grosvenor Place, London, SW1X 7AW (Registered number 166023). For a list of European legal entities within the Invensys Group, please go to http://www.invensys.com/en/legal/default.aspx. You may contact Invensys plc on +44 (0)20 3155 1200 or e-mail recept...@invensys.com. This e-mail and any attachments thereto may be subject to the terms of any agreements between Invensys (and/or its subsidiaries and affiliates) and the recipient (and/or its subsidiaries and affiliates). -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https
Re: [WiX-users] WIX regsvr32 with XP
I only put the [] in to take out company information and I is heat only available by using the command prompt? Jelani Jackson Junior Software Developer jelani.jack...@powerdms.com (800) 749-5104, x 6035 www.powerdms.com LEGAL DISCLAIMER The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. -Original Message- From: Wilson, Phil [mailto:phil.wil...@invensys.com] Sent: Wednesday, May 23, 2012 5:38 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] WIX regsvr32 with XP Regsvr32 didn't work, that's the point. Maybe it couldn't find your file. : C:\Program Files\[Product Information]\, looks wrong to me, because [ ] implies a Windows Installer property, but not with that space in the middle. The point of the tools like heat is that you don't need to run code at install time - it's the weakest link. Extract it all with heat and you don't need to run anything else. Phil W -Original Message- From: Jelani Jackson [mailto:jeljac...@gmail.com] Sent: Wednesday, May 23, 2012 1:27 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] WIX regsvr32 with XP Thank you for the feedback. I'm not necessarily certain how to go about doing that since I am developing the wix installer with visual studio. Also here is the error that I am getting Event Type: Error Event Source: MsiInstaller Event Category: None Event ID: 11722 Date: 5/23/2012 Time: 4:17:12 PM User: VIRTUALXP-52160\XPMUser Computer: VIRTUALXP-52160 Description: Product: [Product] -- Error 1722. There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor. Action RegisterPlugin, location: C:\Program Files\[Product Information]\, command: regsvr32.exe /s C:\Program Files\[Product Information].dll For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp. Data: : 7b 36 46 30 44 39 41 38 {6F0D9A8 0008: 41 2d 34 39 37 34 2d 34 A-4974-4 0010: 30 37 41 2d 42 34 42 33 07A-B4B3 0018: 2d 37 31 31 32 37 43 39 -71127C9 0020: 46 46 34 38 30 7d FF480} On Wed, May 23, 2012 at 3:02 PM, Wilson, Phil phil.wil...@invensys.comwrote: WiX has a tool for extracting COM information, it's harvested using heat.exe. Even if you wanted to have the Dll self-register you don't need to do that by running regsvr32 because Windows Installer has a SelfReg table, just get your Dll in there. Developers often think that installs work using the same tools as used during development. You don't need regsv32 to do registration (or regasm), you don't install assemblies in the GAC with GacUtil, and you don't need InstallUtil to install services etc. Phil W -Original Message- From: Jelani Jackson [mailto:jeljac...@gmail.com] Sent: Wednesday, May 23, 2012 11:28 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] WIX regsvr32 with XP Hello all I am currently working on an installer which works for Windows Vista and Windows 7. When it comes to Windows XP on the other hand I receive the error code 1722. I logged the installation process and found that the error occurred when the command regsvr32 is ran for a particular dll (the only time regsvr32 is actually called). Any insight would be a great help. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users *** Confidentiality Notice: This e-mail, including any associated or attached files, is intended solely for the individual or entity to which it is addressed. This e-mail is confidential and may well also be legally privileged. If you have received it in error, you are on notice of its status. Please notify the sender immediately by reply e-mail and then delete this message from your system. Please do not copy it or use it for any purposes, or disclose its contents to any other person. This email comes from a division of the Invensys Group, owned by Invensys plc, which is a company registered in England and Wales with its registered office at 3rd Floor, 40 Grosvenor