Skip to content

Variable expansion/support for Manifest InstallLocation? #3245

Answered by florelis
byjrack asked this question in Q&A
Discussion options

You must be logged in to vote

(Edited your post so that <INSTALLPATH> and <LCOALAPPDATA> show correctly)

The manifest entry for InstallLocation is not exactly meant to specify where a package should install. Rather, it is meant to let winget know how to tell the installer where to install. Then, when you use the --location argument, we pass that to the installer. So, for example, if in a manifest you set InstallLocation: /installTo <INSTALLPATH>, then if you call winget with winget install [your package] --location C:\Install\Here, we would ultimately pass to the installer the arguments /installTo C:\Install\Here

You can see it documented at https://github.com/microsoft/winget-pkgs/blob/master/doc/manifest/schema/1.0.…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@byjrack
Comment options

@florelis
Comment options

@byjrack
Comment options

@florelis
Comment options

@byjrack
Comment options

Answer selected by byjrack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants