Thanks Brandon for your reply. 2) is my solution.
However i face some problem when implement it. I already package it out the module i do custom module permission. However when i try to install the package it shows me his code return Null value
modDef.GetModuleDefinitionByName(desktopInfo.DesktopModuleID, Definition.ModuleFriendlyName)
Part of the code as Below:
Dim desktopInfo As DesktopModuleInfo = desktopMod.GetDesktopModuleByModuleName(Definition.ModuleFriendlyName) Dim modDef As New ModuleDefinitionController() Dim modDefInfo As ModuleDefinitionInfo modDefInfo = modDef.GetModuleDefinitionByName(desktopInfo.DesktopModuleID, Definition.ModuleFriendlyName)
How come the dektopInfo.DesktopModuleID have Null value? I thought when install it should already register the moduleID before upgrade.
Anyone face this error before?
Thanks and have a nice day.
Regards Caesar