Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

command line arguments #25

Closed
Andruha-008 opened this issue Feb 22, 2017 · 2 comments
Closed

command line arguments #25

Andruha-008 opened this issue Feb 22, 2017 · 2 comments

Comments

@Andruha-008
Copy link

Can I get command line arguments for the processing of the script
MyProduct.msi arg1="abc" arg2="bcd"?

@oleg-shilo
Copy link
Owner

You cannot access the arguments directly. Typically the arguments, as in your case, are propagated into the session properties:

msiexec.exe /i "C:\Example.msi" MY_PROP="myValue"

However, this mechanism works only for public properties - properties with fully capitalized names.

If it is what you are referring to then you access these properties just as any other msi properties.

var value = session["MY_PROP"] ;

@Andruha-008
Copy link
Author

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants