MSI installdir issue

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
User avatar
Alexander Riedel
Posts: 7125
Joined: Tue May 29, 2007 4:43 pm

Re: MSI installdir issue

Post by Alexander Riedel » Wed Oct 30, 2019 11:43 am

Setting the custom action to immediately will attempt to execute the custom action on start of the MSI, at which point the script you included in your installer does not even exist yet. So that will simply not work. Deferred is the option to use.

As for the drive issue, I would recommend launching that MSI with logging to determine why it changes the drive letter. This seems to be an issue on the machine you are launching it on, not in the MSI itself.
You can also install Orca (https://wixtoolset.org/documentation/ma ... e_msi.html) to peek into the generated MSI database directly.
Alexander Riedel
SAPIEN Technologies, Inc.

User avatar
TheVito
Posts: 11
Joined: Mon Sep 25, 2017 4:27 am

Re: MSI installdir issue

Post by TheVito » Wed Oct 30, 2019 11:52 am

oops my bad, yes i knew that i must of accidentally clicked the immediately.

I will try running with logging to see what happens.

User avatar
TheVito
Posts: 11
Joined: Mon Sep 25, 2017 4:27 am

Re: MSI installdir issue

Post by TheVito » Wed Oct 30, 2019 12:04 pm

Have you ever seen this happen before any idea what could be causing it to change?

Action ended 14:59:04: FileCost. Return value 1.
MSI (c) (8C:B4) [14:59:04:055]: Doing action: CostFinalize
Action 14:59:04: CostFinalize. Computing space requirements
Action start 14:59:04: CostFinalize.
MSI (c) (8C:B4) [14:59:04:055]: PROPERTY CHANGE: Adding OutOfDiskSpace property. Its value is '0'.
MSI (c) (8C:B4) [14:59:04:055]: PROPERTY CHANGE: Adding OutOfNoRbDiskSpace property. Its value is '0'.
MSI (c) (8C:B4) [14:59:04:055]: PROPERTY CHANGE: Adding PrimaryVolumeSpaceAvailable property. Its value is '0'.
MSI (c) (8C:B4) [14:59:04:055]: PROPERTY CHANGE: Adding PrimaryVolumeSpaceRequired property. Its value is '0'.
MSI (c) (8C:B4) [14:59:04:055]: PROPERTY CHANGE: Adding PrimaryVolumeSpaceRemaining property. Its value is '0'.
MSI (c) (8C:B4) [14:59:04:055]: Note: 1: 2205 2: 3: Patch
MSI (c) (8C:B4) [14:59:04:055]: Note: 1: 2205 2: 3: Condition
MSI (c) (8C:B4) [14:59:04:055]: PROPERTY CHANGE: Adding TARGETDIR property. Its value is 'D:\'.
MSI (c) (8C:B4) [14:59:04:055]: PROPERTY CHANGE: Adding INSTALLDIR property. Its value is 'D:\DevOpsScripts\'.
MSI (c) (8C:B4) [14:59:04:055]: Target path resolution complete. Dumping Directory table...
MSI (c) (8C:B4) [14:59:04:055]: Note: target paths subject to change (via custom actions or browsing)
MSI (c) (8C:B4) [14:59:04:055]: Dir (target): Key: TARGETDIR , Object: D:\
MSI (c) (8C:B4) [14:59:04:055]: Dir (target): Key: WindowsFolder , Object: C:\Windows\
MSI (c) (8C:B4) [14:59:04:055]: Dir (target): Key: SystemFolder , Object: C:\Windows\SysWOW64\
MSI (c) (8C:B4) [14:59:04:055]: Dir (target): Key: INSTALLDIR , Object: D:\DevOpsScripts\
MSI (c) (8C:B4) [14:59:04:055]: PROPERTY CHANGE: Adding INSTALLLEVEL property. Its value is '1'.

User avatar
Alexander Riedel
Posts: 7125
Joined: Tue May 29, 2007 4:43 pm

Re: MSI installdir issue

Post by Alexander Riedel » Wed Oct 30, 2019 12:53 pm

Been googling this, seems MSI changes drives if there is not enough space. Or if it thinks there is not enough space.
Try running this:
msiexec /i MySetup.msi TARGETDIR=C:\
Alexander Riedel
SAPIEN Technologies, Inc.

User avatar
TheVito
Posts: 11
Joined: Mon Sep 25, 2017 4:27 am

Re: MSI installdir issue

Post by TheVito » Thu Oct 31, 2019 6:52 am

Thanks Alexander,
that worked. I changed it to be this so it is silent again.
msiexec /i EclipseDeployer.msi TARGETDIR=c:\ /quiet /qn

btw my c: drive has 18gb free, i have no idea why it would think there wasn't enough space to install 608kb lol