Custom Action VBS and open file dialog - 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!

ksuwada
Posts: 16
Joined: Wed Jun 01, 2011 2:52 pm

Custom Action VBS and open file dialog

Hi,

I need to open a file during install I try to use VBS

Code: Select all

Function GetLicensePath 

	Set ObjFSO = CreateObject("UserAccounts.CommonDialog")
	
	ObjFSO.Filter = "License file|*.xml"
	ObjFSO.FilterIndex = 3
	ObjFSO.InitialDir = "c:\"

	InitFSO = ObjFSO.ShowOpen

	If InitFSO = False Then
		ChooseVersion = 2
		Exit Function
	Else
		Session.Property("LicensePath") = ObjFSO.FileName
	End If
End Function
But installer fails at that Custom Action, can I somehow open file dialog ??

Kind regards
KS
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Custom Action VBS and open file dialog

Hi,

Here is a an article written by us on how to display a selection dialog. If this is not what you want please give us more details.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ksuwada
Posts: 16
Joined: Wed Jun 01, 2011 2:52 pm

Re: Custom Action VBS and open file dialog

Ok, but as I noticed it requires Enterprise version. Is it possible to open such dialog in professional?

Kind regards
KS
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Custom Action VBS and open file dialog

I'm afraid this is not possible using the Professional, as you noticed at least an Enterprise license is required.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”