Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#2.0 installer setup
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?
Posted 19-Apr-11 4:32am
lukeer15K
Edited 19-Apr-11 4:33am
v2

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

I once wrote a blog entry about VS setup porjects and custom actions using C#. Its here:
 
http://thedotnetway.blogspot.com/2008/10/creating-setup-project-in-vs-2008-w.html[^]
 
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.
  Permalink  
v2

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

  Print Answers RSS
0 BillWoodruff 330
1 Mathew Soji 309
2 Maciej Los 295
3 Afzaal Ahmad Zeeshan 257
4 DamithSL 225
0 OriginalGriff 6,369
1 Sergey Alexandrovich Kryukov 5,973
2 DamithSL 5,183
3 Manas Bhardwaj 4,673
4 Maciej Los 4,045


Advertise | Privacy | Mobile
Web02 | 2.8.1411019.1 | Last Updated 19 Apr 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100