开发者

WebSetup Installer not getting CustomDataAction values

开发者 https://www.devze.com 2023-03-01 16:10 出处:网络
I have a websetup package where I am using CustomActionData for the connection string. I have the following parameter setup in my \"Primary output\" node under Install and Commit for my installer:

I have a websetup package where I am using CustomActionData for the connection string. I have the following parameter setup in my "Primary output" node under Install and Commit for my installer:

/ConnectionString=[CONNECTIONSTRING]

My Installer class accepts this value as follows:

string connectionString = context.Parameters["Connec开发者_运维问答tionString"];

However when I execute msiexec as follows:

msiexec /i WebTestInstaller.msi ConnectionString="test" /quiet

The "context" object above never gets the "test" value. The "connectionstring" array variable is always empty.

Am I missing something here?


You need to use this command line:

msiexec /i WebTestInstaller.msi CONNECTIONSTRING="test" /quiet

You are setting the installer property, not the parameter. During install the parameter uses the property value.

0

精彩评论

暂无评论...
验证码 换一张
取 消