Hello,
I am having some trouble extracting a zip during installation. The goal is to extract a .zip archive using 7zip with a custom action through launching a batch file with an unzip command.
In my application folder I have 7za.exe and myzip.zip.
In my batch file in the same folder I have the command: 7za x “myzip.zip".
I believe I need to add a path variable in order to call 7za in this way, to do this I go to environment and create a new variable. I select my 7za.exe file to get the value with results in [#za.exe] and a resolved path the points to this file.
The zip does not extract during installation and no variable is added to the path. Other actions in the batch are executed, so the batch file is being run during installation.
If I have 7zip preinstalled on the machine it seems to work fine meaning the command itself works, so I assume I am making some mistake when setting the path variable.
Can someone please clarify what needs to be done to add a path variable for my 7za.exe file, or provide information on the correct way to use 7zip to extract and archive located in the same folder to the same directory. I have checked a few threads and tutorials but cant identify my issue.
Thanks
FOLLOW US
Get the latest news in Application Packaging