[英]How to get the property value in the installshield 2019 which is set by c++ dll SetMsiProperty api?
I am using installshield 2019 professional.我正在使用 installshield 2019 专业版。 I want to validate username/password provided by user.
我想验证用户提供的用户名/密码。 I have written a custom action in c++ dll and from that setting a property using SetMsiProperty method.
我在 c++ dll 中编写了一个自定义操作,并使用 SetMsiProperty 方法设置了一个属性。 Now, I am trying to use that property value in the condition to spawn dialogue.
现在,我试图在条件中使用该属性值来产生对话。 But in the installer I could not able to get the property.
但是在安装程序中我无法获得该属性。 Is that the same way to do that?
这样做的方法是一样的吗? Please help.
请帮忙。
Thanks in advance.提前致谢。
Generally it is bad form to take a password and store it in a property at runtime.通常,在运行时获取密码并将其存储在属性中是不好的形式。 If you log your install and then search for that property, or password value, you see it right there in the log plain as day.
如果您记录您的安装,然后搜索该属性或密码值,您会在日志中以 day 形式看到它。 Bad security!
治安不好!
To actually answer your question is fairly easy especially if you have any experience with.Net.实际回答您的问题相当容易,尤其是如果您对.Net 有任何经验。 Since you're using SetMsiProperty can you guess the answer?
由于您使用的是 SetMsiProperty,您能猜出答案吗? Try looking for GetMsiProperty.
尝试寻找 GetMsiProperty。
Sometimes MS changes it up to MsiGetProperty有时 MS 将其更改为MsiGetProperty
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.