vkv
vkv

Reputation: 1010

change install path to windows install directory?

I am trying to change the installation path of my app in wix, by changing

<Directory Id="TARGETDIR" Name="SourceDir">
  <Directory Id="WINDOWSVOLUME">
    <Directory Id="SUB_FOLDER" Name="Engage">
      <Directory Id="INSTALLFOLDER" Name="EngageSetupCreator" />
    </Directory>
  </Directory>
</Directory>

Here I expect to create a directory("Engage") inside C drive which is my windows installation drive and install my app inside it.

But currently it work like, if I run the installer from d drive it will create a folder In D drive.

How to fix this?

Upvotes: 0

Views: 171

Answers (1)

Arkady Sitnitsky
Arkady Sitnitsky

Reputation: 1886

Your drive will be selected by the free space or some other criteria.

You can overwrite this selection be defining the RootDrive.

<Property Id="ROOTDRIVE" Value="C:\"/>

Upvotes: 1

Related Questions