Skip to main content

TARGETDIR, SOURCEDIR & INSTALLDIR

TARGETDIR, SOURCEDIR & INSTALLDIR


TARGETDIR must be the name of one root in the Directory table. There may be only a single root destination directory. During an administrative installation this property specifies the location to copy the installation package.


TARGETDIR= location where file/folder will be copied during the install process
SOURCEDIR=location within the package's folder structure where the file lives
INSTALLDIR is primarily the name of a property that's exclusive to InstallShield which represents the product installation directory. It controls the exact directory to which a package must be installed.


TARGETDIR represents the installation directory for an administrative Windows Installer–based installation (when the user runs MsiExec.exe with
the /a command-line switch).

Created a custom command line install:
msiexec /passive TARGETDIR="C:\MyTagretDirectory" /i MyProject.msi

And was able to get the desired path pre-populated!

In above case, interaction with the installer has been suppressed by providing TARGETDIR and also added the /passive option. Hence reducing the MS Installer GUI to merely a progress bar.

Comments

  1. why folder name have space got error ?

    ReplyDelete

Post a Comment