Please note that the installer part doesn't require any code. You can use the dialog editor GUI to create a custom dialog which retrieves the information you need. The User Guide contains a dialog tutorial which may help you. After that, you can use the installer properties used by the custom controls any way you need.This is a bit complicated - do you have any sample code?
I'm afraid that .NET Installer Class actions cannot run as UI Custom Actions. However, you can try using a C++ DLL or VBScript.I could probably write something in .NET to do this - but I see I can add .NET code to the InstallExecuteSequence but I dont seem to be able to for UI Custom Actions - should this be possible?
The Session.Property() function returns the value of the property. You could use it from within your script like this:how do I call a VBScript from within the UI and pass it the USERNAME, DOMAINNAME and PASSWORD property values?
Code: Select all
username = Session.Property("USERNAME")
domainname = Session.Property("DOMAINNAME")
pass = Session.Property("PASSWORD")
Code: Select all
Function YourFunctionName()
' your code goes here
' now to return the value: replace 2 with the return value desired
YourFunctionName = 2
End Function
We have no way of knowing the exact functionality that particular predefined dialog would perform. The dialog would be too particular to include it as a predefined dialogAlso is there any chance that there will be a User Credentials dialog not built in to Advanced Installer in future? It seems a really obvious thing to need? In my case I would need it for setting credentials on Windows Services / IIS Application Pools.
A function for this will be added when the dialog will become available.In the mean time I dont suppose you could add a ValidateCredentials (UserName, DomainName, Password) function in your list of custom functions?
Perhaps this sample DLL custom action will help you.Or provide some C++ sample code for writing custom actions?
FOLLOW US
Get the latest news in Application Packaging