CreateUser fails - how to rollback?
Posted: Wed Nov 20, 2013 8:52 am
Hello,
As part of my install I need to create a new local administrative user. This I have in place and after ApplyInstall is called, the call the CreateUser is made.
The problem is this -> if this call fails, i.e. the user cannot be created, I need to rollback the install.
This account must exist, and several services must be installed under this account for the product to work correctly.
Basically if I cannot create this account then I need to either a) terminate and rollback, or b) do this check during the dialog part of the install.
Can I call CreateUser before the ApplyInstall - preferably during the dialog process so I can prompt the user?
What is the best way to approach this?
Thanks,
Sheri
As part of my install I need to create a new local administrative user. This I have in place and after ApplyInstall is called, the call the CreateUser is made.
The problem is this -> if this call fails, i.e. the user cannot be created, I need to rollback the install.
This account must exist, and several services must be installed under this account for the product to work correctly.
Basically if I cannot create this account then I need to either a) terminate and rollback, or b) do this check during the dialog part of the install.
Can I call CreateUser before the ApplyInstall - preferably during the dialog process so I can prompt the user?
What is the best way to approach this?
Thanks,
Sheri