/build/static/layout/Breadcrumb_cap_w.png

command required to give the folder location of our choice

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

Answers (5)

Posted by: rpfenninger 17 years ago
Second Degree Green Belt
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
Posted by: cygan 17 years ago
Fifth Degree Brown Belt
0
try this if it will help

msiexec /a <path where the msi is located.msi> SHORTCUTFILENAME=TRUE TARGETDIR="C:\xyz" /qb!
Posted by: amala 17 years ago
Senior Yellow Belt
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.
Posted by: nheim 17 years ago
10th Degree Black Belt
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
Posted by: AngelD 17 years ago
Red Belt
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\").
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ