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?
673 Views Asked by himanshu At
1
There are 1 best solutions below
Related Questions in WIX
- Wix bundle of third party exe and new msi cant figure out detect conditions
- Getting 'Error writing to file' during WiX Toolset upgrade when changing installation scope
- Unable to format string in desired format - WiX
- wix toolset radio button condition
- How to Add custom dialog to Wix v4
- How to invoke UAC(Elevation shield) Prompt while trying to open bootstrapper bundle exe in WIX
- How do I use heat.exe with Visual Studio extension?
- Is anybody using WiX Toolset v5.0.0-rc.1?
- WixToolset v4 - Installation with scope "PerUser" fails when package NetFx462Redist is used
- Wix not writing to HKCU when run with a user needing admin login?
- WIX project Radio button value usage
- WinAPI / WIX - How to detect if the MSI installer is running on ARM64 or x86?
- Detect re-installation on rollback
- Update to Wix 3.14 from 3.11 get error MSB4181: The "MSBuild" task returned false but did not log an error
- Wix: Error LGHT0091: Duplicate symbol 'Property:WIX_IS_NETFRAMEWORK_472_OR_LATER_INSTALLED' found
Related Questions in WINDOWS-INSTALLER
- Wix bundle of third party exe and new msi cant figure out detect conditions
- create MSI that can be installed in console per user and per machine
- Invoke-command works only when any user is logged (msi install)
- Windows installer silently skips over component marked as 'Local'
- Customizing the Behavior of the BrowseDlg in WiX to Use a Custom Dialog for Invalid Directories
- Unable to format string in desired format - WiX
- Creating a Desktop Version of a Web Application (NextJS TypeScript Golang Echo)
- wix toolset radio button condition
- Creating an Installer Wizard
- Using msiexec on unattend.xml as SynchronousCommand but it run as asynchronous
- How to protect MSI installer digital signature from tampering
- I finished writing the code for an Android application, and it was in Python kivy, and while converting it to exe, this problem appeared
- Windows Installer Issue: Files Not Replaced After Major Upgrade - Seeking Assistance and Clarification
- WinAPI / WIX - How to detect if the MSI installer is running on ARM64 or x86?
- 'The cabinet file media1.cab required for this installation is corrupted and cannot be used ' in dowloading Node.js
Related Questions in CUSTOM-ACTION
- rasa not responding when setting the value of session_persistence: true using socket
- VS2010 Installer Project Custom Action to run an EXE is failing
- How to execute a custom action when a user changes a feature from 'selected' to 'unselected'?
- WiX v4 - execommand not working - works fine on command line
- How to get the additional CA dll from a Wix Custom Action build into a nuget package?
- Wix 4: How to run console application referenced from the setup project
- Unit Testing of Deferred Custom Actions in wix
- How can to run custom action that would run on CANCEL/abort installation?
- Flutterflow package plaid_flutter: ^3.1.4 throws error upon initializing PlaidLink with the correct LinkToken in Custom Action. What am I missing?
- To validate user install step in installer project in Visual Studio 2022
- How to connect appwrire with flutterflow...?
- How to specify the application config file in a Wix Custom Action that will execute an exe that is in a Binary element?
- How to invoke exe using custom action in WIX V4?
- run .msi file compiled from wxs without any installation whatsoever
- Wix4: Perform validations in Bundle.wxs
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 # Hahtags
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.