In my project, I have a service that is installed and is run by a dedicated user account. I fetch the details of this user account (username/password) during install time in one of the dialog. The password property is marked as "Persistent Property" and "Secure Property". Previously I had some issues, while launching the service as "AI_SecureProperty" action is called before "StartService" by default, hence making the password invalid. However, this was resolved by changing the execution order of actions in "Table Editor". The discussion related to this is here: viewtopic.php?f=2&t=39817
Now, in the same project, I have a weird behavior concerning the same service.
The flow "install" -> "Update" works completely fine.
But the flow "Install" -> "Modify" -> "Update" fails.
During "Modify" I reinstall the feature that contains the service, as I have to update a registry entry.
During the "Update", following things are done concerning the service:
1. Get user password from registry
2. Decrypt user password value using SecureProp.dll
3. InstallService
4. StartService
5. Call AI_SecureProperty
In the logs, I can see the above steps happening but the weird thing is, the actions #3 and #4 are called twice. And as they are called after "AI_SecureProperty", the "StartService" fails with invalid password (obviously, as the password is encrypted now).
I have attached the "Install", "Modify" and "Update" log for the reference.
Is there anything that I am missing here? Or is this is a bug?
Thanks.
Prerak
FOLLOW US
Get the latest news in Application Packaging