Apparently my response got lost in the mail, apologies if it is received twice. My response contains the solution.
Troy > -----Original Message----- > From: Troy Simpson [mailto:[EMAIL PROTECTED] > Sent: Saturday, 21 June 2008 9:00 AM > To: 'General discussion for Windows Installer XML toolset.' > Subject: RE: [WiX-users] Separate ExitDialog for Uninstall > > I'm not sure how much "research" I would have needed to discover I did > not add a 'hidden' attribute to the control. It was a bad assumption > on my behalf that a condition to "show" does not imply an otherwise > non-displaying state. The private property to use is: > > <Condition Action="show">WixUI_InstallMode = > "Remove"</Condition> > > The event may be to remove, however it is also setting properties. > This allows us to tailor responses based upon the install or > maintenance action. > > Troy > > > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:wix-users- > > [EMAIL PROTECTED] On Behalf Of Calin Iaru > > Sent: Friday, 20 June 2008 8:58 PM > > To: General discussion for Windows Installer XML toolset. > > Subject: Re: [WiX-users] Separate ExitDialog for Uninstall > > > > I will not do the research for you - the link I sent shows the > > difference between a public and a private property. In short public > > properties are also properties that are set as a result of user > > interaction. What you are doing is not setting a property, but an > event > > which is called Remove as in: > > > > <Control Id="Remove" Type="PushButton" X="236" Y="243" Width="56" > > Height="17" Text="[ButtonText_Remove]" Default="yes"> > > <Publish Event="Remove" Value="ALL"><![CDATA[OutOfDiskSpace <> > > 1]]></Publish> > > > > Try with REMOVE=ALL condition once more. > > > > Troy Simpson wrote: > > > I think I see where this is going, but hopefully it might be more > > intuitive. > > > I can set a property based on whether the product is already > > installed, but > > > what I need to do is retrieve the property value when the remove > > button is > > > clicked. Given that the property set by the remove button is > > private, is > > > there a way of also setting a public property value? i.e., can > > multiple > > > properties be set by one button press? Or is that off the mark? > > Thanks for > > > the help so far, this seems like a fairly fundamental thing and is > > the last > > > remaining issue in my installer. > > > > > > > > > > > > > > >> -----Original Message----- > > >> From: [EMAIL PROTECTED] [mailto:wix-users- > > >> [EMAIL PROTECTED] On Behalf Of Calin Iaru > > >> Sent: Friday, 20 June 2008 7:58 PM > > >> To: General discussion for Windows Installer XML toolset. > > >> Subject: Re: [WiX-users] Separate ExitDialog for Uninstall > > >> > > >> There is a difference between REMOVE and Remove - the first one is > a > > >> public property, the second is a private: > > >> http://msdn.microsoft.com/en-us/library/aa371245(VS.85).aspx > > >> I will let others to continue on this issue. Perhaps I will look > at > > >> your > > >> project. > > >> > > >> Troy Simpson wrote: > > >> > > >>> The Remove="All" didn't work, I had tried variations of that > > >>> > > >> previously. I > > >> > > >>> looked at the Remove button on the maintenance dialog and the > > >>> > > >> property that > > >> > > >>> is being set is WixUI_InstallMode, and the value is "Remove", so > I > > >>> > > >> tried the > > >> > > >>> condition: > > >>> > > >>> Not WixUI_InstallMode="Remove" > > >>> > > >>> That did not work either. I have tried many, many variations, > and > > >>> > > >> none have > > >> > > >>> worked. I'm sure I'm doing something silly though. > > >>> > > >>> I have uploaded my wix build project to here: > > >>> > > >>> http://www.ebswift.com/temp/buildsubversion.zip > > >>> > > >>> It doesn't include any of the subversion binaries so it won't > > build, > > >>> > > >> but the > > >> > > >>> files are there. In the BuildSubversion\WixDialog folder you > will > > >>> > > >> see the > > >> > > >>> PostDlg.wxs that I am trying to get the condition working in. > > >>> > > >>> > > >>> > > >>> > > >>> > > >>>> -----Original Message----- > > >>>> From: [EMAIL PROTECTED] [mailto:wix-users- > > >>>> [EMAIL PROTECTED] On Behalf Of Calin Iaru > > >>>> Sent: Friday, 20 June 2008 6:43 PM > > >>>> To: General discussion for Windows Installer XML toolset. > > >>>> Subject: Re: [WiX-users] Separate ExitDialog for Uninstall > > >>>> > > >>>> EXISTINGPRODUCTS was a suggestion; what you need to do is to use > a > > >>>> different property that when set, will show a different dialog > > >>>> > > >> control. > > >> > > >>>> For instance, if the user does an uninstall, use the > REMOVE="ALL" > > >>>> condition. > > >>>> > > >>>> Troy Simpson wrote: > > >>>> > > >>>> > > >>>>> Thanks for the suggestions Calin, > > >>>>> > > >>>>> Preferably, I'd like to have the condition in the modified > > ExitDlg > > >>>>> > > >> - > > >> > > >>>> I've > > >>>> > > >>>> > > >>>>> made a copy of it and using that instead. The existingproducts > > >>>>> > > >>>>> > > >>>> condition > > >>>> > > >>>> > > >>>>> did not seem to make any difference, the control code is as > > >>>>> > > >> follows: > > >> > > >>>>> <Control Id="PostText" Type="ScrollableText" > > X="20" > > >>>>> > > >>>>> > > >>>> Y="70" > > >>>> > > >>>> > > >>>>> Width="330" Height="151" Sunken="yes" TabSkip="no"> > > >>>>> <Text > > >>>>> SourceFile="!(wix.WixUIPostRtf=$(var.postRtf))"> > > >>>>> </Text> > > >>>>> <Condition > > >>>>> Action="show">EXISTINGPRODUCTS</Condition> > > >>>>> </Control> > > >>>>> > > >>>>> Is there anything jumping out there that can be tweaked? > > >>>>> > > >>>>> > > >>>>> Troy > > >>>>> > > >>>>> > > >>>>> > > >>>>> > > >>>>> > > >>>>>> -----Original Message----- > > >>>>>> From: [EMAIL PROTECTED] [mailto:wix- > users- > > >>>>>> [EMAIL PROTECTED] On Behalf Of Calin Iaru > > >>>>>> Sent: Friday, 20 June 2008 5:49 PM > > >>>>>> To: General discussion for Windows Installer XML toolset. > > >>>>>> Subject: Re: [WiX-users] Separate ExitDialog for Uninstall > > >>>>>> > > >>>>>> Or you can use the same ExitDlg and customize the elements > > inside > > >>>>>> > > >> it > > >> > > >>>>>> like bitmaps, static text, position of elements based on > > >>>>>> > > >> conditions. > > >> > > >>>>>> <Control Id="Description1" Type="Text" X="135" Y="130" > > >>>>>> > > >>>>>> > > >>>> Width="220" > > >>>> > > >>>> > > >>>>>> Height="40" Text="For new users, we recommend that you read > the > > >>>>>> > > >>>>>> > > >>>> quick > > >>>> > > >>>> > > >>>>>> guide located on the web. Click on the Finish button to exit > the > > >>>>>> > > >>>>>> > > >>>> Setup > > >>>> > > >>>> > > >>>>>> Wizard." Transparent="yes"> > > >>>>>> <Condition Action="show">Not > EXISTINGPRODUCTS</Condition> > > >>>>>> <Condition Action="hide">1</Condition> > > >>>>>> </Control> > > >>>>>> <Control Id="Description2" Type="Text" X="135" Y="130" > > >>>>>> > > >>>>>> > > >>>> Width="220" > > >>>> > > >>>> > > >>>>>> Height="40" Text="The Upgrade process completed." > > >>>>>> > > >> Transparent="yes"> > > >> > > >>>>>> <Condition Action="show">EXISTINGPRODUCTS</Condition> > > >>>>>> <Condition Action="hide">1</Condition> > > >>>>>> </Control> > > >>>>>> > > >>>>>> > > >>>>>> Calin Iaru wrote: > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>>>> If I were you, I would play with <InstallUISequence> where > some > > >>>>>>> variations could yield the expected results. This is how I > > >>>>>>> > > >> display > > >> > > >>>> a > > >>>> > > >>>> > > >>>>>>> Firewall Dialog which adds some applications to the Windows > > >>>>>>> > > >>>>>>> > > >>>> Firewall > > >>>> > > >>>> > > >>>>>>> after installation. Normally, the ExitDlg would be displayed > > when > > >>>>>>> finishing the installation, but I needed it customized. > > >>>>>>> > > >>>>>>> <Show Dialog="FirewallDlg" Sequence="7999"> > > >>>>>>> <![CDATA[ > > >>>>>>> ((VersionNT = 501 And ServicePackLevel >= 2) Or > > >>>>>>> > > >>>>>>> > > >>>>>>> > > >>>>>> (VersionNT = > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>>>> 502 And ServicePackLevel >= 1) Or (VersionNT = 600)) > > >>>>>>> And SomeLongCondition And Not EXISTINGPRODUCTS > > >>>>>>> ]]> > > >>>>>>> </Show> > > >>>>>>> <Show Dialog="ExitDlg" OnExit="success"> > > >>>>>>> <![CDATA[ > > >>>>>>> Not ( > > >>>>>>> ((VersionNT = 501 And ServicePackLevel >= 2) Or > > >>>>>>> > > >>>>>>> > > >>>>>>> > > >>>>>> (VersionNT = > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>>>> 502 And ServicePackLevel >= 1) Or (VersionNT = 600)) > > >>>>>>> And SomeLongCondition And Not EXISTINGPRODUCTS > > >>>>>>> ) > > >>>>>>> ]]> > > >>>>>>> </Show> > > >>>>>>> > > >>>>>>> As long as you have Sequence and Conditions, there should be > a > > >>>>>>> > > >> way. > > >> > > >>>>>>> Troy Simpson wrote: > > >>>>>>> > > >>>>>>> > > >>>>>>> > > >>>>>>> > > >>>>>>>> Hi, > > >>>>>>>> > > >>>>>>>> I'm building the new win32 installer for Subversion with WiX > > but > > >>>>>>>> > > >>>>>>>> > > >>>>>>>> > > >>>>>> I've struck > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>>>>> one snag. I would like to display a different dialog for > > >>>>>>>> > > >> install, > > >> > > >>>>>>>> uninstall, and possibly repair. > > >>>>>>>> > > >>>>>>>> I have customised the ExitDialog to show a nice post-install > > >>>>>>>> > > >>>>>>>> > > >>>> message > > >>>> > > >>>> > > >>>>>> for > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>>>>> users, but obviously upon uninstall it wouldn't be logical > to > > >>>>>>>> > > >> show > > >> > > >>>>>>>> > > >>>>>> the same > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>>>>> post-install message. I have tried all kinds of > combinations > > of > > >>>>>>>> > > >>>>>>>> > > >>>>>>>> > > >>>>>> conditions > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>>>>> but cannot get this dialog to change. > > >>>>>>>> > > >>>>>>>> There has been very positive feedback from the Subversion > > >>>>>>>> > > >>>>>>>> > > >>>> community > > >>>> > > >>>> > > >>>>>> for the > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>>>>> switch over to WiX and having an MSI installer instead of an > > exe > > >>>>>>>> > > >>>>>>>> > > >>>>>>>> > > >>>>>> installer. > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>>>>> I am using SharpDevelop 3 as the WiX installer build tool. > > >>>>>>>> > > >>>>>>>> Can anyone assist? > > >>>>>>>> > > >>>>>>>> > > >>>>>>>> Regards, > > >>>>>>>> > > >>>>>>>> Troy Simpson > > >>>>>>>> Subversion Win32 Installer Maintainer ( SWIM?? ;) ) > > >>>>>>>> > > >>>>>>>> > > >>>>>>>> > > >>>>>>>> > > >>>>>>>> ------------------------------------------------------------ > -- > > -- > > >>>>>>>> > > >> -- > > >> > > >>>> -- > > >>>> > > >>>> > > >>>>>> ----- > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>>>>> Check out the new SourceForge.net Marketplace. > > >>>>>>>> It's the best place to buy or sell services for > > >>>>>>>> just about anything Open Source. > > >>>>>>>> http://sourceforge.net/services/buy/index.php > > >>>>>>>> _______________________________________________ > > >>>>>>>> WiX-users mailing list > > >>>>>>>> WiX-users@lists.sourceforge.net > > >>>>>>>> https://lists.sourceforge.net/lists/listinfo/wix-users > > >>>>>>>> > > >>>>>>>> > > >>>>>>>> > > >>>>>>>> > > >>>>>>>> > > >>>>>>>> > > >>>>>>> ------------------------------------------------------------- > -- > > -- > > >>>>>>> > > >> -- > > >> > > >>>> -- > > >>>> > > >>>> > > >>>>>> ---- > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>>>> Check out the new SourceForge.net Marketplace. > > >>>>>>> It's the best place to buy or sell services for > > >>>>>>> just about anything Open Source. > > >>>>>>> http://sourceforge.net/services/buy/index.php > > >>>>>>> _______________________________________________ > > >>>>>>> WiX-users mailing list > > >>>>>>> WiX-users@lists.sourceforge.net > > >>>>>>> https://lists.sourceforge.net/lists/listinfo/wix-users > > >>>>>>> > > >>>>>>> > > >>>>>>> > > >>>>>>> > > >>>>>>> > > >>>>>> -------------------------------------------------------------- > -- > > -- > > >>>>>> > > >> -- > > >> > > >>>> --- > > >>>> > > >>>> > > >>>>>> -- > > >>>>>> Check out the new SourceForge.net Marketplace. > > >>>>>> It's the best place to buy or sell services for > > >>>>>> just about anything Open Source. > > >>>>>> http://sourceforge.net/services/buy/index.php > > >>>>>> _______________________________________________ > > >>>>>> WiX-users mailing list > > >>>>>> WiX-users@lists.sourceforge.net > > >>>>>> https://lists.sourceforge.net/lists/listinfo/wix-users > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>> --------------------------------------------------------------- > -- > > -- > > >>>>> > > >> -- > > >> > > >>>> ---- > > >>>> > > >>>> > > >>>>> Check out the new SourceForge.net Marketplace. > > >>>>> It's the best place to buy or sell services for > > >>>>> just about anything Open Source. > > >>>>> http://sourceforge.net/services/buy/index.php > > >>>>> _______________________________________________ > > >>>>> WiX-users mailing list > > >>>>> WiX-users@lists.sourceforge.net > > >>>>> https://lists.sourceforge.net/lists/listinfo/wix-users > > >>>>> > > >>>>> > > >>>>> > > >>>>> > > >>>> ---------------------------------------------------------------- > -- > > -- > > >>>> > > >> --- > > >> > > >>>> -- > > >>>> Check out the new SourceForge.net Marketplace. > > >>>> It's the best place to buy or sell services for > > >>>> just about anything Open Source. > > >>>> http://sourceforge.net/services/buy/index.php > > >>>> _______________________________________________ > > >>>> WiX-users mailing list > > >>>> WiX-users@lists.sourceforge.net > > >>>> https://lists.sourceforge.net/lists/listinfo/wix-users > > >>>> > > >>>> > > >>> ----------------------------------------------------------------- > -- > > -- > > >>> > > >> ---- > > >> > > >>> Check out the new SourceForge.net Marketplace. > > >>> It's the best place to buy or sell services for > > >>> just about anything Open Source. > > >>> http://sourceforge.net/services/buy/index.php > > >>> _______________________________________________ > > >>> WiX-users mailing list > > >>> WiX-users@lists.sourceforge.net > > >>> https://lists.sourceforge.net/lists/listinfo/wix-users > > >>> > > >>> > > >>> > > >> ------------------------------------------------------------------ > -- > > --- > > >> -- > > >> Check out the new SourceForge.net Marketplace. > > >> It's the best place to buy or sell services for > > >> just about anything Open Source. > > >> http://sourceforge.net/services/buy/index.php > > >> _______________________________________________ > > >> WiX-users mailing list > > >> WiX-users@lists.sourceforge.net > > >> https://lists.sourceforge.net/lists/listinfo/wix-users > > >> > > > > > > > > > ------------------------------------------------------------------- > -- > > ---- > > > Check out the new SourceForge.net Marketplace. > > > It's the best place to buy or sell services for > > > just about anything Open Source. > > > http://sourceforge.net/services/buy/index.php > > > _______________________________________________ > > > WiX-users mailing list > > > WiX-users@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > > > > > > > > > --------------------------------------------------------------------- > -- > > -- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://sourceforge.net/services/buy/index.php > > _______________________________________________ > > WiX-users mailing list > > WiX-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users