Wixsharp: command line arguments

Created on 22 Feb 2017  路  2Comments  路  Source: oleg-shilo/wixsharp

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

question

Most helpful comment

You cannot access the arguments directly. Typically the arguments, as in your case, are propagated into the session properties:
```C#
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.
 ```C#
var value = session["MY_PROP"] ;

All 2 comments

You cannot access the arguments directly. Typically the arguments, as in your case, are propagated into the session properties:
```C#
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.
 ```C#
var value = session["MY_PROP"] ;

Thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kain64 picture kain64  路  4Comments

mattias-symphony picture mattias-symphony  路  3Comments

ltemimi picture ltemimi  路  5Comments

meytes picture meytes  路  3Comments

Eagle3386 picture Eagle3386  路  4Comments