jstart
Posts: 18
Joined: Fri Apr 17, 2015 10:48 am

Service Account Password variable replaced during AI upgrade

Hi,
This is a copy of a support email I originally sent on 12/02/2020 and 14/02/2020, but have not yet had a reply:

We have an installer project that adds our service with the credentials supplied during install time.
This used to work, however since upgrading the AIP from v13.6 to v14.9 it has ceased to work, the installed service doesn’t have the Password supplied during install time.

See attached screenshot files.

The Service Account Password variable has been replaced by a hidden number (as seen in the AIP file when viewed in a text editor):

Looking at the file difference:
V13.6: <ROW ServiceInstall="clsad2db.exe" Name="clsad2db.exe" DisplayName="Boldon James Classifier Reporting AD Service" ServiceType="16" StartType="3" ErrorControl="1" StartName="[SERVICE_USER]" Password="[SERVICE_PASSWORD]" Component_="ADService" Description="Synchronizes the Reporting database with Active Directory"/>

V14.9: <ROW ServiceInstall="clsad2db.exe" Name="clsad2db.exe" DisplayName="Boldon James Classifier Reporting AD Service" ServiceType="16" StartType="3" ErrorControl="1" StartName="[SERVICE_USER]" Password="63998CA4E193D003338085539C428211E4FB5B7A84803F00A496AD071368E4228D0A77D0" Component_="ADService" Description="Synchronizes the Reporting database with Active Directory"/>

A similar thing happens when upgrading from v13.6 to v15.1.

Could you explain what is going on, and how to rectify the issue so that the user password specified in a dialog is set on the installed service?

Thanks,

James.
Attachments
Screenshot of service account details after upgrade.
Screenshot of service account details after upgrade.
AIPv14.9 Sevice Account screenshot after upgrade.png (16.15 KiB) Viewed 5138 times
Screenshot of service account details before upgrade.
Screenshot of service account details before upgrade.
AIPv13-6 Sevice Account screenshot.png (3.56 KiB) Viewed 5138 times
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Service Account Password variable replaced during AI upgrade

Hi James,

I apologize for our delay. We were a bit overwhelmed here in the last days.

Starting with version 14.5 of Advanced Installer the password is stored encrypted in the project file for security reasons. However, I've just tested it and if you write the property related to the password in that field (e.g. [SERVICE_PASSWORD]), the service will still be installed under the desired account if the user will type the correct password during the installation.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jstart
Posts: 18
Joined: Fri Apr 17, 2015 10:48 am

Re: Service Account Password variable replaced during AI upgrade

Hi Eusebiu.

Thanks for the reply.

I've confirmed that [SERVICE_PASSWORD] and [SERVICE_USER] have the correct values set, by displaying them in a edit box on the next installer dialog AND from the MSI verbose installer log:

MSI (c) (20:70) [15:14:52:762]: PROPERTY CHANGE: Modifying SERVICE_PASSWORD property. Its current value is '<none>'. Its new value: 'abc123*'.
MSI (c) (20:70) [15:14:52:762]: PROPERTY CHANGE: Modifying SERVICE_USER property. Its current value is '<none>'. Its new value: 'domain\user'.

(for security I've replaced the actual values....)

However, the service created will not start, "The service did not start due to a logon failure.".

If I use the Services MMC to manually re-enter the password, it works.

I think something is going wrong when the installar creates the service with the supplied credentials.

Thanks,
James.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Service Account Password variable replaced during AI upgrade

Hi James,

If [SERVICE_PASSWORD] is the property that you used for the password, please copy and paste it in the "Password" field, so you make sure that no typo is introduced if you write it manually. Also, make sure that this property does not have the "Secure property" option set for it in the "Install Parameters" page.

As for the username, if you test your package on a local user account, not an user account that is part of a domain, you can also write the username like this: .\User (but domain\user should also work).

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jstart
Posts: 18
Joined: Fri Apr 17, 2015 10:48 am

Re: Service Account Password variable replaced during AI upgrade

Hi Eusebiu,

Thanks for getting back to me.

I've re-added the property (by copy & paste) to the service account password and it is all working now. :D

It did NOT have the "Secure property" option set for it in the "Install Parameters" page.

A suggestion to enhance the AI GUI would be to make the Service Account Password hidden for actual passwords and visible for property variables, if not already done - we are using Version 14.9 (D1A66FF2F1).

Many thanks,

James.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Service Account Password variable replaced during AI upgrade

You're welcome James. I'm glad you got this working.

Thank you for the suggestion. We already have this on our TODO list and it will be available in a future version of Advanced Installer.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”