Enigma VB not working on some systems
Posted: Fri May 01, 2020 10:23 am
Hi Enigma,
Thank you for this magnificent tool! I'm considering buying a Protector license, but came across a problem: on some computers the packed virtual files can't be found, and the packed exe exits with an error (for instance can't find dll etc.).
I have noticed this in computers where the program is run from a UNC path (network desktop).
It seems the working directory isn't properly set to the exe folder for UNC paths, because when I specifically call SetCurrentDirectory( unc_path ) at the start of the program it works fine and it can find the default directory.
Also, when I run the program from a normal path (say C:\temp), it works without problems.
So, I suspect the working directory isn't properly set for UNC paths.
I have noticed this 'bug' also when trying to pack other software into a portable version. Unfortunately I don't have the source code for those programs, so setting the current directory is not an option in these cases and the packed programs won't run.
Is this a bug? If not, would it be possible to have an option in VB and Protector to specifically set the current directory to the folder the exefile is in?
Thanks in advance!
Best regards, Robert
Thank you for this magnificent tool! I'm considering buying a Protector license, but came across a problem: on some computers the packed virtual files can't be found, and the packed exe exits with an error (for instance can't find dll etc.).
I have noticed this in computers where the program is run from a UNC path (network desktop).
It seems the working directory isn't properly set to the exe folder for UNC paths, because when I specifically call SetCurrentDirectory( unc_path ) at the start of the program it works fine and it can find the default directory.
Also, when I run the program from a normal path (say C:\temp), it works without problems.
So, I suspect the working directory isn't properly set for UNC paths.
I have noticed this 'bug' also when trying to pack other software into a portable version. Unfortunately I don't have the source code for those programs, so setting the current directory is not an option in these cases and the packed programs won't run.
Is this a bug? If not, would it be possible to have an option in VB and Protector to specifically set the current directory to the folder the exefile is in?
Thanks in advance!
Best regards, Robert