I'm making an update for a different program using the surface theme, that program's directory and executable is similar to the following:
D:\RandomFolder1\Random Folder2\AppDir\App.exe < The path to the AppDir folder and App.exe could be in any directory
I'm aiming for one of the two following scenarios:
- Scenario 1
- By default, the "Install" button is unavailable.
- The user must select the executable "App.exe" in the "Select the install folder location".
- For the Install button to be available, the path in the "Path Edit" box must contain "App.exe".
- After the user selects the executable, the Install button should appear automatically.
- The update should install in the same folder that contains the executable, per my first example it should install in "D:\RandomFolder1\Random Folder2\AppDir".
The benefit behind this: This will make selecting the correct path far more easier for the less experienced users since now they will only have to select an exe to continue with the installation.
- Scenario 2
- By default, the "Install" button is unavailable.
- Once the user selects a path in the "Path Edit" box, Advanced Installer should check that selected path if it contains "App.exe" or not.
- If the selected path does not contain the executable, a pop-up message should appear stating that the selected path is wrong, and the install button should remain unavailable until a correct path is given.
- If the selected path contains the executable, the install button should appear and the user can continue on with the installation.
The benefit behind this: This scenario isn't as straightforward as selecting an exe to continue, but showing a warning message upon choosing a wrong installation path is almost as helpful as scenario 1.
Whatever scenario is possible and easier to achieve I'm okay with.
It took me a bit to make sure that I explained what I'm aiming for correctly, so hopefully, I succeeded in that.
Thanks in advance,
Jacob