Installation of a software library into VisualStudio - 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!

Hayashida
Posts: 4
Joined: Tue Oct 14, 2008 4:54 am

Installation of a software library into VisualStudio

Hello,

How can I set up include/library path in VisualStudio from an installer created by AdvancedInstaller?
For example, the installer of DirectX SDK sets up include/library path in VisualStudio automatically. So I wonder if I can simulate the same way. I've created an installer for my class library but it requires a user setting up those path manually.

Thanks,

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

Re: Installation of a software library into VisualStudio

Hi,

I'm afraid that this is not supported by Advanced Installer directly. However, from my knowledge, the include paths are stored in this file:

Code: Select all

C:\Documents and Settings\<user name>\Local Settings\Application Data\Microsoft\VisualStudio\9.0\VCComponent.dat
This is basically an INI file, so you can try this approach:
- import it as an INI file in Advanced Installer
- use the INI Editor to customize it
- make sure it will be installed in the same location as the original ("Local Application Data\Microsoft\VisualStudio\9.0\" in the "Files and Folders" page)

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Hayashida
Posts: 4
Joined: Tue Oct 14, 2008 4:54 am

Re: Installation of a software library into VisualStudio

Hi Cosmin,

Thank you so much for your quick response to my question. I couldn't find out that ini file before.
I wasted little time in trying your approach but values are separated by comma, while the separator in VisualStudio's include path is semicolon.
It will be perfect if the ini editor in AdvancedInstaller has 'Create or append semicolon separated' option.
Is there any workaround or can you update AdvancedInstaller to support that option?

Best Regards,

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

Re: Installation of a software library into VisualStudio

Hi,

Unfortunately the Windows Installer IniTable supports only a comma separator. However, a workaround would be to use a custom action to replace all comma characters after the modified INI is installed. Here you can find some sample VBScript code which may help you.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Hayashida
Posts: 4
Joined: Tue Oct 14, 2008 4:54 am

Re: Installation of a software library into VisualStudio

Thank you cosmin,

Custom action looks fine to me. I'll try it later on.

Hayashida

Return to “Common Problems”