Print Page | Close Window

Reg free Codejock (ActiveX)

Printed From: Codejock Forums
Category: General
Forum Name: Articles and Tutorials
Forum Description: Articles and Tutorials
URL: http://forum.codejock.com/forum_posts.asp?TID=11194
Printed Date: 20 April 2024 at 2:27am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Reg free Codejock (ActiveX)
Posted By: JantjeKeizer
Subject: Reg free Codejock (ActiveX)
Date Posted: 24 June 2008 at 5:53pm
Allow me to have the honor to open the first topic in this forum :)
Using this little tutorial you can deploy your application (or run it from an USB stick) without the need to register the Codejock controls.
You can even use different versions next to eachother (side by side).

Sounds cool huh? So here's what you need to do:
Unzip the attached file to any place.
Adjust the first 3 lines of the .bat file to suit your needs

set ANSIUnicode=.Unicode
set Version=v15.0.1 
set cjdir=%ProgramFiles(x86)%\Codejock Software\ActiveX\Xtreme SuitePro ActiveX %Version%\Bin\ 

If you don't want unicode controls, then simply replace the first line with
set ANSIUnicode=

The second line is the version of the controls you are using 
The third line is the folder where you have the Codejock controls installed. If you are running on 32 bit, then replace %ProgramFiles(x86)% with %ProgramFiles% 

Run the bat and notice that a folder is created called 'Manifest' 
Inside that folder you'll find most of Codejocks controls with simplified names 

Open the .manifest file in notepad and run the manifest helper. Select all the files you want to use and click "open"

This will save all necessary information on your clipboard.

Replace the

<!-- Replace this block -->
with the information on your clipboard and save the manifest file.

Place the manifest next to your application and change its name to match your executable filename

eg:

myApp.exe.manifest

Thats it! you can run it from any computer (XP and up) without the need to register the controls. 
You don't need to copy all of the controls. For instance, when you just use the commandbars in your app, you will only have to copy Commanbars.ocx.

Another little extra is that you might want to change the elevation property for when being used on Vista computers.
When your application needs administrator privileges, change
level="asInvoker"
to

level="requireAdministrator" 


uploads/3745/Manifest_helper2.zip - uploads/3745/Manifest_helper2.zip





Replies:
Posted By: Oleg
Date Posted: 25 June 2008 at 12:43am
Hello,
 
Thanks a lot! :-)
What tool did you use to generate it ?


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: JantjeKeizer
Date Posted: 25 June 2008 at 4:13am
Originally posted by oleg oleg wrote:

Hello,
 

Thanks a lot! :-)

What tool did you use to generate it ?
I wrote a small tool myself to collect the necessary information.


Posted By: tobi
Date Posted: 01 July 2008 at 4:47pm
Would you be willing to share this tool ? 


Posted By: JantjeKeizer
Date Posted: 02 July 2008 at 4:43am
With this file you should be able to make your own manifests.

Run the exe and then select a dll or ocx you want to use.
It will copy all necessary data to the clipboard, which you can paste into the manifest skeleton.
Simply replace the 'file name' block with your own file(s)

Be wary of the default filenames it uses. Sometimes it doesn't like all the 'dots' in the codejock filenames. So if you change the filename in the manifest and (of course) the filename of the file you deploy with your app, then everything should be fine.
You can also place files in subdirectories by simply changing the manifest filenames like for example:
<file name = "Controls\Calendar.ocx">

uploads/20080702_043418_Manifest_helper.zip - 20080702_043418_Manifest_helper.zip


Posted By: ctrl
Date Posted: 27 November 2008 at 9:57am
Thanks for all the info about the manifest. I tried this solution on windows XP and everything is working fine, but it looks like I'm missing something when testing on windows Vista.

I'm giving you the essential part of my manifest :

  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
    <security>
      <!-- RequestMinimum -->
      <applicationRequestMinimum>
        <PermissionSet Unrestricted="true" ID="Custom" SameSite="site" />
        <defaultAssemblyRequest permissionSetReference="Custom" />
      </applicationRequestMinimum>
      <!-- RequestedPrivileges -->
      <requestedPrivileges>
        <requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
      </requestedPrivileges>
    </security>
  </trustInfo>

....

  <file name="ocx\SkinFramework.ocx" asmv2:size="526256" xmlns="urn:schemas-microsoft-com:asm.v1">
    <!-- Hash -->
    <asmv2:hash>
      <dsig:Transforms>
        <dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
      </dsig:Transforms>
      <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
      <dsig:DigestValue>FSNcbnZLewpTlmL3UUypMs+K4m0=</dsig:DigestValue>
  </asmv2:hash>
    <!-- Libraries -->
    <typelib tlbid="{bd0c1912-66c3-49cc-8b12-7b347bf6c846}" version="12.0" helpdir="" resourceid="0" flags="HASDISKIMAGE" />
    <comClass clsid="{3f175045-ad09-4780-b038-6a6f3725aac8}" threadingModel="Apartment" tlbid="{bd0c1912-66c3-49cc-8b12-7b347bf6c846}" progid="Codejock.SkinFramework.12.0.2" description="SkinFramework Control" />
    <comClass clsid="{e617f828-c4d2-4d4d-9e48-7523230a2595}" tlbid="{bd0c1912-66c3-49cc-8b12-7b347bf6c846}" progid="Codejock.SkinFrameworkGlobalSettings.12.0.2" description="SkinFramework Global Settings" />
  </file>


I use the 12.0.2 version of SkinFramework and I'm sure the clsid and tlbid are the good ones.

Is there anything I have to add in my manifest file to make my application work without having to register the ocx file on Vista?


Posted By: ctrl
Date Posted: 18 December 2008 at 1:33pm
The problem in the last post was a configuration in Delphi for the compression of the executable.

We now use the manifest file on vista with no problem


-------------
Product :SkinFramework 12.0.2, 12.1.1
Platform : WinXP Pro SP2 32 Bit
Language : Delphi 2007


Posted By: SuperMario
Date Posted: 23 March 2011 at 8:51am
I attached a revised version of the manifest creator tool:

Usage: CreateManifest {\r} folder manifestname

params:
\r option is to search recursively through folder
folder is the folder name\path where ocx(s) are located
manifestname is the name you want to use for the file created

uploads/369/CreateManifest.zip - uploads/369/CreateManifest.zip


Posted By: davbrat
Date Posted: 24 March 2011 at 12:45pm
Hello SuperMario,

How exactly is the created manifest to be used?
I'm getting nowhere in trying to get it to work.

Can I get a outline in what needs to be done in order to make it happen?



Thanks,
Dave Bratovich

-------------
Product: Xtreme SuitePro (ActiveX) version 18.4.0 Platform: Windows XP SP2+ & Windows 7 (32bit & 64Bit)
Windows 8/8.1/10

Language: Clarion 5.0/5.5/6.3/7.3/8/9/9.1/10


Posted By: AndyWilton
Date Posted: 24 March 2011 at 5:57pm
Hi Guys,

I too have had trouble trying to get a Clarion app to work with the manifest approach.  I used MMM (Make My Manifest) to create the manifest file for the example ChartBrowser VB6 app and all worked well, but when the same manifest settings are used with Clarion nothing is displayed.
 
Anyone had any success with languages other than VB6?

Regards,
 
Andy
 


-------------
Product: Xtreme SuitePro (ActiveX) v11.2.1 -> v15.2.1
Platform: Windows XP / Vista / Win 7
Language: Clarion 5.5 -> C8.x
======================================
Andy Wilton


Posted By: davbrat
Date Posted: 15 April 2011 at 2:42pm
Anybody out there?

HELP...

SuperMario?

I need to get this working!

Thanks!

-------------
Product: Xtreme SuitePro (ActiveX) version 18.4.0 Platform: Windows XP SP2+ & Windows 7 (32bit & 64Bit)
Windows 8/8.1/10

Language: Clarion 5.0/5.5/6.3/7.3/8/9/9.1/10


Posted By: JantjeKeizer
Date Posted: 19 May 2011 at 7:11am
I updated my first post and tool. In case anybody wants it


Posted By: Goeteson
Date Posted: 17 October 2012 at 12:16pm

Hei Supermario!

Does the CreateManifest.exe do a unregister of the OCX's involved in a generate of manifestfile?






Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net