Sorry I should have sent it to the list.
What am I trying to do, I have now used a maskededit box with just figures
going in. I now have two text boxes and one maskededit box , and what I want to
do is make sure that each box is completed, i.e. has been filled in before the
user can move on. If the user then moves back he/she can re enter any of the
data.
Here is the screen
<Dialog Id="UserRegistrationDlg" Width="370" Height="270" Title="[ProductName]
[Setup]" NoMinimize="yes">
<Control Id="NameLabel" Type="Text" X="45" Y="73" Width="100"
Height="15" TabSkip="no" Text="&User Name:" />
<Control Id="NameEdit" Type="Edit" X="45" Y="85" Width="220"
Height="18" Property="USERNAME" Text="{80}" />
<Control Id="OrganizationLabel" Type="Text" X="45" Y="110" Width="100"
Height="15" TabSkip="no" Text="&Organization:" />
<Control Id="OrganizationEdit" Type="Edit" X="45" Y="122" Width="220"
Height="18" Property="COMPANYNAME" Text="{80}" />
<Control Id="CDKeyLabel" Type="Text" X="45" Y="147" Width="50"
Height="10" TabSkip="no">
<Text>CD &Key:</Text>
</Control>
<Control Id="CDKeyEdit" Type="MaskedEdit" X="45" Y="159" Width="250"
Height="16" Property="PIDKEY" Text="[PIDTemplate]" />
<Control Id="Back" Type="PushButton" X="180" Y="243" Width="56"
Height="17" Text="[ButtonText_Back]">
<Publish Event="NewDialog" Value="LicenseAgreementDlg">1</Publish>
</Control>
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56"
Height="17" Default="yes" Text="[ButtonText_Next]">
<Publish Event="ValidateProductID" Value="0">0</Publish>
<Publish Event="SpawnWaitDialog"
Value="WaitForCostingDlg">CostingComplete = 1</Publish>
<Publish Event="NewDialog" Value="SetupTypeDlg">ProductID</Publish>
</Control>
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56"
Height="17" Cancel="yes" Text="[ButtonText_Cancel]">
<Publish Event="SpawnDialog" Value="CancelDlg">1</Publish>
</Control>
<Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370"
Height="44" TabSkip="no" Text="[BannerBitmap]" />
<Control Id="Description" Type="Text" X="25" Y="23" Width="280"
Height="15" Transparent="yes" NoPrefix="yes">
<Text>Please enter your customer information</Text>
</Control>
<Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370"
Height="0" />
<Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15"
Transparent="yes" NoPrefix="yes">
<Text>[DlgTitleFont]Customer Information</Text>
</Control>
<Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370"
Height="0" />
</Dialog>
I am using version 2.0.4221.0 because I need to release this as soon as
possible. I have found the user can just press next without filling in the
maskededit box and if the box is filled in then when they go back they can not
change it. Any help would be much appreciated.
Thanks
From: Levi Wilson [mailto:[EMAIL PROTECTED]
Sent: 24 January 2007 18:52
To: Joseph O'Sullivan
Cc: [email protected]
Subject: Re: [WiX-users] Help on uninstall
Which version of WiX are you using? I'm not EXACTLY sure what you're trying to
do, but it sounds like you don't want to allow them to move on to the next
dialog until "USERNAME" has a value in it? Is this the case? Also, don't
forget to CC a copy to the wix-users group when you reply please.
On 1/24/07, Joseph O'Sullivan <[EMAIL PROTECTED]> wrote:
Levi
Sorry to come direct but looks like you know the answer to this from scraps I
have read.
Here is the code I am using
<Dialog Id="UserRegistrationDlg" Width="370" Height="270" Title="[ProductName]
[Setup]" NoMinimize="yes">
<Control Id="NameLabel" Type="Text" X="45" Y="73" Width="100"
Height="15" TabSkip="no" Text="&User Name:" />
<Control Id="NameEdit" Type="Edit" X="45" Y="85" Width="220"
Height="18" Property="USERNAME" Text="{80}" />
<Control Id="OrganizationLabel" Type="Text" X="45" Y="110" Width="100"
Height="15" TabSkip="no" Text="&Organization:" />
<Control Id="OrganizationEdit" Type="Edit" X="45" Y="122" Width="220"
Height="18" Property="COMPANYNAME" Text="{80}" />
<Control Id="CDKeyLabel" Type="Text" X="45" Y="147" Width="50"
Height="10" TabSkip="no">
<Text>CD &Key:</Text>
</Control>
<Control Id="CDKeyEdit" Type="MaskedEdit" X="45" Y="159" Width="250"
Height="16" Property="PIDKEY" Text="[PIDTemplate]" />
<Control Id="Back" Type="PushButton" X="180" Y="243" Width="56"
Height="17" Text="[ButtonText_Back]">
<Publish Event="NewDialog" Value="LicenseAgreementDlg">1</Publish>
</Control>
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56"
Height="17" Default="yes" Text="[ButtonText_Next]">
<Publish Event="ValidateProductID" Value="0">0</Publish>
<Publish Event="SpawnWaitDialog"
Value="WaitForCostingDlg">CostingComplete = 1</Publish>
<Publish Event="NewDialog" Value="SetupTypeDlg">ProductID</Publish>
</Control>
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56"
Height="17" Cancel="yes" Text="[ButtonText_Cancel]">
<Publish Event="SpawnDialog" Value="CancelDlg">1</Publish>
</Control>
<Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370"
Height="44" TabSkip="no" Text="[BannerBitmap]" />
<Control Id="Description" Type="Text" X="25" Y="23" Width="280"
Height="15" Transparent="yes" NoPrefix="yes">
<Text>Please enter your customer information</Text>
</Control>
<Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370"
Height="0" />
<Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15"
Transparent="yes" NoPrefix="yes">
<Text>[DlgTitleFont]Customer Information</Text>
</Control>
<Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370"
Height="0" />
</Dialog>
Which is straight from one of the examples, I am trying to get the Username,
not from a property to only except numbers and not move on until it has data in
it. Any ideas cause I have been on this all day and have now gone bald pulling
my hair out ☺
Boy this is fun
Thanks
Joe
From: Levi Wilson [mailto:[EMAIL PROTECTED]
Sent: 24 January 2007 13:28
To: Joseph O'Sullivan
Cc: [email protected]
Subject: Re: [WiX-users] Help on uninstall
If you want to condition a CA to run on Install, but not uninstall you can just
use this for the install:
<Custom Action="CA1" After="InstallFinalize">NOT Installed</Custom>
and
<Custom Action="CA2" After="RemoveExistingProducts">Installed</Custom>
On the other one I believe.
On 1/24/07, Joseph O'Sullivan <[EMAIL PROTECTED]> wrote:
I have this piece of code in my MSI
Sample A.
<InstallExecuteSequence>
<Custom Action="SampleCustomAction" After="InstallFinalize" />
<RemoveExistingProducts After="SampleCustomAction" />
<Custom Action="MessTestCustomAction" After="RemoveExistingProducts">
</InstallExecuteSequence>
Sample B.
<InstallExecuteSequence>
<Custom Action="SampleCustomAction" After="InstallFinalize" />
<RemoveExistingProducts After="SampleCustomAction" />
<Custom Action="MessTestCustomAction"
After="RemoveExistingProducts"><![CDATA[REMOVE <> "~ALL"]]></Custom>
</InstallExecuteSequence>
My thoughts are these the custom actions are to run on install, but not
on uninstall. When I have these in the install it installs fine but just
says there is an error when I uninstall. Both examples of the code give
the same error. I suppose my question is that I am doing this right for
the installs to run on just the install, if not how do I do it.
Regards
Joe
______________________________________________________________________
You might be interested in this...
RM has been accredited by BECTa as a Learning Platform Services Supplier.
Find out more about Learning Platforms and what they will mean for you
in the Guardian's 8 page supplement:
http://www.rm.com/generic.asp?cref=GP840211&srcurl=ICS120107PT
______________________________________________________________________Visit our
Website at http://www.rm.com
This message is confidential. You should not copy it or disclose its contents
to anyone. You may use and apply the information for the intended purpose only.
Internet communications are not secure; therefore, RM does not accept legal
responsibility for the contents of this message. Any views or opinions
presented are those of the author only and not of RM. If this email has come to
you in error, please delete it, along with any attachments. Please note that RM
may intercept incoming and outgoing email communications.
Freedom of Information Act 2000
This email and any attachments may contain confidential information belonging
to RM. Where the email and any attachments do contain information of a
confidential nature, including without limitation information relating to trade
secrets, special terms or prices these shall be deemed for the purpose of the
Freedom of Information Act 2000 as information provided in confidence by RM and
the disclosure of which would be prejudicial to RM’s commercial interests.
This email has been scanned for viruses by Trend ScanMail.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users