ima-aa
Posts: 22
Joined: Mon Feb 03, 2014 2:37 pm

Setting service account with fully qualified name

Thu Dec 22, 2016 7:02 pm

Hello,

I have a problem building a setup for a small windows service. The setup shows a dialog where the user enters the credentials for the service.

If I use the fully qualified name like domain\user everything is ok
if I use the fully qualified name like user@domain.toplevel the service can't be installed

Code: Select all

MSI (s) (84:38) [18:54:17:458]: APPCOMPAT: looking for appcompat database entry with ProductCode '{7522A893-9B13-4A89-A8E2-D97BCBBACF08}'.
MSI (s) (84:38) [18:54:17:460]: APPCOMPAT: no matching ProductCode found in database.
MSI (s) (84:38) [18:54:17:463]: Transforms are not secure.
MSI (s) (84:38) [18:54:17:466]: Transforming table Property.

MSI (s) (84:38) [18:54:17:469]: Note: 1: 2262 2: Control 3: -2147287038 
MSI (s) (84:38) [18:54:17:472]: Transforming table Control.

MSI (s) (84:38) [18:54:17:474]: PROPERTY CHANGE: Adding MsiLogFileLocation property. Its value is 'C:\Users\A29E4~1.AUD\AppData\Local\Temp\log27DF.log'.
MSI (s) (84:38) [18:54:17:477]: Command Line: AI_UNINSTALLER=C:\ProgramData\Caphyon\Advanced Installer\{7522A893-9B13-4A89-A8E2-D97BCBBACF08}\DynaMed_Update_Setup.exe USERNAME=admin SOURCEDIR=C:\Users\a.auderer\AppData\Roaming\IMA-Systems Information-Technology GmbH\DynaMed - Update 3.4.16357.5\install\BBACF08\ AI_MORE_CMD_LINE=1 TARGETDIR=I:\ EDGECLIENT_ADDRESS_REG_PROP=http://127.0.0.1:59154/Ima/Dynamed/Services/Edge/Client AIEXTERNALUI=5 ACTION=INSTALL APPDIR=C:\Program Files\IMA-Systems Information-Technology GmbH\DynaMed - Update TRANSFORMS=C:\Users\a.auderer\AppData\Roaming\IMA-Systems Information-Technology GmbH\DynaMed - Update 3.4.16357.5\install\BBACF08\DynaMed_Update_Setup.mst SECONDSEQUENCE=1 CLIENTPROCESSID=4064 CHAINERUIPROCESSID=4064Chainer EXECUTEACTION=INSTALL CLIENTUILEVEL=0 ADDLOCAL=Registry,MainFeature AGREE_CHECKBOX=Yes EDGECLIENT_ADDRESS_PROP=http://127.0.0.1:59154/Ima/Dynamed/Services/Edge/Client UPDATESERVICE_PASSWORD_PROP=********** UPDATESERVICE_USERNAME_PROP=aaa@aaa.at PRIMARYFOLDER=APPDIR ROOTDRIVE=I:\ AI_DEBUGLOG=1 AI_SETUPEXEPATH=\\imabuild2\Builds\Dyna
MSI (s) (84:38) [18:54:17:479]: PROPERTY CHANGE: Adding PackageCode property. Its value is '{D878EB65-5CE1-40CF-B63C-42B886D49B11}'.
MSI (s) (84:38) [18:54:17:482]: PROPERTY CHANGE: Adding TRANSFORMS property. Its value is 'C:\Users\a.auderer\AppData\Roaming\IMA-Systems Information-Technology GmbH\DynaMed - Update 3.4.16357.5\install\BBACF08\DynaMed_Update_Setup.mst'.
MSI (s) (84:38) [18:54:17:484]: Product Code passed to Engine.Initialize:           ''
MSI (s) (84:38) [18:54:17:486]: Product Code from property table before transforms: '{7522A893-9B13-4A89-A8E2-D97BCBBACF08}'
MSI (s) (84:38) [18:54:17:489]: Product Code from property table after transforms:  '{7522A893-9B13-4A89-A8E2-D97BCBBACF08}'
MSI (s) (84:38) [18:54:17:491]: Product not registered: beginning first-time install
MSI (s) (84:38) [18:54:17:494]: Product {7522A893-9B13-4A89-A8E2-D97BCBBACF08} is not managed.
MSI (s) (84:38) [18:54:17:496]: MSI_LUA: Credential prompt not required, user is an admin
MSI (s) (84:38) [18:54:17:498]: PROPERTY CHANGE: Adding ProductState property. Its value is '-1'.
MSI (s) (84:38) [18:54:17:499]: Entering CMsiConfigurationManager::SetLastUsedSource.
MSI (s) (84:38) [18:54:17:501]: User policy value 'SearchOrder' is 'nmu'
MSI (s) (84:38) [18:54:17:502]: Adding new sources is allowed.
MSI (s) (84:38) [18:54:17:503]: PROPERTY CHANGE: Adding PackagecodeChanging property. Its value is '1'.
MSI (s) (84:38) [18:54:17:505]: Package name extracted from package path: 'DynaMed_Update_Setup.x64.msi'
MSI (s) (84:38) [18:54:17:506]: Package to be registered: 'DynaMed_Update_Setup.x64.msi'
MSI (s) (84:38) [18:54:17:508]: Note: 1: 2262 2: Error 3: -2147287038 
MSI (s) (84:38) [18:54:17:510]: Transforming table Error.

MSI (s) (84:38) [18:54:17:512]: Note: 1: 2262 2: AdminProperties 3: -2147287038 
MSI (s) (84:38) [18:54:17:513]: Machine policy value 'DisableMsi' is 0
MSI (s) (84:38) [18:54:17:515]: Machine policy value 'AlwaysInstallElevated' is 0
MSI (s) (84:38) [18:54:17:516]: User policy value 'AlwaysInstallElevated' is 0
MSI (s) (84:38) [18:54:17:517]: Product installation will be elevated because user is admin and product is being installed per-machine.
MSI (s) (84:38) [18:54:17:519]: Running product '{7522A893-9B13-4A89-A8E2-D97BCBBACF08}' with elevated privileges: Product is assigned.

Daniel
Posts: 8187
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Setting service account with fully qualified name

Fri Dec 23, 2016 8:59 am

Hello,

Please note this is the normal behavior. We use the predefined Windows Installer "ServiceInstall" table to install services and this table accepts the account name specified only in the "DomainName\UserName" format.

To prevent the users using the "UserName@DomainName" format you can develop and use your own custom action. You can configure the custom action to run on [Next>] button of your dialog.

If you have any questions just let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”