devxlogo

Setup

Question:
The setup wizard gives the capability to the end user to change the directory into which the setup will copy the files. How can I prevent this? If the user changes the directory, how can I know it, or how can this info be passed to the postsetup exe?

Answer:
You cannot, from the wizard, prevent the user from changing the directory.

Second, as long as the postsetup exe is in the same directory as the application that is installed, the postsetup exe could read FULLPATH(CURDIR()) to determine what the directory is, and then update any configuration of the application files that is required.

Charlie has over a decade of experience in website administration and technology management. As the site admin, he oversees all technical aspects of running a high-traffic online platform, ensuring optimal performance, security, and user experience.

See also  Five Early Architecture Decisions That Quietly Get Expensive

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.