[wix-users] pass credentials to a service and retry if wrong

Alan Sinclair anadem at gmail.com
Tue Aug 4 12:24:59 PDT 2020


Can a wix install which installs a service get user credentials, pass the
creds to the service, then if the credentials fail login ask the user to
re-enter them?

I *really *need advice please! I tried to ask this last week but didn't put
the question well (wasn't fully aware of my customer's needs)*.

The package installs a service. The user credentials are passed to the
service (which runs as Local System so does not itself require creds), and
the service registers the user with a backend process. If the registration
fails my customer wants to allow the user to re-enter their credentials and
retry the registration rather than fail the install.

Of course, the binaries in the install package have to be in place to run
the service. I'm familiar with getting user info using a WixUI dialog but I
don't know how to enable re-entry of creds to do what my customer wants

Can a deferred custom action DLL use the Wix UI to get the user info?
Perhaps handling the credentialing and registration should be done from a
custom action DLL?

As a less-desirable option my customer suggested that if the user
registration fails then the install should not roll back and instead should
allow the user to re-run the install (without replacing files) to re-enter
their credentials and pass them to the service again. I don't know how to
do that either, and it seems less optimal.

(The customer's current installer is authored in Innosetup and does what's
needed with registering the user and allowing credential re-entry when rqd,
but has other failings so they want to move to Wix.)

thanks
Alan


More information about the wix-users mailing list