/build/static/layout/Breadcrumb_cap_w.png

Windows Installer Changes TARGETDIR to C:\

Has anyone ever seen this? My customer's IT department pushes my company's MSI file out to desktops. The MSI file is designed to be installed per-user and has TARGETDIR set to a folder in the user profile. However, TARGETDIR is being reset to C:\ during the execution of Windows Installer and all the executables end up in the root directory of the C drive (not good!). I can see this happening in the MSI log file, but I cannot figure out WHY it is happening. The push to the desktop is executing the MSI under a high-privilege system account and not under the end-user's account, and I suspect that this is the root cause of the problem. Any ideas or suggestions on how to diagnose and fix this issue?

0 Comments   [ + ] Show comments

Answers (1)

Posted by: mafa2500 13 years ago
Yellow Belt
0
Hi,
i don't know if you still need help on this, but this might be a possible solution:
Open the .msi file with for example orca.
Go to the table Custom Action and search for something like: SET_TARGETDIR
In some some MSI Files directories are set in this table, you can change in the directory table whatever you want and it gets overwritten by this custom actions.
regards
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