[wix-users] Directory getting created in different drive

Ven H venh.123 at gmail.com
Thu Jan 18 23:52:17 PST 2018


Thanks a lot Jacob. But I want this directory to be specified during
runtime (during the installation of the MSI) and not at compile time. How
can I achieve this? Can you please help?

Regards,
Venkatesh

On Thu, Jan 18, 2018 at 10:32 PM, Hoover, Jacob <Jacob.Hoover at greenheck.com>
wrote:

> You didn’t nest PhotosDir under anything except TargetDir.  I do believe
> that Windows Installer will choose a local drive with free space as the
> default TargetDir.  If you need it to go to a specific location, then you
> need to author it as such. (With your indentation it almost looks like you
> wanted photos to go on the desktop.)
>
>
>
> https://msdn.microsoft.com/en-us/library/windows/desktop/
> aa372064(v=vs.85).aspx
>
>
>
>
>
>
>
> *From:* Ven H [mailto:venh.123 at gmail.com]
> *Sent:* Thursday, January 18, 2018 10:51 AM
> *To:* Hoover, Jacob <Jacob.Hoover at greenheck.com>
> *Cc:* WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
> *Subject:* Re: [wix-users] Directory getting created in different drive
>
>
>
> Here it is. No, I am not using SetProperty anywhere.
>
>
>
> <Fragment>
>
>     <Directory Id="TARGETDIR" Name="SourceDir">
>
>       <Directory Id="ProgramFilesFolder">
>
>         <Directory Id="INSTALLDIR" Name="$(var.InstallFolderName)" />
>
>       </Directory>
>
>       <Directory Id="DesktopFolder" Name="Desktop" />
>
>         <Directory Id="PhotosDir" Name="Photos" />  --> *This directory
> (Photos) gets provisioned in D or E drive*
>
>       <Directory Id="CommonAppDataFolder">
>
>         <Directory Id="TestInstallerLogs" Name="TestInstallerLogs">
>
>           <Component Id="deleteFolder" Guid="323549D2-90B7-4D5D-8A36-
> EEA0ACCCC35E">
>
>             <RemoveFile Id="deleteServiceFile" Name="TestWinSvcLog.txt"
> On="both" Directory="TestInstallerLogs"/>
>
>             <RemoveFolder Directory="TestInstallerLogs"
> Id="TestInstallerLogs" On="both"/>
>
>           </Component>
>
>         </Directory>
>
>       </Directory>
>
>     </Directory>
>
>   </Fragment>
>
>
> Regards,
> Venkatesh
>
>
>
> On Thu, Jan 18, 2018 at 10:10 PM, Hoover, Jacob <
> Jacob.Hoover at greenheck.com> wrote:
>
> Provide the authoring of your directory and it's parents.  Also are you
> using a SetProperty on the testDir anywhere?
>
>
> -----Original Message-----
> From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf
> Of Ven H via wix-users
> Sent: Thursday, January 18, 2018 10:37 AM
> To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
> Cc: Ven H <venh.123 at gmail.com>
> Subject: [wix-users] Directory getting created in different drive
>
> I have a Directory element in my Product.wxs file. It has an Id and Name
> attribute specified. Id="testDir" and Name="Test". I also have a component
> for this directory with KeyPath=yes and the component has a CreateFolder
> element wrapped in it, so that the directory gets created even if it is
> empty. This is being used in Virtual Directory for IIS. Now, when the
> directory gets provisioned as part of MSI installation, it gets created in
> D or E (a drive other than C), even though I didn't specify it anywhere.
> The other components of the installation (files) are actually getting
> installed in C drive inside Program Files(x86), as expected. Can anyone
> please help me understand this?
>
>
> Regards,
> Venkatesh
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>
>
>


More information about the wix-users mailing list