Click here to Skip to main content
15,922,015 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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

C#
[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);
    }
}


Thank you in advance
ChangChiTheGraphics
Posted
Updated 2-Feb-15 23:46pm
v2

1 solution

This CP article covers the CustomAction dialog in C++ ... Custom Action in Visual Studio setup projects[^]

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

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900