wqweto / UMMM

Unattended Make My Manifest
GNU Lesser General Public License v3.0
54 stars 12 forks source link

File command - using target name without specifying optional arguments which precede it? #25

Open DaveInCaz opened 4 years ago

DaveInCaz commented 4 years ago

For the File command, is there any way to use the target_nameoption without specifying interface names or a classes filter?

The docs show this:

Parameters [interfaces] [classes_filter] [target_name] file_name file containing typelib. Can be relative to base path interfaces (optional) pipe (|) separated interfaces with or w/o leading underscore classes_filter (optional) pipe (|) separated filter for coclasses in file target_name (optional) surrogate file location in output manifest

Since the argument separators are just whitespace... I can't seem to leave those middle options blank but still add a target_name, can I?

Is there some way to use an "all" wildcard for the middle two options?

(Looking at the code, I don't see a way...)

Thanks

DaveInCaz commented 4 years ago

Actually, it seems to work when I use a line like this:

File ..\..\path\to\dll\abc.1.2.3.4.dll | * abc.dll

Looking at the code I don't actually see why this works. Is this the best way?

wqweto commented 4 years ago

Try quoting the empty strings like this

File UcsFP20.dll "" "" Dependency\UcsFP20.dll

Yes, the syntax got weird but this is what organic growth looks like I suppose. . .

DaveInCaz commented 4 years ago

That worked great, thanks! I just submitted a PR to add a note about that syntax to the readme.