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!

ofendt
Posts: 1
Joined: Fri Sep 19, 2014 4:27 pm

.NET Custom Action in VB

fehler.png
fehler.png (299.19 KiB) Viewed 1426 times
Is there a VB Hello Wold Custom Action.

I tried to make one - but it does not work - i get an error..

Imports System.ComponentModel
Imports System.Configuration.Install


Public Class CustomActions

<CustomAction()> _
Public Shared Function CustomAction1(ByVal session As Session) As ActionResult
'session.Log("Begin CustomAction1")
MsgBox("BBasic 123")
'Dim fr As New Form1
'fr.ShowDialog()
Return ActionResult.Success
End Function

End Class


I get ERROR 1001 String length may not be 0
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: .NET Custom Action in VB

Hello and welcome to Advanced Installer forums,

I'm not sure why you encountered the this behavior.
In order to have a better view about this, can you please send us the .AIP (project file) and the verbose log of the installation process to support at advancedinstaller dot com so we can investigate it? If it contains confidential information you can send us a small test project which reproduce this behavior.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”