Add help entry and set PATH in windows installer.

This commit is contained in:
Bastian Kleineidam 2013-02-28 21:20:33 +01:00
parent 7d299c1b1d
commit 731fd4e0cf
3 changed files with 12 additions and 10 deletions

View File

@ -1,5 +1,5 @@
include MANIFEST.in
include COPYING doc/*.1 doc/*.txt doc/*.tmpl doc/icon/*
include Makefile *.bash-completion
include scripts/*.bat
include scripts/*.bat scripts/*.iss
recursive-include tests *.py

View File

@ -3,6 +3,7 @@
* Add support for searching in archive contents.
* Add support for ISO image handling.
* Allow multiple --verbose options to increase program output.
* Add patool.exe to the PATH in the windows installer.
* Fixed Python lzma archive handling.
* Fixed lzop, lrzip and rzip archive handling.
* Fixed Python 3.x support.

View File

@ -178,7 +178,7 @@ class InnoScript:
print("SetupIconFile=%s" % self.icon, file=fd)
print(file=fd)
print("[Tasks]", file=fd)
print("Name: modifypath; Description: Add app directory to environment PATH; Flags: unchecked", file=fd)
print("Name: modifypath; Description: Add application directory to %PATH%; Flags: checked", file=fd)
print(file=fd)
# List of source files
files = self.windows_exe_files + \
@ -194,8 +194,9 @@ class InnoScript:
for path in self.windows_exe_files:
print(r'Name: "{group}\%s"; Filename: "{app}\%s"' %
(self.name, path), file=fd)
if self.console_exe_files:
print(r'Name: "{group}\Patool command prompt"; Filename: "cmd.exe"', file=fd)
for path in self.console_exe_files:
name = os.path.basename(path).capitalize()
print(r'Name: "{group}\%s help"; Filename: "cmd.exe"; Parameters "/C %s --help";' % (name, path), file=fd)
print(r'Name: "{group}\Uninstall %s"; Filename: "{uninstallexe}"' % self.name, file=fd)
print(file=fd)
# Uninstall optional log files