Codejock Forums Homepage
Forum Home Forum Home > General > Articles and Tutorials
  New Posts New Posts RSS Feed - Reg free Codejock (ActiveX)
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Reg free Codejock (ActiveX)

 Post Reply Post Reply
Author
Message
JantjeKeizer View Drop Down
Groupie
Groupie


Joined: 12 February 2008
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote JantjeKeizer Quote  Post ReplyReply Direct Link To This Post Topic: Reg free Codejock (ActiveX)
    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


Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
JantjeKeizer View Drop Down
Groupie
Groupie


Joined: 12 February 2008
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote JantjeKeizer Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
tobi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 September 2004
Location: Germany
Status: Offline
Points: 451
Post Options Post Options   Thanks (0) Thanks(0)   Quote tobi Quote  Post ReplyReply Direct Link To This Post Posted: 01 July 2008 at 4:47pm
Would you be willing to share this tool ? 
Back to Top
JantjeKeizer View Drop Down
Groupie
Groupie


Joined: 12 February 2008
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote JantjeKeizer Quote  Post ReplyReply Direct Link To This Post 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">

20080702_043418_Manifest_helper.zip
Back to Top
ctrl View Drop Down
Groupie
Groupie


Joined: 21 July 2008
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote ctrl Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
ctrl View Drop Down
Groupie
Groupie


Joined: 21 July 2008
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote ctrl Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
davbrat View Drop Down
Groupie
Groupie
Avatar

Joined: 30 September 2009
Location: California
Status: Offline
Points: 59
Post Options Post Options   Thanks (0) Thanks(0)   Quote davbrat Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
AndyWilton View Drop Down
Groupie
Groupie
Avatar

Joined: 03 June 2008
Status: Offline
Points: 82
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndyWilton Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
davbrat View Drop Down
Groupie
Groupie
Avatar

Joined: 30 September 2009
Location: California
Status: Offline
Points: 59
Post Options Post Options   Thanks (0) Thanks(0)   Quote davbrat Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
JantjeKeizer View Drop Down
Groupie
Groupie


Joined: 12 February 2008
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote JantjeKeizer Quote  Post ReplyReply Direct Link To This Post Posted: 19 May 2011 at 7:11am
I updated my first post and tool. In case anybody wants it
Back to Top
Goeteson View Drop Down
Newbie
Newbie


Joined: 17 October 2012
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote Goeteson Quote  Post ReplyReply Direct Link To This Post 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?



Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.250 seconds.