[Incident]: Some users report they are unable to access the case portal. Please see this community notice for more information.

Showing results for 
Show  only  | Search instead for 
Did you mean: 
Level 6

Disable SetupType if files don't exist

I'd like to have the installer check whether the SQL prerequisite file exists where we expect it to be, and if it doesn't to disable the ability to select the SetupType which would install SQL.

I tried to create a System Search which looks for the file named "SQLEXPR_x64_ENU.exe" in "A full path: [SETUPEXEDIR]ISSetupPrerequisites\{1C9DEF39-381E-4839-B979-3D98F82C0669}" with "Maximum number of subfolders to search" I've tried both 0 and 1. It then should save to the FILEEXISTS_TEST property (which doesn't exist in the Properties list, I expect it to create the property if it doesn't exist). Just to verify it works, on the InstallWelcome dialog I added a text "FILEEXISTS_TEST = [FILEEXISTS_TEST]" but when I build and then run setup.exe with that file present, the [FILEEXISTS_TEST] property doesn't display anything in the InstallWelcome dialog. What am I missing or doing wrong?

Labels (1)
0 Kudos
0 Replies