在分期付款期间,用户输入他的名字我想访问它以供以后使用 [英] During installment user enters his name. I want to access it for later use

查看:75
本文介绍了在分期付款期间,用户输入他的名字我想访问它以供以后使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在分期付款期间,用户输入他的名字。我想访问它以供以后使用

我发现用C#编写的代码访问CustomAction对话框项目

我想在C ++代码中获得一个等效的代码

你能帮助我吗?



C#中的代码低于



During installment user enters his name. I want to access it for later use
I found a code written in C# which accesses the CustomAction dialog item
I like to get an equivalent code in C++ code
Would you help me?

The code in C# is below

[RunInstaller(true)]
public partial class InstallerHelp : Installer{
    public override void Install(IDictionary stateSaver) {
        base.Install(stateSaver);
        string strKey = Context.Parameters["KeyValue"];
        string sPath = @"c:\Test.txt";
        if (File.Exists(sPath))
            File.Delete(sPath);
        File.WriteAllText(sPath, strKey);
    }
}





提前谢谢

ChangChiTheGraphics



Thank you in advance
ChangChiTheGraphics

推荐答案

这篇CP文章介绍了C ++中的CustomAction对话框... Visual Studio安装项目中的自定义操作 [ ^ ]



或者可能是这个... < a href =http://www.codeproject.com/Articles/1747/MSI-Custom-Action-DLL> MSI自定义动作DLL [ ^ ]
This CP article covers the CustomAction dialog in C++ ... Custom Action in Visual Studio setup projects[^]

or possibly this one ...MSI Custom Action DLL[^]


这篇关于在分期付款期间,用户输入他的名字我想访问它以供以后使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆