Click here to Skip to main content
15,886,810 members
Home / Discussions / C#
   

C#

 
GeneralRe: Access files in use Pin
Heath Stewart29-Mar-04 8:23
protectorHeath Stewart29-Mar-04 8:23 
GeneralPolymorphism and types Pin
esuyer4saic29-Mar-04 7:30
esuyer4saic29-Mar-04 7:30 
GeneralRe: Polymorphism and types Pin
Heath Stewart29-Mar-04 8:18
protectorHeath Stewart29-Mar-04 8:18 
GeneralReporting Pin
rags29-Mar-04 6:35
rags29-Mar-04 6:35 
GeneralRe: Reporting Pin
Heath Stewart29-Mar-04 8:09
protectorHeath Stewart29-Mar-04 8:09 
GeneralRe: Reporting Pin
Michael Flanakin29-Mar-04 17:25
Michael Flanakin29-Mar-04 17:25 
GeneralCustom Install Pin
dotnetdev@univ.kiev.ua29-Mar-04 6:05
dotnetdev@univ.kiev.ua29-Mar-04 6:05 
GeneralRe: Custom Install Pin
Heath Stewart29-Mar-04 8:07
protectorHeath Stewart29-Mar-04 8:07 
The installer project uses Windows Installer - there is absolutely NO need to check to see if your product exists. If the ProductCode is already registered, it will prompt to repair or remove. If you want an upgrade, keep the UpgradeCode the same, change the version number, and set RemovePrevious to true. It is recommended that .NET applications and libraries DO NOT write to the registry as this cause portability and deployment problems.

Also, when you create a custom Installer class, you have to register it as a Custom Action otherwise it won't be executed. There's no magic here. Just go to the Custom Actions tab in the setup project, right-click, and and select "Add Custom Action...". It will create custom actions for each of the catagories listed in that tab. To pass parameters from your installer package, pass command-line arguments by customizing the custom action commands that are generated to send things like /myparam1=[PARAM1] /myparam2=[PARAM2], where PARAM1 and PARAM2 are properties defined in your installer package (which can be set using the custom dialogs). In your installer package, you can get these by querying the Context.Parameters property (a dictionary, or key/value lookup table) using the switch, like myparam1 and myparam2 like I used above.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Custom Install Pin
dotnetdev@univ.kiev.ua29-Mar-04 22:10
dotnetdev@univ.kiev.ua29-Mar-04 22:10 
GeneralRe: Custom Install Pin
Heath Stewart30-Mar-04 3:28
protectorHeath Stewart30-Mar-04 3:28 
GeneralRe: Custom Install Pin
dotnetdev@univ.kiev.ua30-Mar-04 4:18
dotnetdev@univ.kiev.ua30-Mar-04 4:18 
GeneralRe: Custom Install Pin
Heath Stewart30-Mar-04 4:24
protectorHeath Stewart30-Mar-04 4:24 
GeneralRe: Custom Install Pin
dotnetdev@univ.kiev.ua30-Mar-04 19:54
dotnetdev@univ.kiev.ua30-Mar-04 19:54 
GeneralRe: Custom Install Pin
dotnetdev@univ.kiev.ua30-Mar-04 20:42
dotnetdev@univ.kiev.ua30-Mar-04 20:42 
GeneralRe: Custom Install Pin
Heath Stewart31-Mar-04 3:14
protectorHeath Stewart31-Mar-04 3:14 
GeneralRe: Custom Install Pin
Heath Stewart31-Mar-04 3:08
protectorHeath Stewart31-Mar-04 3:08 
GeneralRe: Custom Install Pin
dotnetdev@univ.kiev.ua31-Mar-04 3:15
dotnetdev@univ.kiev.ua31-Mar-04 3:15 
GeneralRe: Custom Install Pin
Heath Stewart31-Mar-04 3:16
protectorHeath Stewart31-Mar-04 3:16 
GeneralRe: Custom Install Pin
dotnetdev@univ.kiev.ua31-Mar-04 3:20
dotnetdev@univ.kiev.ua31-Mar-04 3:20 
GeneralRe: Custom Install Pin
Heath Stewart31-Mar-04 3:23
protectorHeath Stewart31-Mar-04 3:23 
GeneralClick Sound Pin
johnstacey29-Mar-04 5:23
johnstacey29-Mar-04 5:23 
GeneralRe: Click Sound Pin
Heath Stewart29-Mar-04 5:28
protectorHeath Stewart29-Mar-04 5:28 
GeneralTutor application Pin
Saleh Alshadheli29-Mar-04 5:00
Saleh Alshadheli29-Mar-04 5:00 
GeneralRe: Tutor application Pin
Heath Stewart29-Mar-04 5:24
protectorHeath Stewart29-Mar-04 5:24 
GeneralMoveable Controls - Form Style Pin
Tristan Rhodes29-Mar-04 4:58
Tristan Rhodes29-Mar-04 4:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.