I am developing a WIX installer. Set up requires active domain name as input while installation on a click of a button say "Browse". I googled a lot but found no way to implement. Please help to implement the same or suggest some other way to achieve this. Thanks.
How to get available active directory domain in the network using WIX?
672 Views Asked by himanshu At
1
There are 1 best solutions below
Related Questions in WIX
- Word Addin not working in 64bit office but working on 32bit office
- How to define WIX agent requirement in TeamCity?
- WiX and custom extensions for primary output?
- executing an vb script from another project bud in the same solution in C#
- WiX – copy arbitrary files
- Is Component/@Guid attribute is a MUST in case of producing MergeModule
- WiX installer - change the install path
- Single Package Authoring
- Delay in custom action
- WiX - How to use a config file to decide which MSI to run?
- How to change Install button display text conditionally
- Service dependencies are causing my wix msi to force a reboot on uninstall
- WiX installer xml add folder
- wix and heat configure installation folder
- Cant find File System, Registry icon in WIX setup project in Visual Studio
Related Questions in WINDOWS-INSTALLER
- How can I install an MSI using python's subprocess, passing an install directory containing a space?
- Upgrading MSI throwing 'method not found' error
- Windows installer - run a subsequent time, select "modify" and run specific steps
- Single Package Authoring
- WiX - How to use a config file to decide which MSI to run?
- Want to create mysql user in installation with full Privileges In NSIS
- How to change Install button display text conditionally
- error of updating an C# web service application by accessing a URL from MS installer command "msiexec" in C# VS 2010
- Service dependencies are causing my wix msi to force a reboot on uninstall
- Running msi causes “module failed to register” in 32bit win7,but works in 64bit win7
- Change the installation path with msi API
- After installation of website it changes Application Pool of web application that follows it.
- Getting strange errors when installing visual studio 2015 community rc
- Creating a silent installer for a MSI
- install msi with a product code through msiexec
Related Questions in CUSTOM-ACTION
- WiX - How to use a config file to decide which MSI to run?
- how can we change the title text color of customactionbar in android?
- WiX share code through custom actions
- Visual Studio Installer Project: Custom Action -> entry point not found
- Wix Bootstrapper Update UI (XAML) from CustomAction
- How to launch executable after installation (exe is delivered by .msm)
- How to call DISM command in WIX 3.7
- How can I use installscript to detect Excel.exe running?
- How to achieve authoring a single package for per-user or per-machine installation
- How to prevent Feature component executes before custom action in WIX
- How to sequence a custom action script after a specific dialog?
- Run exe after msi installation as administrator
- How to test CustomAction functions from application?
- CMD window remain open after wix installation runs application
- How to skip folder selection form when update installed application via Windows Installer setup project
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Here is a high level outline of how to do what you want.
Create your dialog that will have the browse button. (Dialog Parent) Create your dialog that will display the list of domains (Dialog Child) Configure your Publish elements (ControlEvents) on the Dialog Parent Browse Button to spawn the Child dialog.
Create a custom action in C++ or C# that queries Windows API's to get a list of domain the forest. Use Windows Installer API's to populate temporary rows into the ListBox table. This table will be used the ListBox control on the Child dialog. You may need to use an EnsureTable element to make sure the ListBox table gets created.
In C# you can read how to get a list of domains here: How to get a list of all domains?
To learn about temporary records look at my blog here: Dynamic Windows Installer UI
Schedule the custom action to run in the UI sequence after AppSearch. Build and test.
Here's how it works. The installer starts and runs the CA. The CA gets a list of domains and inserts temporary rows into the ListBox table as if they were authored at build time. The user gets to dialog parent and clicks the browse button. The child dialog is spawned (modal on top) and displays the list of domains. They select a record and the value associated with the record is set to the property associated with the ListBox. They click OK then Next and go about their merry way. Later you use the property somewhere like a Registry entry by saying [SELECTEDDOMAIN] or whatever else you called the property.
Since we are talking about properties with user configuration data, now is a good time to mention:
The WiX toolset's "Remember Property" pattern
This is the most detailed answer I can provide without doing the work for you. Additional assistance is available at an hourly rate.