mfairbrother
Posts: 29
Joined: Tue Dec 20, 2005 12:39 pm

TARGETDIR not working like I expect.

I am trying pass in the location on where to install from the command line

msiexec.exe /i demo.msi TARGETDIR=C:\widgets /l*vx "c:\inst.log"

the log file shows TARGETDIR getting set, however looking at SET_APPDIR in the log it's set to the default.

MSI (s) (20:0C) [14:18:51:898]: Doing action: SET_APPDIR
Action start 14:18:51: SET_APPDIR.
MSI (s) (20:0C) [14:18:51:898]: PROPERTY CHANGE: Adding APPDIR property. Its value is 'C:\Program Files\Widgets'.
mfairbrother
Posts: 29
Joined: Tue Dec 20, 2005 12:39 pm

note using APPDIR=... on the command line puts it to the user desired location.
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi,

In version 3.4 of Advanced Installer, "TARGETDIR" was changed with "APPDIR".

Regards,
Denis
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”