Advertisement

04.21.2008 at 10:07PM PDT, ID: 23341877 | Points: 500
[x]
Attachment Details

How to stop Windows Installer from incorrectly installing files to the larger of two or more drives

Zones: MSI, WISE
Tags: Altiris, Wise Package Studio, 7.0, MSI, Windows Installer
I've created a reasonably simple MSI; essentially all it does is install a startup script, activate it, and copy two necessary files to C:\Temp\Updates.

Everything works fine... except when I run the MSI package on a machine on which the E:\ drive is larger than the C:\ drive.  In that case, the files destined for C:\Temp\Updates end up in E:\Temp\Updates.

I've tried installing with several variations of the following command line:

start /wait msiexec /i "T:\software\MSI\StartupScript_1.0.msi" /TARGETDIR=%systemdrive%\ /l* C:\msilog.txt /passive

I posted a question on this previously and got an answer: my current solution is to use a custom action that redefines [INSTALLDIR2] as "C:\Temp".  However, I sometimes work with machines that do not use C:\ as their system drive, so coding this without a variable makes me uneasy.

In my previous question, one expert (Merowinger) suggested that I attempt to find the property in the MSI that triggers the check for free space.  This struck me as a better solution, but I could not identify the property (there is a "Free Space" property, but it seems to be checking for registry space or something).  Can someone identify that property for me so I can set it to 'disabled'?

Cheers,

TDR
Start your free trial to view this solution
Question Stats
Zone: Programming
Question Asked By: The_Dark_Rabbit
Question Asked On: 04.21.2008
Participating Experts: 2
Points: 500
Views: 0
Translate:
Loading Advertisement...
04.22.2008 at 07:08AM PDT, ID: 21411227

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.29.2008 at 06:20AM PDT, ID: 21668800

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.29.2008 at 06:29PM PDT, ID: 21674640

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
06.26.2008 at 11:54PM PDT, ID: 21881410

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
06.27.2008 at 01:23AM PDT, ID: 21881721

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
06.27.2008 at 04:55AM PDT, ID: 21882693

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080236-EE-VQP-29 / EE_QW_Related_20080208