Reputation: 2210
I am looking to specify a custom default directory for a wix toolset generated msi, reason being the program/install doesn't require admin rights for anything except copying program files to the program files directory, and I am considering allowing installation to the roam-able directory.
Upvotes: 2
Views: 3006
Reputation: 2210
the WIXUI_INSTALLDIR
is basically what I was looking for, once I figured what I was looking for:
https://stackoverflow.com/a/3302238/832705
For reference, the Wix v3 install target directory input dialog (wix documentation link) that uses the WIXUI_INSTALLDIR
default directory xml structure.
Upvotes: 0
Reputation: 20780
In general you specify a directory tree that includes your components/files. Something like this:
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLDIR" Name="MyExample">
<Component Id="ApplicationFiles" Guid="12345678-1234-1234-1234-222222222222">
will put whatever components etc you have into Programfiles\MyExample.
Is that what you're trying to do? You start with one of the standard installer properties, such as roaming AppDataFolder if that's where you want it:
http://msdn.microsoft.com/en-us/library/aa367565(v=vs.85).aspx
Upvotes: 2