Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic [SOLVED].manifest for SxS deployment? (Read 9720 times)
Carlos_Rocha
Junior Member
**
Offline


I love Jazz

Posts: 70
Joined: Mar 26th, 2010
[SOLVED].manifest for SxS deployment?
May 10th, 2010 at 1:12am
Print Post  
Hi,

I'm trying to "Reg-Free" my app. I found a tool at http://www.codeproject.com/KB/COM/regsvr42.aspx that helps me to create manifest files for native Dll's, and it works fine for most COM and ActiveX controls, generating all needed stuff but "progid", that I can easily add by hand.

But the manifest created for FlowChartX doesn't work. In fact the "clsid" is not even generated.

It's possible for MindFusion to release the needed manifest file definition to "Reg-Free" FlowChartX Pro?

Thank you
« Last Edit: May 10th, 2010 at 4:02am by Carlos_Rocha »  
Back to top
 
IP Logged
 
Carlos_Rocha
Junior Member
**
Offline


I love Jazz

Posts: 70
Joined: Mar 26th, 2010
[SOLVED] .manifest for SxS deployment?
Reply #1 - May 10th, 2010 at 1:29am
Print Post  
*Adding to the previous post*

I just uploaded my manifest file to http://www.doossier.com/vo/fc.manifest as it may be useful for somebody else. The <comClass /> was added by hand, but it still doesn't work.

EDIT: file updated with the one generated with mt.exe, with all ProgId's

EDIT2: WORKING file updated. Enjoy
« Last Edit: May 10th, 2010 at 4:01am by Carlos_Rocha »  
Back to top
 
IP Logged
 
Loic
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 4
Joined: Jul 20th, 2010
Re: [SOLVED].manifest for SxS deployment?
Reply #2 - Jul 20th, 2010 at 12:23pm
Print Post  
I tried to add this file in my project.
It loaded the dll but it crashed at the first time a function was called in invokehelper.
Did you know why?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: [SOLVED].manifest for SxS deployment?
Reply #3 - Jul 20th, 2010 at 12:48pm
Print Post  
Check if the ProgIds correspond to your version of the control, e.g. try replacing MindFusion.FlowChartPro.4.3 with MindFusion.FlowChartPro.4.3.1 if using the latest version.
  
Back to top
 
IP Logged
 
Loic
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 4
Joined: Jul 20th, 2010
Re: [SOLVED].manifest for SxS deployment?
Reply #4 - Jul 21st, 2010 at 9:57am
Print Post  
I have the version 4.2.1.
If I replace all the version number, I have the same problem.
If I create only the dialog without doing anything, the dialog appears with the flowchart wnd and the overview wnd.
I get my wnd handle with DDX_control.
The first use of a function on the wnd crashes.
  
Back to top
 
IP Logged
 
Carlos_Rocha
Junior Member
**
Offline


I love Jazz

Posts: 70
Joined: Mar 26th, 2010
Re: [SOLVED].manifest for SxS deployment?
Reply #5 - Jul 21st, 2010 at 5:10pm
Print Post  
I don't know what to say. If it's a different FC version maybe "clsid" and "tlbid" are different and you need to generate another manifest. Please use the tool provided in the first post and mt.exe (it came with VS 6.0).
The hard part was to find out what to write in the "miscStatus" entry, but I believe it's the same.
  
Back to top
 
IP Logged
 
Loic
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 4
Joined: Jul 20th, 2010
Re: [SOLVED].manifest for SxS deployment?
Reply #6 - Jul 22nd, 2010 at 3:44pm
Print Post  
Thank you for your answer.
I think that the crash come from my integration of the manifest in my project.
I try several things but It doesn't work.
I use flowchart in a library loaded by an explicit LoadLibrary called by another library.
If I integrate the manifest in the caller, the dll is loaded but it crashes. If I do it in my library, it doesn't work at all.
I try to add it in the project, to set it in an additional manifest file or to add it in the resources with id 1 or 2 but the dll is never loaded.
Thanks.
  
Back to top
 
IP Logged
 
Carlos_Rocha
Junior Member
**
Offline


I love Jazz

Posts: 70
Joined: Mar 26th, 2010
Re: [SOLVED].manifest for SxS deployment?
Reply #7 - Jul 22nd, 2010 at 5:16pm
Print Post  
I'm not an expert in the subject, but I would check:

1. Does it work with a regular dll registration using RegSvr32.exe?

2. The manifest is called by Windows COM subsystem, so if it is called the manifest is properly declared.

3. Do you have an application manifest? Mine looks like this:
Code
Select All
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">

<assemblyIdentity
  type="win32"
  name="doossier"
  version="1.0.0.0" />
  <dependency>
          <dependentAssembly>
              <assemblyIdentity
                  type="win32"
                  name="com\fc\fc"
                  version="1.0.0.0" />
          </dependentAssembly>
  </dependency>
</assembly>


My exe is "doossier.exe" and flowchartx32.dll is in the subdirectory "com\fc" along with "fc.manifest".
The name inside "fc.manifest" MUST BE the same, name="com\fc\fc"
 



4. I think the resource ID for a manifest must be 24
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: [SOLVED].manifest for SxS deployment?
Reply #8 - Jul 22nd, 2010 at 5:49pm
Print Post  
Hi Loic,

As Carlos says, you must add an application manifest to your executable as an embedded resource to enable side-by-side execution. Merely adding an assembly manifest file for the FlowChartX dll to the application folder won't enable SxS.

Also from what I can understand from the MSDN reference, you must add <file> entries to the assembly manifest for all libraries that load each other, or otherwise create separate assemblies and manifests and put <dependentAssembly> elements in the manifests of libraries that load other dlls.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Loic
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 4
Joined: Jul 20th, 2010
Re: [SOLVED].manifest for SxS deployment?
Reply #9 - Jul 23rd, 2010 at 2:47pm
Print Post  
I will try it.
But yes it works with regsvr32.
Thank you guys for your help.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint