Hello,
How about checking if one of those resource files existed and showing a warning? As Windows probably only extracts the EXE to run, other files next to it are probably still hidden in the ZIP and hence can not be found.
How would I build a launch condition like that?
If the MSI is missing, the EXE will show an error message and the execution is interrupted. For any other resources, this can be done using a
“Launch Condition” based on a “File search” for a resource needed, in the folder the EXE was launched.
The steps are the following :
1. Create a “File search” (in the “Custom Behavior” →
“Search” page) for a file that must be extracted prior launching the EXE. As search location you should use
SETUPEXEDIR, a property that stores the path of the EXE file.
2. Create a “Custom Launch Condition” (in the “Requirements” → “Launch Conditions” page) which have as condition the property the search returned and as description a message about the resources missing.
Interestingly enough, when I run an arbitrary EXE in the ZIP, Windows will show a warning message, like "The application may depend on files in the compressed folder ... exctract now?" (or similar). This is exactly what I need.
Unfortunately, this does not work with the AdvancedInstaller-generated EXE.
Maybe it is merely missing a flag in its manifest or something?
We tested the scenario with an “EXE setup with resources next to it” created with Advanced Installer and everything was fine. When we try to run the EXE inside the ZIP a message appear “ The application may depend on other compressed files in this folder.” and give the option to extract all the files or just run the EXE. Please find attached the project that we tested.
Can you please send us the .aip (project file) to
support at advancedinstaller dot com so we can investigate its settings and test them?
All the best,
Daniel
FOLLOW US
Get the latest news in Application Packaging