Hello,
You recently helped me with an issue with the upgrading of installers with Windows Services in an Upgrade First then uninstall scenario
The solution is to
1. Prompt the user for the service account DomainName, UserName and Password in a Dialog
2. Install the Service using the DomainName, Username and Password
3. Persist the DomainName and Username in the registry (not the password).
4. On upgrading pre-populate the DomainName and Username properties from the registry
5. Hide the credentials Dialog from the user
6. The Service is stopped, as the Username and Domain are the same the service remains as is
**THE BLANK PASSWORD IS NOT SET OVER THE TOP OF THE EXISTING PASSWORD**
7. The new Service .exe file is copied in and the Service is started again as the new version
Perfect, however the same is not true in an IIS Application Pool
Again this is an Upgrade First then uninstall scenario
1. Prompt the user for the Application pool DomainName, UserName and Password in a Dialog
2. Install the Application Pool using the DomainName, Username and Password
3. Persist the DomainName and Username in the registry (not the password).
4. On upgrading pre-populate the DomainName and Username properties from the registry (not the password)
5. Hide the credentials Dialog from the user
6. The Application pool credentials are re-set
**THE BLANK PASSWORD IS SET OVER THE TOP OF THE EXISTING PASSWORD**
7. The application pool fails to start because of the blank password
I also tried to set the Install condition to "NOT UPGRADEPRODUCTS" however all that happens is that the installer runs through, decides to not reinstall the IIS (great) however then just uninstalls Application pool as part of the "Uninstall after" installation.
What I would like to know is - is there a way to fix this?
I would just like for a blank password in the IIS Application Pool section to mean "do not change password" rather than "set to a blank password".
Perhaps there is a way that I could set the property [APPPOOLPASSWORD] = "DONOTCHANGE" to prevent a change?
I don't want to persist the password (encrypted or otherwise)
Thanks,
Dave