🚀 DevOps & SRE Certification Program 📅 Starting: 1st of Every Month 🤝 +91 8409492687 🔍 Contact@DevOpsSchool.com

Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

Newbie issue with custom input

applicationPackaging created the topic: Newbie issue with custom input
I am running WiX version 3.0.5419.0.

I am building an installer for a program that transforms data. The program reads data from an input directory and writes the transformed data to an output directory. I want the user to be able to specify the input and output directory during the installation process and have the installer save the values to the registry.

I created an msi installer using WiX. It uses a modified version of the WixUI_InstallDir that includes an additional configuration dialog with PathEdit controls to accept the user defined values. When I run my installer I get the following error before my custom configuration dialog opens up:

DEBUG: Error 2343: Specified path is empty.

Here is the code I use to handle the user provided input directory (the output directory code is very similar):

I have a Component for the input directory registry entry that references a UI_CONFIG_INPUT_DIR property that holds the user defined entry:





In my feature I reference the InputDirectory Component:



The UI_CONFIG_INPUT_DIR is defined and set to a default value of C:\\:

In my custom version of the WixUI_InstallDir I have the following Publish commands to handle the user input from a ConfigureDlg dialog I created (see
below):

1
1
1
1

The ConfigureDlg includes a PathEdit Control to accept the user input:








1







Thanks in advance for any help,

Subscribe
Notify of
guest


0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments

Certification Courses

DevOpsSchool has introduced a series of professional certification courses designed to enhance your skills and expertise in cutting-edge technologies and methodologies. Whether you are aiming to excel in development, security, or operations, these certifications provide a comprehensive learning experience. Explore the following programs:

DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.

0
Would love your thoughts, please comment.x
()
x