Hi Alain, In general, Product ID="*" is a good thing. Each new build should generate a new product code because it typically means you've made changes to the product (i.e. made a new version). If you want to test the Maintenance dialog then run the same MSI (without rebuilding it!) twice.
When you use the <MajorUpgrade> element in WiX it handles removing the old version and installing the new version when you upgrade. Hence, in many cases the Welcome dialog is entirely appropriate because the user experience on upgrade or new installation from a UI perspective is similar. The MajorUpgrade element has options for displaying messages if the user tries to upgrade or downgrade and should not be allowed, etc. if that's what you need. If you want something more complicated on upgrade then you will have to do a little more work. Daniel Madill www.quanser.com -----Original Message----- From: David Watson [mailto:dwat...@sdl.com] Sent: March-22-13 1:12 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Question about conditional statements in elements Product Id="*" generates a new product code each time you build. -----Original Message----- From: Ackerman, Buddy [mailto:backer...@tnsi.com] Sent: 22 March 2013 17:04 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Question about conditional statements in elements That's not the case. I'm installing it on the same machine logged in as the same user. I guess my question is, what is the ProductCode, where is it set? Here's my Product element, what should be changed so that it knows that this an upgrade to a product that is already installed? <Product Id="*" Name="My App $(var.BuildVersion)$(var.BuildNameSuffix)" Language="!(loc.Language)" Version="$(var.BuildVersion)" Manufacturer="Me" UpgradeCode="75DD6EF7-EDDE-40D1-A997-170A8419A4E4" Codepage="1252" > -----Original Message----- From: Phil Wilson [mailto:phil.wil...@mvps.org] Sent: Friday, March 22, 2013 12:53 PM To: 'Phil Wilson'; 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] Question about conditional statements in elements Ah, the other explanation is that you installed that MSI in a per User context, and now you're installing it a different user context (another user or per System). Phil -----Original Message----- From: Phil Wilson [mailto:phil.wil...@mvps.org] Sent: Friday, March 22, 2013 9:51 AM To: 'General discussion for Windows Installer XML toolset.' Subject: RE: [WiX-users] Question about conditional statements in elements Yes, the Installed property means "this ProductCode is installed". If you see that Welcome dialog again the most obvious thing to check is whether the ProductCode has changed. The idea is that you only see the Welcome dialog on fresh first time install. Later actions based on the same ProductCode are maintenance options, feature add/remove etc. It's got to be the ProductCode changing. This stuff works all the time and has done for years. This is a Windows Installer property used in every MSI-based install, whether WiX or not. It's not likely that such a basic thing doesn't work. http://msdn.microsoft.com/en-us/library/windows/desktop/aa369297(v=vs.85).as px Phil -----Original Message----- From: Ackerman, Buddy [mailto:backer...@tnsi.com] Sent: Friday, March 22, 2013 9:32 AM To: chr...@iswix.com; General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Question about conditional statements in elements So what property is it actually checking to see if it's installed? On my product element there is a Version attribute and there is an UpgradeCode attribute, are these what are being used? Again I have already installed the product and when I run the installer again (with the Version attribute change to a higher minor version) this dialog still shows. I actually want the dialog to show but I am just curious as to why it is still showing given this criteria. Thanks. -----Original Message----- From: Christopher Painter [mailto:chr...@iswix.com] Sent: Friday, March 22, 2013 11:50 AM To: afor...@cmu.edu; General discussion for Windows Installer XML toolset.; General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Question about conditional statements in elements It means an MSI sharing this ProductCode ( either this PackageCode which would indicate a maintenance transaction or another PackageCode which would indicate a small or minor update ) is already installed. In the case of a Major Upgrade the ProductCode has been changed and therefore from this new MSI's perspective it is not yet installed. & is a special operator regarding features. See the links I sent in my other email. Regards, Chris ---------------------------------------- From: "Alain Forget" <afor...@cmu.edu> Sent: Friday, March 22, 2013 10:47 AM To: "General discussion for Windows Installer XML toolset." <wix-users@lists.sourceforge.net> Subject: Re: [WiX-users] Question about conditional statements in elements As far as I understand it, "Installed" means, "Before this installer was run, a version of this program was already installed on this machine". Someone please correct me if that isn't quite true. As far as &ftDatabase=3, I have no idea, I haven't yet seen that syntax yet. Alain -----Original Message----- From: Ackerman, Buddy [mailto:backer...@tnsi.com] Sent: March 22, 2013 11:39 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Question about conditional statements in elements I'm very new to WiX and have inherited an existing project. I've been deciphering it fine except for a few things. In this project I have the following element: <Show Dialog="WelcomeDlg" Before="ProgressDlg">NOT Installed</Show> The question with this is the "NOT Installed" condition. What exactly does "Installed" mean? When I run this to upgrade and already installed application this dialog still shows up. SO, I'm not sure what Installed really means (there is also an Upgrade element in the project with a property assigned to it that is used in other controls throughout the project). Next is the following syntax that I have in several control conditional statements: &ftDatabase=3 The ftDatabase is the ID of one of the Features. However, I don't know what value it would have. Is this an install level value or install type value? Thanks for some newbie help. ________________________________ This e-mail message is for the sole use of the intended recipient(s)and may contain confidential and privileged information of Transaction Network Services. Any unauthorised review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. ---------------------------------------------------------------------------- -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ---------------------------------------------------------------------------- -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ---------------------------------------------------------------------------- -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users This e-mail message is for the sole use of the intended recipient(s)and may contain confidential and privileged information of Transaction Network Services. Any unauthorised review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. ---------------------------------------------------------------------------- -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ----------------------------------------------------------------------------- - Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users This e-mail message is for the sole use of the intended recipient(s)and may contain confidential and privileged information of Transaction Network Services. Any unauthorised review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. ----------------------------------------------------------------------------- - Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users SDL PLC confidential, all rights reserved. If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us. SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207. Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK. ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users