TheWommies
TheWommies

Reputation: 5072

WIX Change Initial install directory

When I make my WIX Build setup,

by default it installs into the ProgramFIles directory.

I want to change this to the Application Local Data directory,

How would I do this?

Thanks

Upvotes: 0

Views: 975

Answers (2)

Wim Coenen
Wim Coenen

Reputation: 66783

You can use folder definitions like this:

<Directory Id='LocalAppDataFolder'>
    <Directory Id='MyAppFolder' Name='MyApp' />
</Directory>

To find the IDs of other system folders like LocalAppDataFolder, take a look at the System Folder Properties section of the Windows Installer Property reference.

Upvotes: 3

saschabeaumont
saschabeaumont

Reputation: 22446

Are you doing a per-user installation using the built in dialog sets?

If you set Package/@InstallScope="perUser" then the default installation folder will automatically be set to [LocalAppDataFolder]Apps\[ApplicationFolderName]

For more information refer to the WiX manual.

Upvotes: 0

Related Questions