Skip to content
⌘ NSIS Forum Archive

Suppress Directory Screen

6 posts

jcagle#

Suppress Directory Screen

I am writing an install script that may or may not display the Directory screen (to get the installation directory). If there is a version of my software already on the system, I don't want to show the directory screen...I'll just use the current directory path. Is there a way to suppress the directory screen? Thanks in advance!!
Joel#
use the pre function of the directory. Are you using Modern UI.
How do you want to detect the pre-installed version of the app?
In folder or registry way?
Look this instructions:
1. With Modern UI: MUI_CUSTOMFUNCTION_DIRECTORY_PRE
2. No Modern UI: Page directory "" "detectapp"
jcagle#
I'm looking in the registry to determine the pre-installed version...and, am using Modern UI. I will look into "MUI_CUSTOMFUNCTION_DIRECTORY_PRE". Thanks for the pointer!
Vytautas#
When you have detected if your app exists call the 'abort' function out of the Directory PRE page to stop it from showing up.

Vytautas
jcagle#
Whate do you mean by the "Directory PRE page"? OR, maybe I'll understand more when I research MUI_CUSTOMFUNCTION_DIRECTORY_PRE.
Vytautas#
Sorry I left out function on the end it should have said "Directory PRE page function" which is the function defined by "MUI_CUSTOMFUNCTION_DIRECTORY_PRE". Have a look at my archive page 'Defaults for second directory'. In that script you'll find where I skip showing the second page if the options file exists. Sorry for the confusion and hope this helps you.

Vytautas