Validating a UserId/Pass combo?
Posted 27 February 2002 - 19:05
Posted 27 February 2002 - 21:20
1. I have a dialog with the customer information and set by it two properties ACCOUNT and PASSWORD.
2. I pass these properties to the standard Windows Installer dll to validate this information after clicking the Next button. This is a C++ code routine which validates the customer information and sets a new property VALIDATE as "YES" or "NO".
3. I use the VALIDATE property to allow or don't continue the installation.
Send me a message if this is fine for you and I will send you this code by email.
Posted 27 February 2002 - 21:43
So, you are saying that the MSI.DLL has a routine in it for validating a UserId/Password?
Opps, just noticed that my email isn't shown from my profile. :)
SWilliams@mrisystem.com
(Edited by Scott Williams at 3:44 pm on Feb. 27, 2002)
Posted 27 February 2002 - 21:57
This routine is declared as
UINT_stdcall MyRoutine(MSIHANDLE hInstall).
I created a custom action (MyCustomAction) in my project to call this routine with Action Type (Custom action wizard):
Type: Call a function in a Windows Installer dynamic-link library
Location: Stored in the Binary table
I set for the Next button in my dialog events as:
Event: DoAction
Argument: MyCustomAction
Condition: 1
and
Event: NewDialog
Argument: MyNextDialog
Condition: VALIDATE="YES"
Hope it helps.
Posted 27 February 2002 - 23:16
If you don't want to, that is fine.
Posted 28 February 2002 - 13:18
I have to install some services running in an own account (not localservice) where the account may be selected by the user, so checking would be good.
Would be nice if you could send me the code, too. Thanks.
Holger