WiX installer - change the install path

1.1k views Asked by At

I have a WiX installer and i need to change install path by my specific path. I looked this topic. But i don't understand the solution because my installation path is very specific and not a basic folder system folder.

    <Directory Id="TARGETDIR" Name="SourceDir">
        <Directory Id="ProgramFilesFolder">
            <Directory Id="APPLICATIONROOTDIRECTORY" Name="Application test"/>
        </Directory>
    </Directory>

Anybody can explain to me how to do this ?

1

There are 1 answers

0
Neyoh On BEST ANSWER

I find a tip to change by a specificly path. The solution is start from the root of WINDOWSVOLUME.

 <Directory Id="TARGETDIR" Name="SourceDir"> 
   <Directory Id="WINDOWSVOLUME">
        <Directory Id="SUB_FOLDER" Name="Name of sub-folder".>
          <...>
            <Directory Id="APPLICATIONROOTDIRECTORY" Name="My Application Name"/>
          </...>
        </Directory>
      </Directory>
</Directory>