function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Kiran.sfdc14Kiran.sfdc14 

Hiding Visualforce pages code after installing managed package?

Hi All,

 

Ours is a managed package. We have installed the app in customer org. But the system admin is able to view the VF page code.

 

Is there any possible way how we can restrict this?

 

Regards,

Kiran

 

JK84JK84

Hi,

 

VF code is not hidden by salesforce when a managed package is installed. But, salesforce doesn't allow the VF code to be edited.

 

You may refer the following link for more details on packaging : http://wiki.developerforce.com/page/An_Introduction_to_Packaging

 

Implications of Managed Packages on Source Code

 

If someone installs a managed package, they don't get access to all the source code of that package. For example, if the package installs an Apex class, they will not be able to view the source code of that Apex class. Here is a list of factors that should be considered:

 

  • Apex class source code is completely hidden; unless the Apex class is a global class in which case the global method signatures and variables are exposed.
  • The source of Visualforce pages is not hidden. However, the source cannot be edited.
  • The source of Visualforce Components is hidden.
  • Trigger source code is also hidden.

Hence managed packages provide a strong form of IP protection.