asking user for the creation of inexistant folders - Advanced Installer Community
vitevid
Posts: 1
Joined: Thu Aug 14, 2025 5:03 am
Contact: Website

asking user for the creation of inexistant folders

Many software install packages allow to choose a location where the package should be installed. If the directory choosen does not exist, it will prompt the user whether it should be created or not. But Advanced installer MSI package silently creates such non existant folders with out asking user's permission. How do i create a package that does ask permission before creation. Any help is appreciated.

thanks,
Catalin
Posts: 7847
Joined: Wed Jun 13, 2018 7:49 am

Re: asking user for the creation of inexistant folders

Hello and welcome to our forums,

I do not think I ever installed something that asked for permission to create the folder on the disk.

Why would you want to do that? The user would, in most cases, want as seamless of a process as possible.

Also, during silent installations, when no UI is displayed, if you prompt the user for approval, it completely nulifies the point of silent installations.

I would not advise to do that, but if you really want to, you can create a custom action that checks if the path exists and prompts the user (e.g. a PowerShell script).

You can add the custom action as one "without sequenece" and then schedule it in "Dialogs" page, on a button.

How to execute a custom action when a button is pushed

Please note that this requries the "Dialog Editor" feature which is available starting with the Enterprise suite.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”