I Am trying to use par packer to create and executable. However I am struggling to get the results I am looking for.
- exe name - switch.exe
- Perl script - dell4048.pl
- Included file - #defaultconfig
So I try the following:
- pp -o switch.exe dell4048.pl #defaultconfig
This creates the switch.exe file and adds the #defaultconfig In the exe but when the exe is executed, I get an error that it can not find the switch script.
When I examine the contents of the exe, the dell4048.pl and #defaultconfig files are indeed in the script directory. So it seems that the name of the exe needs to be the same name of the script minus the extension.
So I try the following instead:
- pp -o switch.exe -r dell4048.pl dell4048.pl #defaultconfig
When the switch.exe runs, it properly launches the dell4948.pl script but upon examination of the switch.exe file, only the dell4048.pl file is located under the script directory. The #defaultconfig file is not in the script directory
So, how can I get pp to create the switch.exe file, include the #defaultconfig file and when switch.exe is executed, it will run the dell4048.pl script within script.exe ?