[WiX-users] repair does not repair file that was changed
I tried the following options in wix xml: Property Id=REINSTALLMODE Value=amus / - doesn't work File ... DefaultVersion= ... (file version lying) - doesn't work RemoveFile ... On=both' ... - doesn't work In all cases the installer (Windows 7, IA-64 machine) does not overwrite text files that have been installed and then changed with a text editor. Moreover, even if I remove these files by hand and uninstall the product, after installing the changed version of these files appear rather than the original one. Is there any reliable way to always overwrite non-versioned files on installing/repairing the product? Thanks. -- Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] repair does not repair file that was changed
Options that work: 1) give the text file a versioned binary CompanionFile; 2) play games with the timestamp per other discussions on this list. I currently use the CompanionFile technique in production, but I am intrigued by manipulating the timestamps and I have a task for myself to implement a table-driven touch custom action to put that into practice. -- John Merryweather Cooper Build Install Engineer - ESA Jack Henry Associates, Inc.® Shawnee Mission, KS 66227 Office: 913-341-3434 x791011 jocoo...@jackhenry.com www.jackhenry.com -Original Message- From: Andrew Makhorin [mailto:m...@gnu.org] Sent: Tuesday, December 10, 2013 8:15 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] repair does not repair file that was changed I tried the following options in wix xml: Property Id=REINSTALLMODE Value=amus / - doesn't work File ... DefaultVersion= ... (file version lying) - doesn't work RemoveFile ... On=both' ... - doesn't work In all cases the installer (Windows 7, IA-64 machine) does not overwrite text files that have been installed and then changed with a text editor. Moreover, even if I remove these files by hand and uninstall the product, after installing the changed version of these files appear rather than the original one. Is there any reliable way to always overwrite non-versioned files on installing/repairing the product? Thanks. -- Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users NOTICE: This electronic mail message and any files transmitted with it are intended exclusively for the individual or entity to which it is addressed. The message, together with any attachment, may contain confidential and/or privileged information. Any unauthorized review, use, printing, saving, copying, disclosure or distribution is strictly prohibited. If you have received this message in error, please immediately advise the sender by reply email and delete all copies. -- Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] repair does not repair file that was changed
You should specify the -v- option. The documentation isn't very clear, but -v- tells it to use the original source, which is where it needs to get the file from anyway. I just tried REINSTALLMODE values of vamus and vdmus and both replaced the file with the original from the MSI, and the log entries say: MSI (s) (8C:94) [08:30:01:567]: Executing op: FileCopy(SourceName=TEST.TXT|test.txt,SourceCabKey=_2B80071304CE4FFC84B55067AD7D3886,DestName=test.txt,Attributes=512,FileSize=34,PerTick=65536,,VerifyMedia=1,CheckCRC=0,,,InstallMode=130023424,,,) MSI (s) (8C:94) [08:30:01:567]: File: C:\Program Files (x86)\Microsoft\Setup1\test.txt; Overwrite; Won't patch; REINSTALLMODE specifies all files to be overwritten MSI (s) (8C:94) [08:30:01:567]: Source for file '_2B80071304CE4FFC84B55067AD7D3886' is compressed Phil Wilson On Tue, Dec 10, 2013 at 6:31 AM, John Cooper jocoo...@jackhenry.com wrote: Options that work: 1) give the text file a versioned binary CompanionFile; 2) play games with the timestamp per other discussions on this list. I currently use the CompanionFile technique in production, but I am intrigued by manipulating the timestamps and I have a task for myself to implement a table-driven touch custom action to put that into practice. -- John Merryweather Cooper Build Install Engineer - ESA Jack Henry Associates, Inc.® Shawnee Mission, KS 66227 Office: 913-341-3434 x791011 jocoo...@jackhenry.com www.jackhenry.com -Original Message- From: Andrew Makhorin [mailto:m...@gnu.org] Sent: Tuesday, December 10, 2013 8:15 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] repair does not repair file that was changed I tried the following options in wix xml: Property Id=REINSTALLMODE Value=amus / - doesn't work File ... DefaultVersion= ... (file version lying) - doesn't work RemoveFile ... On=both' ... - doesn't work In all cases the installer (Windows 7, IA-64 machine) does not overwrite text files that have been installed and then changed with a text editor. Moreover, even if I remove these files by hand and uninstall the product, after installing the changed version of these files appear rather than the original one. Is there any reliable way to always overwrite non-versioned files on installing/repairing the product? Thanks. -- Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users NOTICE: This electronic mail message and any files transmitted with it are intended exclusively for the individual or entity to which it is addressed. The message, together with any attachment, may contain confidential and/or privileged information. Any unauthorized review, use, printing, saving, copying, disclosure or distribution is strictly prohibited. If you have received this message in error, please immediately advise the sender by reply email and delete all copies. -- Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Using Windows SDK Bootstrapper Packages with WiX
I think that's the thing that mutated into the Bootstrap Manifest Generator (which is still out there) and you could encode your prerequisites, detections with text (the manifest) and get them installed, for ClickOnce and MSI. It seems to have fallen by the wayside recently. If there's already a WiX/Bundle data-driven prerequisites mechanism for detection and installation, then perhaps Rob is referring to a library of prerequisite detection mechanisms and not actual code? Phil Wilson On Mon, Dec 9, 2013 at 2:21 PM, Rob Mensching r...@robmensching.com wrote: Those are for use with SetupDeployment projects. Would be great if someone wanted to convert them to Bundle concepts and provide them to WiX toolset. We already have a few of them. -Original Message- From: Brian Enderle [mailto:bria...@gmail.com] Sent: Monday, December 9, 2013 11:52 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Using Windows SDK Bootstrapper Packages with WiX In tracking down another issue I came across the folder C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\Bootstrapper\Packages that looks like it contains a number of pre-made installer items for various programs. I have a project I am on now that requires Crystal Reports and would like to know: 1) Can I use the Crystal Reports for .NET Framework 4.0 installer project found in this directory to install Crystal Reports using a WiX bootstrapper (exe output) or WiX project (msi output)? 2) How would I go about including this Crystal Reports installation package in the bootstrapper or msi project? Brian If you can't explain it simply, you don't understand it well enough. - Albert Einstein -- Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Using Windows SDK Bootstrapper Packages with WiX
I am indeed referring to a reusable library of .wxs code that anyone could use in Bundles to install that stuff. We already have NETFX covered (I do believe). -Original Message- From: Phil Wilson [mailto:phildgwil...@gmail.com] Sent: Tuesday, December 10, 2013 8:47 AM To: General discussion about the WiX toolset. Subject: Re: [WiX-users] Using Windows SDK Bootstrapper Packages with WiX I think that's the thing that mutated into the Bootstrap Manifest Generator (which is still out there) and you could encode your prerequisites, detections with text (the manifest) and get them installed, for ClickOnce and MSI. It seems to have fallen by the wayside recently. If there's already a WiX/Bundle data-driven prerequisites mechanism for detection and installation, then perhaps Rob is referring to a library of prerequisite detection mechanisms and not actual code? Phil Wilson On Mon, Dec 9, 2013 at 2:21 PM, Rob Mensching r...@robmensching.com wrote: Those are for use with SetupDeployment projects. Would be great if someone wanted to convert them to Bundle concepts and provide them to WiX toolset. We already have a few of them. -Original Message- From: Brian Enderle [mailto:bria...@gmail.com] Sent: Monday, December 9, 2013 11:52 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Using Windows SDK Bootstrapper Packages with WiX In tracking down another issue I came across the folder C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\Bootstrapper\Packages that looks like it contains a number of pre-made installer items for various programs. I have a project I am on now that requires Crystal Reports and would like to know: 1) Can I use the Crystal Reports for .NET Framework 4.0 installer project found in this directory to install Crystal Reports using a WiX bootstrapper (exe output) or WiX project (msi output)? 2) How would I go about including this Crystal Reports installation package in the bootstrapper or msi project? Brian If you can't explain it simply, you don't understand it well enough. - Albert Einstein -- Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631iu=/4140/ostg. clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631iu=/4140/ostg. clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Can't add a comment to an existing bug on wixtoolset.org
Thanks, Rob :) Stephen Tunney Nuance Communications, Inc. Solutions Architect, Imaging Division Waterloo, Ontario, Canada stephen.tun...@nuance.com 519-880-7463Office NUANCE.COM The experience speaks for itself (tm) -Original Message- From: Rob Mensching [mailto:r...@robmensching.com] Sent: December-09-13 6:21 PM To: General discussion about the WiX toolset. Subject: Re: [WiX-users] Can't add a comment to an existing bug on wixtoolset.org Strange. Just hit the same thing myself. The comment gets posted and no error comes back but the error message gets displayed anyway. That's really weird. There were issues with ads sneaking into the pages as well. At FireGiant we're in the process of moving the server to a new hosting solution. I'll keep an eye on this problem as we migrate. Hopefully, this problem (and many of other problems) will be gone when moved. For now, if you refresh, you'll see your comment is there. -Original Message- From: Tunney, Stephen [mailto:stephen.tun...@nuance.com] Sent: Monday, December 9, 2013 3:05 PM To: General discussion about the WiX toolset. Subject: Re: [WiX-users] Can't add a comment to an existing bug on wixtoolset.org Oh, no. They are there. :) Stephen Tunney Nuance Communications, Inc. Solutions Architect, Imaging Division Waterloo, Ontario, Canada stephen.tun...@nuance.com 519-880-7463Office NUANCE.COM The experience speaks for itself (tm) -Original Message- From: Rob Mensching [mailto:r...@robmensching.com] Sent: December-09-13 5:13 PM To: General discussion about the WiX toolset. Subject: Re: [WiX-users] Can't add a comment to an existing bug on wixtoolset.org Which issue are you talking about? -Original Message- From: Tunney, Stephen [mailto:stephen.tun...@nuance.com] Sent: Monday, December 9, 2013 11:43 AM To: General discussion about the WiX toolset. Subject: Re: [WiX-users] Can't add a comment to an existing bug on wixtoolset.org Looks as though my comments were added each time properly, however my browser was not updated to show that and I get the following in a red box above the comment edit box and Send for triage checkbox. Error! Something went awry while submitting your changes. Please, try again. -Original Message- From: Tunney, Stephen [mailto:stephen.tun...@nuance.com] Sent: December-09-13 2:31 PM To: General discussion about the WiX toolset. Subject: [WiX-users] Can't add a comment to an existing bug on wixtoolset.org Anyone else having this problem? I'm running Chrome on win7 pro x64. Stephen Tunney Nuance Communications, Inc. Solutions Architect, Imaging Division Waterloo, Ontario, Canada stephen.tun...@nuance.commailto:stephen.tun...@nuance.com 519-880-7463 Office NUANCE.COM The experience speaks for itself (tm) -- Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] upgrade: current install is per-machine but related install is per-user. skipping...
Hi all, I wrote an installer for my app and now I am trying to release an upgrade and creating an installer for that. The issue I am having is that the new installer logs tell me that old install was per-user while current install is per-machine and thus it fails to findrelatedproducts and hence fails to removeexistingproducts. Both my original installer and upgrade installer do not specify the InstallScope. I have two questions: 1: Why is my original install a per-user install? Is it because I wrote to HKCU? 2: Why is my new/upgrade install a per-machine install? I am not changing anything in the upgrade except version number and product. I tried adding InstallScope=perUser explicity under Package in my upgrade but the logs still say that current install is per-machine and don't remove the old product. What do I need to do to so that my upgrade removes the old code and installs the new version of the app? My original and upgrade installer code is given below. Thanks. My original installer code: ?xml version=1.0 encoding=utf-8? ?include rtcversion.wxi ? Wix xmlns=http://schemas.microsoft.com/wix/2006/wi; Product Name=$(var.ApplicationName) Id=$(var.MyApp_Component_PRODUCT_ID_STR) UpgradeCode=$(var.MyApp_Component_UPGRADE_CODE_STR) Version=$(var.MyApp_PRODUCTVERSION_STR) Manufacturer=$(var.VER_COMPANYNAME_STR) Language=!(loc.LANG_CODE) Codepage=1252 Package Id=* Keywords=Installer Description=$(var.ApplicationName) Installer InstallerVersion=450 Compressed=yes / Property Id=VCREDIST_INSTALLED RegistrySearch Id=RegistrySearch_VCRedist_Installed Key=SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{95716cce-fc71-413f-8ad5-56c2892d4b3a} Name=DisplayVersion Root=HKLM Type=raw / /Property Condition Message=$(var.ApplicationName) installation requires Microsoft Visual C++ 2012 Redistributable (x86). Installation cannot continue. Please install Microsoft Visual C++ 2012 Redistributable (x86) from http://www.microsoft.com/en-us/download/details.aspx?id=30679 and try again.![CDATA[INSTALLED Or VCREDIST_INSTALLED Or BYPASS_MyApp_DEPENDENCY_CHECKS Or REMOVE=ALL]]/Condition PropertyRef Id=NETFRAMEWORK45 / Condition Message=$(var.ApplicationName) installation requires Microsoft .NET Framework 4.5. Installation cannot continue. Please install Microsoft .NET Framework 4.5 from http://www.microsoft.com/en-us/download/details.aspx?id=30653 and try again.![CDATA[INSTALLED Or NETFRAMEWORK45 Or BYPASS_MyApp_DEPENDENCY_CHECKS Or REMOVE=ALL]]/Condition Icon Id=MyApp.ico SourceFile=$(var.BASEPATH)\MyApp\MyApp.ico/ Property Id=ARPPRODUCTICON Value=MyApp.ico / Property Id=WIXUI_INSTALLDIR Value=MYAPPDIR / Property Id=WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT Value=Launch $(var.ApplicationName) / Property Id=WixShellExecTarget Value=[#MyApp_exe] / CustomAction Id=LaunchApplication BinaryKey=WixCA DllEntry=WixShellExec Impersonate=yes / Media Id=1 Cabinet=MyApp.cab EmbedCab=yes / UI UIRef Id=WixUI_InstallDir / Publish Dialog=ExitDialog Control=Finish Event=DoAction Value=LaunchApplicationWIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed/Publish /UI Directory Id=TARGETDIR Name=SourceDir Directory Id=ProgramFilesFolder Name=PFiles Directory Id=MYAPPDIR ShortName=MyApp Name=$(var.ApplicationName) / /Directory Directory Id=ProgramMenuFolder Name=Programs / /Directory DirectoryRef Id=MYAPPDIR Component Id=MyApp_executable File Id=MyApp_exe Source=$(var.BASEPATH)\MyApp\MyApp.exe KeyPath=yes / /Component /DirectoryRef DirectoryRef Id=ProgramMenuFolder Component Id=MyApp_shortcut Guid=82CBCBED-F0FD-497A-A34C-6290B7AAE4C4 Shortcut Id=ApplicationStartMenuShortcut Name=$(var.ApplicationName) Desktop Target=[MYAPPDIR]MyApp.exe WorkingDirectory=MYAPPDIR / RemoveFile Id=ApplicationStartMenuShortcut Name=RemoveShortcut On=uninstall / RegistryValue Root=HKCU Key=Software\XYZ\$(var.ApplicationName) Name=installed Type=integer Value=1 KeyPath=yes / /Component /DirectoryRef Feature Id=MyApp_Application Title=$(var.ApplicationName) Level=1 ConfigurableDirectory=MYAPPDIR ComponentRef Id=MyApp_executable / ComponentRef Id=MyApp_shortcut / /Feature /Product /Wix My upgrade installer code: ?xml version=1.0 encoding=utf-8? Wix xmlns=http://schemas.microsoft.com/wix/2006/wi; Product Name=$(var.ApplicationName) Id=$(var.MyApp_Component_PRODUCT_ID_STR) UpgradeCode=$(var.MyApp_Component_UPGRADE_CODE_STR) Version=$(var.MyApp_PRODUCTVERSION_STR) Manufacturer=$(var.VER_COMPANYNAME_STR) Language=!(loc.LANG_CODE) Codepage=1252 Package Id=* Keywords=Installer Description=$(var.ApplicationName) Installer InstallerVersion=450