CustomActionData syntax for multiple params in the setup project

  • Thread starter Thread starter Gabor
  • Start date Start date
G

Gabor

In my app I'm using a dll, wich includes an installer class. The install sub
call the SetMSDEForApp sub wich two parameters:

Public Overrides Sub Install(ByVal stateSaver As
System.Collections.IDictionary)
MyBase.Install(stateSaver)

SetMSDEForApp(Me.Context.Parameters.Item("ApplicationName"),
Me.Context.Parameters.Item("password"))

End Sub

My question:

What is the syntax of setting parameters in CustomActionData.

/ApplicationName="MyApp" working for one parameter, but

/ApplicationName="MyApp", password="MyPwd"

/ApplicationName="MyApp", /password="MyPwd"

/ApplicationName="MyApp" /password="MyPwd"

doesn't work.

Any suggestion?

Thanks in advance



Gabor
 
I found the answer in the help ;)


For custom actions that are installation components (ProjectInstaller
classes), the CustomActionData property takes a format of /name=value.
Multiple values must be separated by a single space: /name1=value1
/name2=value2. If the value has a space in it, it must be surrounded by
quotes: /name="a value".
Windows Installer properties can be passed using the bracketed syntax:
/name=[PROPERTYNAME]. For Windows Installer properties such as [TARGETDIR]
that return a directory, in addition to the brackets you must include quotes
and a trailing backslash: /name="[TARGETDIR]\".

Mybe for somebody else the information will be useful

Gabor
 
Back
Top