Published components for Visio - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Paul Herber
Posts: 3
Joined: Wed Jul 13, 2005 12:48 am
Location: Hampshire UK
Contact: Website

Published components for Visio

I need to create several msi installer files for Visio add-ons.
Having created an MSI using AdvancedInstaller (free version) I need to create a Published Components table in the MSI, (the Visio 2003 SDK provides a tool to do this - VisSolPublish.exe), however it generates an error:

ERROR: Problem writing to MSI database.

Can anyone throw any light on this problem?
fortunemunkey
Posts: 2
Joined: Tue Mar 16, 2010 4:18 pm

Re: Published components for Visio

I had this issue too. The solution is to get hold of Orca (google orca and MSi, and you'll find it), and add the PublishComponent table to the MSI.

The visio tool tries to write to this table, but if it's not there, it fails with the unhelpful message.

Really, the tool should create the table if it's not there, but, ho-hum...

My visio template installer works like a dream now!
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Published components for Visio

Hi,

You can also use the Table Editor to add the PublishComponent table to your package. Can you please give me more details about how you are using "VisSolPublish.exe"? Did you add it as a custom action? Perhaps we can somehow detect this tool and automatically add the required table.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
fortunemunkey
Posts: 2
Joined: Tue Mar 16, 2010 4:18 pm

Re: Published components for Visio

I am using the free version, so I didn't have the table editor.

The visio tool adds all the information required for visio to find templates and stencils installed in the package. It's a standalone tool that modifies the MSI.

If you wanted to support this properly, I think there are two options:

1/ directly support the generation of this info in Advanced Installer (perhaps as a Visio project type?)
2/ detect if the user adds a .vst file, and add this table so that when the visio SDK tool is executed, it works.

Option 3/ is to hassle MS to fix their app!

Leon
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Published components for Visio

Hi Leon,

I think the second option would be the best choice. I added an improvement for it on our TODO list. Using the Microsoft tool is recommended because it follows their best practices. Also, I'm not sure if Microsoft is willing to improve the tool.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Paul Herber
Posts: 3
Joined: Wed Jul 13, 2005 12:48 am
Location: Hampshire UK
Contact: Website

Re: Published components for Visio

cosmin wrote:Hi,

You can also use the Table Editor to add the PublishComponent table to your package. Can you please give me more details about how you are using "VisSolPublish.exe"? Did you add it as a custom action? Perhaps we can somehow detect this tool and automatically add the required table.

Regards,
Cosmin
For me it was 5 years ago since I tried this! I'll have another look and report back.
Paul Herber
Posts: 3
Joined: Wed Jul 13, 2005 12:48 am
Location: Hampshire UK
Contact: Website

Re: Published components for Visio

Success, you will need "Advanced Installer", "InstEd It!" and VisSolPublish.exe (from the Visio SDK Tools)

1. Create standard install (using Advanced Installer, of course) containing template(s) and stencil(s).
Set the destination folder as [ProgramFilesFolder][Manufacturer]\[ProductName]
2. Build to .msi file
3. Open .msi file with InstEd It! (right-click of .msi file)
4. menu Tables -> Add Predefined Tables. Select Publish Component and click OK
5. menu File -> Save. Exit.
6. Open VisSolPublish.exe
7. menu File -> New and select .msi file
8. setup files. You may need to save .vpc file
9. Apply using the ! button. Exit.
10. Digitally sign the .msi file.

Return to “Common Problems”