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!

Senthilvel
Posts: 1
Joined: Wed Dec 16, 2015 9:46 am

How to print console.writeline() using Installer WebSetup project in Visual Studio 2008

Can't able to use the function

Code: Select all

AttachConsole()
    '[DllImport("kernel32.dll")]
public static extern bool AttachConsole(uint dwProcessId);' 
in Windows application(WebSetup Installer project) using VisualStudio 2008. I want to print in Console(CMD) while Installation.

When I get into a MSI Installer application AttachConsole() becomes false(Inactive). How to make it active?

We can't able to proceed further, Please post your views.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: How to print console.writeline() using Installer WebSetup project in Visual Studio 2008

Hello and welcome to our forums,

I'm afraid I'm not aware why this happens. Can you please try to develop your custom action as a DTF custom action and see if this helps?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”