I am installing the application thru command line with the below emntioned command.

msiexec /i <path of the msi.msi> /qb!

this is able to make a silent install. When installing the default location where the files related to the application are stored under C:\Program Files\Application Name folder.

I wanted to know if is there any way to change the default folder location to any other folder which we can specify.

For this i tried through the commad line as
msiexec /qb! /i <path where the msi is located.msi> INSTALLDIR="C:\xyz" then only some are copied to the xyz folder and some are copied to the applicationname folder. I want everything to be copied to the xyz folder which i mentioned.

I want this to be don only through command line. Can I get the solution for this ASAP.

Thanks in advance
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
The INSTALLDIR variable is the right way to do this as you mentioned.
I guess the problem in your case is a bad quality .msi package with too many ProgramFilesFolder variables. All those resources don't get touched by changing the INSTALLDIR variable.
Try open the .msi package in ORCA to check if this is the case and change those accordingly if you dare [:D]

Cheers
Roland
Answered 01/22/2007 by: rpfenninger
Second Degree Green Belt

Please log in to comment
0
try this if it will help

msiexec /a <path where the msi is located.msi> SHORTCUTFILENAME=TRUE TARGETDIR="C:\xyz" /qb!
Answered 01/22/2007 by: cygan
Fifth Degree Brown Belt

Please log in to comment
0
But if we do this

msiexec /a <path where the msi is located.msi> SHORTCUTFILENAME=TRUE TARGETDIR="C:\xyz" /qb!

This is only a admin install

and the shortcuts are not displayed in the start/program files menu

and also uninstall is not happening through neither command line nor manually through add and remove programs.
Answered 01/22/2007 by: amala
Senior Yellow Belt

Please log in to comment
0
Hi amala,
which app are we talking about, here?
Would agree with Roland, on a properly programmed MSI, this should work trough the INSTALLDIR variable.
Regards, Nick
Answered 01/23/2007 by: nheim
Tenth Degree Black Belt

Please log in to comment
0
Open up the MSI using ORCA or alike and verify that the INSTALLDIR directory is actually the primary key for the installation directory.
It must not be named INSTALLDIR but are mostly used in any MSI I've seen so far.

Also try adding backslash to the end of the directory name as every directory must end with this character (INSTALLDIR="C:\xyz\").
Answered 01/23/2007 by: AngelD
Red Belt

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