Re: [WiX-users] UserRegistrationDlg dialog and disable Next button until license key of X characters is entered?

2009-10-27 Thread kerberos
On Mon, Oct 26, 2009 at 10:51 PM, Blair  wrote:
> Managed code custom actions called frequently like that are going to be slow
> because of all the process creation-and-termination/CLI-state
> setup-and-teardown/etc. going on. You may be interested in the "workaround"
> described on this page
> (http://legalizeadulthood.wordpress.com/2009/10/23/ui-custom-action-guidelin
> es/) to get properties reevaluated while processing events.

Thanks and I saw this and tried it.  It worked decently although not
exactly how I'd hoped.  I decided that instead of trying to shoehorn a
solution into Wix I'd merely have the user agree to my license terms.
Then in my application I'd add functionality where the user could
activate the product.

In the future I will run dark.exe against msi's that have
functionality that I want -- to see if I can glean something from
them.

-- 
K

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] UserRegistrationDlg dialog and disable Next button until license key of X characters is entered?

2009-10-26 Thread Blair
Managed code custom actions called frequently like that are going to be slow
because of all the process creation-and-termination/CLI-state
setup-and-teardown/etc. going on. You may be interested in the "workaround"
described on this page
(http://legalizeadulthood.wordpress.com/2009/10/23/ui-custom-action-guidelin
es/) to get properties reevaluated while processing events.

-Original Message-
From: kerbe...@noopy.org [mailto:kerbe...@noopy.org] 
Sent: Thursday, October 22, 2009 10:30 AM
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] UserRegistrationDlg dialog and disable Next button
until license key of X characters is entered?

Hello,

I'd like my user registration dialog to work like the license page --
where the Next button is enabled upon clicking the button to agree to
the license.

I'm working along with the tutorial at
http://www.tramontana.co.hu/wix/ and have added a UserRegistrationDlg
dialog to the installer UI like so:

  





  CD &Key:



  1




  PIDKEYVALUE = "0"
  PIDKEYVALUE = "1"

  1
  1
  1
  PIDACCEPTED = "0"
  ProductID
AND PIDACCEPTED AND LicenseAccepted= "1"
  PIDKEYVALUE = "1"



  1



  Please enter your customer information



  {\WixUI_Font_Title}Customer Information


  

Originally I'd thought that I could setup a couple of conditions to
enable/disable the Next button depending on the state of text in
CDKeyEntry but these don't change state automatically when PIDKEY <>
"" -- the Next button ALWAYS remains disabled:

  PIDKEY = ""
  PIDKEY <> "1"

Since that didn't work I figured that I needed tie an action to a
value that I set in a CheckKEY(...) function in a DLL (C#):

[CustomAction]
public static ActionResult CheckKEY(Session session)
{
try {
string Pid = session["PIDKEY"];
session.Log("*** In CheckKEY: " + Pid + "|" + Pid.Length +
"|" + session["PIDKEYVALUE"]);
session["PIDKEYVALUE"] = (Pid.Length >= 5) ? "1" : "0";
} catch (Exception E) {
session.Log("!!! fux0red: " + E.Message);
return ActionResult.Failure;
}
return ActionResult.Success;
}

And add this as a custom action to CDKeyEntry:


  1


And add the following event for the Next button:



... etc ...
  PIDKEYVALUE = "1"


But even here, not only is the installer VERY SLOW as the result of
this lookup, the Next button is never enabled as I'd hope.

I've traced the output of the installer and it's clear that
CheckKEY(...) is being called AND PIDKEYVALUE is changed from 0 to 1,
but I remain unclear as to what might be amiss here.

Could someone shed some light?

-- 
K


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] UserRegistrationDlg dialog and disable Next button until license key of X characters is entered?

2009-10-22 Thread kerberos
Hello,

I'd like my user registration dialog to work like the license page --
where the Next button is enabled upon clicking the button to agree to
the license.

I'm working along with the tutorial at
http://www.tramontana.co.hu/wix/ and have added a UserRegistrationDlg
dialog to the installer UI like so:

  





  CD &Key:



  1




  PIDKEYVALUE = "0"
  PIDKEYVALUE = "1"

  1
  1
  1
  PIDACCEPTED = "0"
  ProductID
AND PIDACCEPTED AND LicenseAccepted= "1"
  PIDKEYVALUE = "1"



  1



  Please enter your customer information



  {\WixUI_Font_Title}Customer Information


  

Originally I'd thought that I could setup a couple of conditions to
enable/disable the Next button depending on the state of text in
CDKeyEntry but these don't change state automatically when PIDKEY <>
"" -- the Next button ALWAYS remains disabled:

  PIDKEY = ""
  PIDKEY <> "1"

Since that didn't work I figured that I needed tie an action to a
value that I set in a CheckKEY(...) function in a DLL (C#):

[CustomAction]
public static ActionResult CheckKEY(Session session)
{
try {
string Pid = session["PIDKEY"];
session.Log("*** In CheckKEY: " + Pid + "|" + Pid.Length +
"|" + session["PIDKEYVALUE"]);
session["PIDKEYVALUE"] = (Pid.Length >= 5) ? "1" : "0";
} catch (Exception E) {
session.Log("!!! fux0red: " + E.Message);
return ActionResult.Failure;
}
return ActionResult.Success;
}

And add this as a custom action to CDKeyEntry:


  1


And add the following event for the Next button:



... etc ...
  PIDKEYVALUE = "1"


But even here, not only is the installer VERY SLOW as the result of
this lookup, the Next button is never enabled as I'd hope.

I've traced the output of the installer and it's clear that
CheckKEY(...) is being called AND PIDKEYVALUE is changed from 0 to 1,
but I remain unclear as to what might be amiss here.

Could someone shed some light?

-- 
K

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users