[SERVER-29994] Windows Installer ignores the specified installation path Created: 05/Jul/17  Updated: 20/Sep/17  Resolved: 28/Aug/17

Status: Closed
Project: Core Server
Component/s: Admin
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Jan Sturm Assignee: Mark Agarunov
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File install.txt     Text File install_mongo.log     JPEG File installmongo.JPG    
Operating System: ALL
Participants:

 Description   

take latest enterprise installer:
mongodb-win32-x86_64-enterprise-windows-64-3.4.5-signed

run installer, go to custom, change the installation path, start installation

installer installs into c:

i did it twice, once without the existing path on D, once with existing path on D
it never did install into D drive but always to C drive
select a different installation path in installer (drive)
installer will still install into default path



 Comments   
Comment by Mark Agarunov [ 17/Jul/17 ]

Hello jansturm,

Thank you for providing the logs. After looking over the logs and comparing the output with a log file where mongodb was installed to the proper directory, I suspect there may be a permission or policy restriction that is causing the installer to use the incorrect directory. As can be seen the the following logs, the installer is "Ignoring disallowed property" for the path selected. Additionally, note the line containing "Adding RestrictedUserControl property. Its value is '1'." from the logs you've provided that is absent from the other log.

MSI (s) (D4:30) [10:46:00:471]: Command Line: BIN=E:\Program Files\MongoDB\Server\3.4\bin\ SNMP=E:\Program Files\MongoDB\Server\3.4\snmp\ INSTALLLOCATION=E:\Program Files\MongoDB\Server\3.4\ TARGETDIR=C:\ CURRENTDIRECTORY=C:\Users\User\Downloads CLIENTUILEVEL=0 CLIENTPROCESSID=4588 USERNAME=Windows User SOURCEDIR=C:\Users\User\Downloads\ ACTION=INSTALL EXECUTEACTION=INSTALL ROOTDRIVE=C:\ INSTALLLEVEL=1 SECONDSEQUENCE=1 ADDLOCAL=Server,ProductFeature,Client,MonitoringTools,ImportExportTools,Router,MiscellaneousTools ACTION=INSTALL 
MSI (s) (D4:30) [10:46:00:471]: PROPERTY CHANGE: Adding PackageCode property. Its value is '{2846E6F3-3552-4E0A-866E-B293A7BB6F79}'.
MSI (s) (D4:30) [10:46:00:471]: Product Code passed to Engine.Initialize:           ''^M 
MSI (s) (D4:30) [10:46:00:471]: Product Code from property table before transforms: '{98629416-7D28-46C1-BDA0-0C089B88CDB6}'
MSI (s) (D4:30) [10:46:00:471]: Product Code from property table after transforms:  '{98629416-7D28-46C1-BDA0-0C089B88CDB6}'
MSI (s) (D4:30) [10:46:00:471]: Product not registered: beginning first-time install
MSI (s) (D4:30) [10:46:00:471]: Product {98629416-7D28-46C1-BDA0-0C089B88CDB6} is not managed.
MSI (s) (D4:30) [10:46:00:471]: Machine policy value 'AlwaysInstallElevated' is 0
MSI (s) (D4:30) [10:46:00:471]: User policy value 'AlwaysInstallElevated' is 0
MSI (s) (D4:30) [10:46:00:471]: MSI_LUA: Elevation required to install product, will prompt for credentials
MSI (s) (D4:30) [10:46:03:314]: MSI_LUA: Credential Request return = 0x0
MSI (s) (D4:30) [10:46:03:314]: MSI_LUA: Elevated credential consent provided. Install will run elevated
MSI (s) (D4:30) [10:46:03:314]: Note: 1: 2205 2:  3: MsiPackageCertificate 
MSI (s) (D4:30) [10:46:03:314]: Note: 1: 2205 2:  3: MsiDigitalCertificate 
MSI (s) (D4:30) [10:46:03:314]: PROPERTY CHANGE: Adding ProductState property. Its value is '-1'.
MSI (s) (D4:30) [10:46:03:315]: Entering CMsiConfigurationManager::SetLastUsedSource.
MSI (s) (D4:30) [10:46:03:315]: User policy value 'SearchOrder' is 'nmu'
MSI (s) (D4:30) [10:46:03:315]: Adding new sources is allowed.
MSI (s) (D4:30) [10:46:03:315]: PROPERTY CHANGE: Adding PackagecodeChanging property. Its value is '1'.
MSI (s) (D4:30) [10:46:03:315]: Package name extracted from package path: 'mongodb-win32-x86_64-enterprise-windows-64-3.4.5-signed.msi'
MSI (s) (D4:30) [10:46:03:315]: Package to be registered: 'mongodb-win32-x86_64-enterprise-windows-64-3.4.5-signed.msi'
MSI (s) (D4:30) [10:46:03:315]: Note: 1: 2262 2: AdminProperties 3: -2147287038 
MSI (s) (D4:30) [10:46:03:315]: Machine policy value 'AlwaysInstallElevated' is 0
MSI (s) (D4:30) [10:46:03:315]: User policy value 'AlwaysInstallElevated' is 0
MSI (s) (D4:30) [10:46:03:315]: Product installation will be elevated because user provided elevated credentials and product is being installed per-machine.
MSI (s) (D4:30) [10:46:03:315]: Running product '{98629416-7D28-46C1-BDA0-0C089B88CDB6}' with elevated privileges: Product is assigned.
MSI (s) (D4:30) [10:46:03:315]: PROPERTY CHANGE: Adding BIN property. Its value is 'E:\Program Files\MongoDB\Server\3.4\bin\'.
MSI (s) (D4:30) [10:46:03:316]: PROPERTY CHANGE: Adding SNMP property. Its value is 'E:\Program Files\MongoDB\Server\3.4\snmp\'.
MSI (s) (D4:30) [10:46:03:316]: PROPERTY CHANGE: Adding INSTALLLOCATION property. Its value is 'E:\Program Files\MongoDB\Server\3.4\'.
MSI (s) (D4:30) [10:46:03:316]: PROPERTY CHANGE: Adding TARGETDIR property. Its value is 'C:\'.
MSI (s) (D4:30) [10:46:03:316]: PROPERTY CHANGE: Adding CURRENTDIRECTORY property. Its value is 'C:\Users\User\Downloads'.
MSI (s) (D4:30) [10:46:03:316]: PROPERTY CHANGE: Adding CLIENTUILEVEL property. Its value is '0'.
MSI (s) (D4:30) [10:46:03:316]: PROPERTY CHANGE: Adding CLIENTPROCESSID property. Its value is '4588'.
MSI (s) (D4:30) [10:46:03:316]: PROPERTY CHANGE: Adding USERNAME property. Its value is 'Windows User'.
MSI (s) (D4:30) [10:46:03:316]: PROPERTY CHANGE: Adding SOURCEDIR property. Its value is 'C:\Users\User\Downloads\'.
MSI (s) (D4:30) [10:46:03:316]: PROPERTY CHANGE: Adding ACTION property. Its value is 'INSTALL'.
MSI (s) (D4:30) [10:46:03:316]: PROPERTY CHANGE: Adding EXECUTEACTION property. Its value is 'INSTALL'.
MSI (s) (D4:30) [10:46:03:316]: PROPERTY CHANGE: Adding ROOTDRIVE property. Its value is 'C:\'.
MSI (s) (D4:30) [10:46:03:316]: PROPERTY CHANGE: Adding INSTALLLEVEL property. Its value is '1'.
MSI (s) (D4:30) [10:46:03:316]: PROPERTY CHANGE: Adding SECONDSEQUENCE property. Its value is '1'.
MSI (s) (D4:30) [10:46:03:316]: PROPERTY CHANGE: Adding ADDLOCAL property. Its value is 'Server,ProductFeature,Client,MonitoringTools,ImportExportTools,Router,MiscellaneousTools'.
MSI (s) (D4:30) [10:46:03:316]: Machine policy value 'DisableAutomaticApplicationShutdown' is 0
MSI (s) (D4:30) [10:46:03:316]: PROPERTY CHANGE: Adding MsiRestartManagerSessionKey property. Its value is '2e8a4027c968dc4ab3465c1cde5075b3'.
MSI (s) (D4:30) [10:46:03:316]: RESTART MANAGER: Session opened.
MSI (s) (D4:30) [10:46:03:316]: Engine has iefSecondSequence set to true.
MSI (s) (D4:30) [10:46:03:316]: TRANSFORMS property is now: 

Provided Log File:

MSI (s) (AC:D0) [10:22:23:752]: Command Line: BIN=D:\Program Files\MongoDB\Server\3.4\bin\ SNMP=D:\Program Files\MongoDB\Server\3.4\snmp\ INSTALLLOCATION=D:\Program Files\MongoDB\Server\3.4\ TARGETDIR=E:\ CURRENTDIRECTORY=E:\Installs CLIENTUILEVEL=0 CLIENTPROCESSID=8548 USERNAME=CompanyName COMPANYNAME=CompanyName SOURCEDIR=E:\Installs\ ACTION=INSTALL EXECUTEACTION=INSTALL ROOTDRIVE=E:\ INSTALLLEVEL=1 SECONDSEQUENCE=1 ADDLOCAL=Server,ProductFeature,Client,MonitoringTools,ImportExportTools,Router,MiscellaneousTools ACTION=INSTALL 
MSI (s) (AC:D0) [10:22:23:752]: PROPERTY CHANGE: Adding PackageCode property. Its value is '{FA1C3322-6BA0-4FD3-8519-E1D6B672BB28}'.
MSI (s) (AC:D0) [10:22:23:752]: Product Code passed to Engine.Initialize:           ''^M 
MSI (s) (AC:D0) [10:22:23:752]: Product Code from property table before transforms: '{6CB7BC94-3FC7-4D82-A284-2DBAB8A13892}'
MSI (s) (AC:D0) [10:22:23:752]: Product Code from property table after transforms:  '{6CB7BC94-3FC7-4D82-A284-2DBAB8A13892}'
MSI (s) (AC:D0) [10:22:23:752]: Product not registered: beginning first-time install
MSI (s) (AC:D0) [10:22:23:752]: Product {6CB7BC94-3FC7-4D82-A284-2DBAB8A13892} is not managed.
MSI (s) (AC:D0) [10:22:23:752]: Machine policy value 'AlwaysInstallElevated' is 1
MSI (s) (AC:D0) [10:22:23:752]: User policy value 'AlwaysInstallElevated' is 1
MSI (s) (AC:D0) [10:22:23:752]: MSI_LUA: No credentials required as all installs will run elevated due to AlwaysInstallElevated policy setting
MSI (s) (AC:D0) [10:22:23:752]: PROPERTY CHANGE: Adding ProductState property. Its value is '-1'.
MSI (s) (AC:D0) [10:22:23:752]: Entering CMsiConfigurationManager::SetLastUsedSource.
MSI (s) (AC:D0) [10:22:23:752]: User policy value 'SearchOrder' is 'nmu'
MSI (s) (AC:D0) [10:22:23:752]: Adding new sources is allowed.
MSI (s) (AC:D0) [10:22:23:752]: PROPERTY CHANGE: Adding PackagecodeChanging property. Its value is '1'.
MSI (s) (AC:D0) [10:22:23:752]: Package name extracted from package path: 'mongodb-win32-x86_64-enterprise-windows-64-3.4.6-signed.msi'
MSI (s) (AC:D0) [10:22:23:752]: Package to be registered: 'mongodb-win32-x86_64-enterprise-windows-64-3.4.6-signed.msi'
MSI (s) (AC:D0) [10:22:23:752]: Note: 1: 2262 2: AdminProperties 3: -2147287038 
MSI (s) (AC:D0) [10:22:23:752]: Machine policy value 'AlwaysInstallElevated' is 1
MSI (s) (AC:D0) [10:22:23:752]: User policy value 'AlwaysInstallElevated' is 1
MSI (s) (AC:D0) [10:22:23:752]: Running product '{6CB7BC94-3FC7-4D82-A284-2DBAB8A13892}' with elevated privileges: All apps run elevated.
MSI (s) (AC:D0) [10:22:23:752]: Machine policy value 'EnableUserControl' is 0
MSI (s) (AC:D0) [10:22:23:752]: PROPERTY CHANGE: Adding RestrictedUserControl property. Its value is '1'.
MSI (s) (AC:D0) [10:22:23:752]: Ignoring disallowed property BIN
MSI (s) (AC:D0) [10:22:23:752]: Ignoring disallowed property SNMP
MSI (s) (AC:D0) [10:22:23:752]: Ignoring disallowed property INSTALLLOCATION
MSI (s) (AC:D0) [10:22:23:752]: Ignoring disallowed property TARGETDIR
MSI (s) (AC:D0) [10:22:23:752]: PROPERTY CHANGE: Adding CURRENTDIRECTORY property. Its value is 'E:\Installs'.
MSI (s) (AC:D0) [10:22:23:752]: PROPERTY CHANGE: Adding CLIENTUILEVEL property. Its value is '0'.
MSI (s) (AC:D0) [10:22:23:752]: PROPERTY CHANGE: Adding CLIENTPROCESSID property. Its value is '8548'.
MSI (s) (AC:D0) [10:22:23:752]: Ignoring disallowed property USERNAME
MSI (s) (AC:D0) [10:22:23:752]: Ignoring disallowed property COMPANYNAME
MSI (s) (AC:D0) [10:22:23:752]: Ignoring disallowed property SOURCEDIR
MSI (s) (AC:D0) [10:22:23:752]: PROPERTY CHANGE: Adding ACTION property. Its value is 'INSTALL'.
MSI (s) (AC:D0) [10:22:23:752]: PROPERTY CHANGE: Adding EXECUTEACTION property. Its value is 'INSTALL'.
MSI (s) (AC:D0) [10:22:23:752]: Ignoring disallowed property ROOTDRIVE
MSI (s) (AC:D0) [10:22:23:752]: PROPERTY CHANGE: Adding INSTALLLEVEL property. Its value is '1'.
MSI (s) (AC:D0) [10:22:23:753]: PROPERTY CHANGE: Adding SECONDSEQUENCE property. Its value is '1'.
MSI (s) (AC:D0) [10:22:23:753]: PROPERTY CHANGE: Adding ADDLOCAL property. Its value is 'Server,ProductFeature,Client,MonitoringTools,ImportExportTools,Router,MiscellaneousTools'.
MSI (s) (AC:D0) [10:22:23:753]: Machine policy value 'DisableAutomaticApplicationShutdown' is 0
MSI (s) (AC:D0) [10:22:23:753]: PROPERTY CHANGE: Adding MsiRestartManagerSessionKey property. Its value is 'eb6a4bc86161174fa2f207417fcc252f'.
MSI (s) (AC:D0) [10:22:23:753]: RESTART MANAGER: Session opened.
MSI (s) (AC:D0) [10:22:23:753]: Engine has iefSecondSequence set to true.
MSI (s) (AC:D0) [10:22:23:753]: TRANSFORMS property is now: 

Thanks,
Mark

Comment by Jan Sturm [ 12/Jul/17 ]

this was the file that i took when it did install on c drive

Comment by Mark Agarunov [ 11/Jul/17 ]

Hello jansturm,

As this was installed in the correct path, the installer log doesn't provide any insight as to why it may be installing to the wrong drive. If possible, could you provide the install log from an occurrence when it is installed to the incorrect path?

Thanks,
Mark

Comment by Jan Sturm [ 10/Jul/17 ]

install log
this time: the installer did install into d.
i had a machine restart between uninstall - install this time.

on the other occasions where the software was installed into c, instead of d, i did not restart the machine.

Comment by Jan Sturm [ 10/Jul/17 ]

screen of install wizzard

Comment by Mark Agarunov [ 07/Jul/17 ]

Hello jansturm,

Thank you for the response. Unfortunately the log snippet you provided doesn't appear to contain the relevant portions from the install process. Please run the installer with logging enabled:

msiexec /l*v "install.log" /i mongodb-win32-x86_64-enterprise-windows-64-3.4.5-signed.msi

and upload the complete install.log file that is generated.

Thanks,
Mark

Comment by Jan Sturm [ 07/Jul/17 ]

just redid the example and it is wonderfully reproducible. what do you need, are there any logs i can provide ?

how to reproduce:

start msi
select custom install option
replace c: with d: in installation path textbox
check the installation path, it shows d:\ blabla
click ok

here something from msi log:
MSI (c) (64:10) [10:21:39:488]: Doing action: CostFinalize
Action 10:21:39: CostFinalize. Computing space requirements
Action start 10:21:39: CostFinalize.
MSI (c) (64:10) [10:21:39:489]: PROPERTY CHANGE: Adding OutOfDiskSpace property. Its value is '0'.
MSI (c) (64:10) [10:21:39:489]: PROPERTY CHANGE: Adding OutOfNoRbDiskSpace property. Its value is '0'.
MSI (c) (64:10) [10:21:39:489]: PROPERTY CHANGE: Adding PrimaryVolumeSpaceAvailable property. Its value is '0'.
MSI (c) (64:10) [10:21:39:489]: PROPERTY CHANGE: Adding PrimaryVolumeSpaceRequired property. Its value is '0'.
MSI (c) (64:10) [10:21:39:489]: PROPERTY CHANGE: Adding PrimaryVolumeSpaceRemaining property. Its value is '0'.
MSI (c) (64:10) [10:21:39:489]: Note: 1: 2205 2: 3: Patch
MSI (c) (64:10) [10:21:39:489]: Note: 1: 2205 2: 3: Condition
MSI (c) (64:10) [10:21:39:489]: PROPERTY CHANGE: Adding TARGETDIR property. Its value is 'E:\'.
MSI (c) (64:10) [10:21:39:489]: PROPERTY CHANGE: Adding MongoDB property. Its value is 'C:\Program Files\MongoDB\'.
MSI (c) (64:10) [10:21:39:489]: PROPERTY CHANGE: Adding Server property. Its value is 'C:\Program Files\MongoDB\Server\'.
MSI (c) (64:10) [10:21:39:489]: PROPERTY CHANGE: Adding INSTALLLOCATION property. Its value is 'C:\Program Files\MongoDB\Server\3.4\'.
MSI (c) (64:10) [10:21:39:489]: PROPERTY CHANGE: Adding SNMP property. Its value is 'C:\Program Files\MongoDB\Server\3.4\snmp\'.
MSI (c) (64:10) [10:21:39:489]: PROPERTY CHANGE: Adding BIN property. Its value is 'C:\Program Files\MongoDB\Server\3.4\bin\'.
MSI (c) (64:10) [10:21:39:489]: Target path resolution complete. Dumping Directory table...
MSI (c) (64:10) [10:21:39:489]: Note: target paths subject to change (via custom actions or browsing)
MSI (c) (64:10) [10:21:39:489]: Dir (target): Key: TARGETDIR , Object: E:\
MSI (c) (64:10) [10:21:39:489]: Dir (target): Key: WindowsFolder , Object: C:\WINDOWS\

Comment by Jan Sturm [ 07/Jul/17 ]

i had community version installed, unistalled that, then i have installed enterprise version.
however i will redo the excercise today and come back to you on monday.

Comment by Mark Agarunov [ 06/Jul/17 ]

Hello jansturm,

Unfortunately we have been unable to reproduce the behavior you've described. Using the same installer (mongodb-win32-x86_64-enterprise-windows-64-3.4.5-signed.msi) I was able to install to a different drive in both an existing path, and a non-existing path that was then created by the installer. If there is any more information that could help us reproduce this issue, please let me know.

Thanks,
Mark

Generated at Thu Feb 08 04:22:22 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.