Randem Systems Support Board

InnoScript => InnoScript - General Questions, Report Bugs, Problems etc... => Topic started by: pagesoft on November 02, 2011, 09:45:22 AM

Title: Ocx/Dll files are marked as shared
Post by: pagesoft on November 02, 2011, 09:45:22 AM
I have several ocx/dll files that I have created and when I add them to project I do not set the shared flag.  When the Inno project is compiled they show flag as shared.  Is the flag correct?
 
I want some shared Dll/OCX's and some Not.
Title: Ocx/Dll files are marked as shared
Post by: Randem on November 02, 2011, 10:54:05 AM
Yes, that is correct. If you would not like the shared flag on them you can override the flag by putting that line in the template for your application and removing the shared flag on that line. InnoScript will replace the line with the one in the template.
 
So you are saying the no other application will use your dll/ocx correct. Remember that flag is only there to tell the OS that it should check the count when you uninstall your application to make sure no other application that was installed is currently using that ocx/dll and not to uninstall it if it is.
Title: Ocx/Dll files are marked as shared
Post by: pagesoft on November 02, 2011, 11:10:52 AM
Yes no other applciation will use the dll or ocx.  The dll/ocx's are Proprietary and can not be used by any one else.
 
I can use InnoIDE and turn sharing off but I was thinking that if a button is off then the script should not add the feature.
Title: Ocx/Dll files are marked as shared
Post by: Randem on November 02, 2011, 11:31:02 AM
Negative, InnoScript is designed primarily to find all the file you need and add the correct flags. If you want to change that functionality you either need to use a template to alter the script of use your script editor to modify it.  
 
I suggest using the template so that you do not have to remember to manually modify the script each time you re-create it.