CA_DirectoryChooser 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package CA_DirectoryChooser --version 1.0.0                
NuGet\Install-Package CA_DirectoryChooser -Version 1.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CA_DirectoryChooser" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CA_DirectoryChooser --version 1.0.0                
#r "nuget: CA_DirectoryChooser, 1.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install CA_DirectoryChooser as a Cake Addin
#addin nuget:?package=CA_DirectoryChooser&version=1.0.0

// Install CA_DirectoryChooser as a Cake Tool
#tool nuget:?package=CA_DirectoryChooser&version=1.0.0                

WiX Custom Action - Directory Chooser

This is a CustomAction for a WiX Project (v3) which provides a handy dialog to choose a directory. <br />

<img src="https://github.com/wbicode/CA_DirectoryChooser/blob/develop/CA_DirectoryChooser/documentation/example.png?raw=true" alt="" style="float: left; margin-right: 10px;" />

Usage

Include the built CA_DirectoryChooser.CA.dll from this project in your own project or use the published nuget (defined in CA_DirectoryChooser/CA_DirectoryChooser.nuspec). <br />

Reference the .dll in your .wxs like so:

<Binary Id="CA_DirectoryChooser" SourceFile="pathToPackages/CA_DirectoryChooser.X.X.X/lib/net45/CA_DirectoryChooser.CA.dll" />

  • "pathToPackages" could be $(var.SolutionDir)/packages

<br />

And now you can have your CustomAction: <br />

<CustomAction Id="OpenFileChooser" BinaryKey="CA_DirectoryChooser" DllEntry="OpenFileChooser" />

  • Id can be something different

<br />

Which can now be called in the GUI (Publish element is a child of the Button-Control element) :

<Control Id="ChangeFolder" Type="PushButton" X="79" Y="158" Width="80" Height="17" Text="Browse"> <Publish Event="DoAction" Value="OpenFileChooser" Order="1">1</Publish> <Publish Property="LOG_PATH" Value="[CHOSEN_DIRECTORY]" Order="2">1</Publish> </Control>

After the OpenFileChooser-CustomAction the MSI property "CHOSEN_DIRECTORY" is set to the user-chosen directory. In the above example it's stored into LOG_PATH to be able to choose another directory later.

Customize Default Directory

Define the property "CA_DC_OPEN_DIR" (If you use multiple calls, use SetProperty with the attribute Before or After) to define the directory which gets opened at startup.

Product Compatible and additional computed target framework versions.
.NET Framework net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.2 860 3/12/2019
1.0.1 648 3/11/2019
1.0.0 639 3/5/2019
0.1.0-dev0008 514 3/5/2019
0.1.0-dev0007 503 3/5/2019
0.1.0-dev0006 493 3/5/2019
0.1.0-dev0004 505 3/5/2019
0.1.0-dev0003 476 3/4/2019
0.1.0-dev0002 457 3/4/2019

Initial Release