简体   繁体   English

如何获取由 c++ dll SetMsiProperty api 设置的 installshield 2019 中的属性值?

[英]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.

相关问题 Visual Studio 2019 C++ 项目错误“找不到依赖的 dll”,如何知道找不到哪个 dll - Visual Studio 2019 C++ project error "A dependent dll was not found", how to know which dll is not found 如何从延迟的CustomAction(c ++ dll)设置WiX属性 - How to set WiX property from deferred CustomAction (c++ dll) 如何判断哪些C ++可再发行组件包含在InstallShield安装程序中? - How to tell which C++ redistributable to include in InstallShield installer? 如何在C ++中使用DLL API中的徽标获取日志 - How to get log by using logog in DLL API's in C++ 编译c ++ dll时要选择哪个字符集 - Which character set to choose when compiling a c++ dll c++ winrt uwp 如何从依赖属性中获取值 - c++ winrt uwp how to get value out of dependency property 如何在 VS2019 中为 C++ 字符串设置条件断点? - How to set a conditional breakpoint for C++ strings in VS2019? 如何在调用C ++ dll的C#中捕获异常 - how to catch exception in C# which call a C++ dll C++ / WinAPI:如何从注入的 x64 DLL 中的函数中获取值? - C++ / WinAPI: How do I get a value from a function in the injected x64 DLL? Python-从DLL中的C ++指针获取值 - Python - Get value from C++ pointer in DLL
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM