I have a vendor supplied MSI that I am prepping for delivery. This package has no references to using a different drive that I can see. I run the install manually in my VM and in places files in c:\service\dminstall. My VM has only one drive. On a production device that has two drives, it is installing the files to d:\service\dminstall. How do you specify a drive for the file destinations and how can I fix this to place the files on the correct drive?

Product Details - default dir = Service\DMInstall
Here is what is in the directory table:
Directory Directory_Parent DefaultDir Full Directory
TARGETDIR SOURCEDIR
INSTALLDIR20 TARGETDIR SERVICE SERVICE
INSTALLDIR INSTALLDIR20 DMINST~1|DMInstall SERVICE\DMINSTALL
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
you will need to use the ROOTDRIVE property


go to the property table

ROOTDRIVE | C:\
Answered 09/15/2009 by: cygan
Fifth Degree Brown Belt

Please log in to comment
0
I added this row and got an error saying this property is predefined and will be over written during install. Where would the predefined element be?
Answered 09/15/2009 by: JimmPanik
Orange Belt

Please log in to comment
0
thats no problem

ok that and add your property

by default windows installer will install on the drive with bigger space regardless of drive letter

if your have 2 drives on your pc say c and d

if d has more space than c then by default your app will install to d
Answered 09/15/2009 by: cygan
Fifth Degree Brown Belt

Please log in to comment
0
if you have to install appllications to anyother Physical Drive (not network drive) you can do so in the following way.

default INSTALLDIR : C:\Program Files\Dir1
Change to D:\Program Files\Dir1

1. In the MSI Script create a custom action
In "User Interface" just after "Cost Finalize"
"Set Directory" give it a Name , choose the directory by browsing to
ProgramFilesFolder\Dir1 and in the third Blank Space enter "D:\Program Files\Dir1"

2. Create the same Custom action in "Execute Immediate" just after "Cost Finalize" also

This installation works fine as long as D: is a valid Drive, it does not work on drives that were created using "Subst.exe" Command.
Answered 09/16/2009 by: bheers
Second Degree Blue Belt

Please log in to comment
Answer this question or Comment on this question for clarity