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
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)
Please log in to answer
Posted by:
rpfenninger
17 years ago
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
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
Posted by:
amala
17 years ago
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.
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
Posted by:
AngelD
17 years ago
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\").
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.
so that the conversation will remain readable.