Quantcast
Channel: Flexera Community Forums
Viewing all articles
Browse latest Browse all 4553

How to detect whether the setup executed is from inside a compressed folder or not?

$
0
0
Recently one of our customer ran into a problem, where they tried to execute an installer from inside a compressed folder. Usually if an installer doesn't have any dependent folder/files there is no problem, but when it has dependent files/folders then that particular installer will only be copied into temp folder for execution and that's where the problem lies as it will stop getting executed further due to unavailability of other dependent files in temp location.

Does any one know any API/Functions to detect whether a user is running executable from inside a compressed folder? If possible please help me in finding out the path of the compressed folder location i.e a zip location from where the installer is running. So that by just checking the ".zip" extension in the path we can advice the customer in a form of message.

I have already checked SOURCEDIR, SETUPEXEDIR, GETFILEINFO(), PACKAGE_LOCATION and CURRENTDIR functions to get the location of a compressed folder but it's always ending up displaying TEMP folder location.

Any help will be highly appreciated.

Thanks,
Krishnan

Viewing all articles
Browse latest Browse all 4553

Trending Articles