We have the following directory structure wherein we want the Logs folder to be 
created at the same level as the Services folder.

 

<Directory Id="TARGETDIR" Name="SourceDir">

      <Directory Id="SERVICESDIR" Name="Services">

            <Directory Id="INSTALLDIR" Name="Cmds">

            . . .

            </Directory>

      </Directory>

      <Directory Id="CANSERVICESLOGFILEDIR" Name="Logs">

            <Component Id="xxx" Guid="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx">

                  <CreateFolder />

            </Component>

      </Directory>

</Directory>

Now what happens is, if the user runs the installer in Custom mode and chooses 
a different drive from what the installer picked up based on the information 
here:

http://msdn.microsoft.com/en-us/library/aa372064.aspx

http://msdn.microsoft.com/en-us/library/aa371372.aspx

The installer installs the application at the new location but still creates 
the Logs folder at the original location picked by the installer.

Lets take an example:

The installer picks INSTALLDIR as D:\Services\Cmds

The user changes it to C:\Services\Cmds

So, instead of creating the logs folder like this C:\Services\Logs, the 
installer still creates it at D:\Services\Logs

I know when the user picks a different location for installation it just 
changes the INSTALLDIR property to the new value but the TARGETDIR still points 
to the original destination. Shouldn’t picking the new INSTALLDIR should by 
default change the TARGETDIR? Atleast, it looks like a valid usecase to me, is 
this some kind of bug or is it designed to behave like this only?

Any help would be appreciated.

Thanks,

Ramit

Ramit Bajpai |CAN <http://can.monster.com/>  | Monster Worldwide 
<http://www.monster.com/>  | Direct: 978.823.2570 | Cell: 508.395.7037

 

 

NOTICE: 

 

This message, and any attachments, contain(s) information that may be 
confidential or protected by privilege from disclosure and is intended only for 
the individual or entity named above. No one else may disclose, copy, 
distribute or use the contents of this message for any purpose. Its 
unauthorized use, dissemination or duplication is strictly prohibited and may 
be unlawful. If you receive this message in error or you otherwise are not an 
authorized recipient, please immediately delete the message and any attachments 
and notify the sender.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to