Help with licencing and installer |
Post Reply |
Author | |
glennj
Newbie Joined: 07 February 2006 Status: Offline Points: 24 |
Post Options
Thanks(0)
Posted: 24 February 2006 at 7:57am |
Hi I'm running VB.Net 2003 and have created an application using these ActiveX controls. I now want to distribute the application but am having some problems. I make an installer using Visual Studio and it installs fine on my test PC, but when I try to run the program it errors going on about licencing. Do I need to include the licences inside the program? If so, can someone provide an example of how best to do this (in VB.Net)? Also, my installer includes not only the OCX files for the components, but also the DLL's... should it need the DLL's or not? Many thanks |
|
glennj
Newbie Joined: 07 February 2006 Status: Offline Points: 24 |
Post Options
Thanks(0)
|
Ok, I've got this working finally! Turns out I was doing two things wrong... 1) The OCX components should have been set to "Self Register" (vsdrfCOMSelfReg) 2) I needed to include the licence in the program... example as follows for those also try to do this. ---------------------------------- Public CalendarGlobalSettings As XtremeCalendarControl.CalendarGlobalSettings Public CommandBarsGlobalSettings As XtremeCommandBars.CommandBarsGlobalSettings Public DockingPaneGlobalSettings As XtremeDockingPane.DockingPaneGlobalSettings Public PropertyGridGlobalSettings As XtremePropertyGrid.PropertyGridGlobalSettings Public ReportControlGlobalSettings As XtremeReportControl.ReportControlGlobalSettings Public ShortcutBarGlobalSettings As XtremeShortcutBar.ShortcutBarGlobalSettings Public SuiteControlsGlobalSettings As XtremeSuiteControls.SuiteControlsGlobalSettings Public TaskPanelGlobalSettings As XtremeTaskPanel.TaskPanelGlobalSettings# Region " Windows Form Designer generated code " Public Sub New() MyBase.New() 'Register ComponentsCalendarGlobalSettings = New XtremeCalendarControl.CalendarGlobalSettingsCalendarGlobalSettings.License = ID.CJ_LIC_1 CommandBarsGlobalSettings = New XtremeCommandBars.CommandBarsGlobalSettingsCommandBarsGlobalSettings.License = ID.CJ_LIC_2 DockingPaneGlobalSettings = New XtremeDockingPane.DockingPaneGlobalSettingsDockingPaneGlobalSettings.License = ID.CJ_LIC_3 PropertyGridGlobalSettings = New XtremePropertyGrid.PropertyGridGlobalSettingsPropertyGridGlobalSettings.License = ID.CJ_LIC_4 ReportControlGlobalSettings = New XtremeReportControl.ReportControlGlobalSettingsReportControlGlobalSettings.License = ID.CJ_LIC_5 ShortcutBarGlobalSettings = New XtremeShortcutBar.ShortcutBarGlobalSettingsShortcutBarGlobalSettings.License = ID.CJ_LIC_6 SuiteControlsGlobalSettings = New XtremeSuiteControls.SuiteControlsGlobalSettingsSuiteControlsGlobalSettings.License = ID.CJ_LIC_7 TaskPanelGlobalSettings = New XtremeTaskPanel.TaskPanelGlobalSettingsTaskPanelGlobalSettings.License = ID.CJ_LIC_8 'This call is required by the Windows Form Designer. InitializeComponent() ---------------------------------- Where ID.CJ_LIC_1 etc are your licence strings.. Glenn |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |