chmanish
Posts: 2
Joined: Tue Jul 10, 2007 6:52 am

resetting of TARGETDIR does not work

One of our clients has a problem with the MSI provided. In our custom action, we use

MsiSetTargetPath(hModule,"TARGETDIR", strTargetDir);

to reset the TARGETDIR. This custom action is associated with InstallInitialize. This has worked on hundreds of other client sides without any problem. But on one specific machine, the value of TARGETDIR is not updated and the files and folders get copied on default location as well as the registry values get updated as per default path ([ProgramFiles][Manufacturer][ProductName]).

Kindly suggest probable reasons why TARGETDIR is not getting updated on client side. He has Windows XP.

Thanx in advance,

Manish
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Manish,

Why exactly you want to reset the TARGETDIR? Please give me more details.

You can ask the user to generate a log file while installing the package and send it to support at advancedinstaller dot com so we can take a look. Also please sent the AIP file (is not contain any confidential informations).

To obtain the log file run the package with following command line:
msiexec /i package.msi /l*v package.log

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”