Click here to Skip to main content
15,662,459 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi experts,

I'm creating a setup project for a windows forms application. There is a directory whose access permissions have to get changed during the setup. I have C# code to do that[^] programmatically.

Running that code during setup seems to point right at custom actions.

This article[^] contains a chapter "C++ custom action DLL", which I personally would like very much, If it was possible to use C# code instead of C++.

Is it possible to translate UINT __stdcall MethodName(MSIHANDLE hInstall) and MsiGetPropertyW() to C# equivalents?

If so, how?
Updated 19-Apr-11 3:33am

1 solution

I once wrote a blog entry about VS setup porjects and custom actions using C#. Its here:[^]

For the second part, I am not exactly sure at this point, but could look up later and update this answer.

Sorry if it does not meet your needs.
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