Dave Andersen
Dave Andersen

Reputation: 5447

How do I set the hidden attribute for a directory?

How can I set a newly created directory to be hidden using WiX?

I was hoping for something like:

<Directory Id="SomeDir" Name="SomeDir" Hidden="Yes"/>

Upvotes: 0

Views: 1053

Answers (1)

Cosmin
Cosmin

Reputation: 21416

This is not supported by Windows Installer directly, but it can be done through a custom action. You can find sample VBScript code here: http://www.activexperts.com/activmonitor/windowsmanagement/adminscripts/filesfolders/folders/#ChangeFolderAttribs.htm

You can write a DLL or EXE if you don't want VBScript.

Upvotes: 1

Related Questions