Hi,
The only workaround we can think of is this:
- create a different data source for each instance you want to be able to create (let's say 20 datasources)
- set a custom name for each data source
- go to the
Install Parameters page and create the property
REGISTRY with the value "0"
- do the same for the
REGISTRY_SEARCH property
- go to the
Registry page and create a registry value in which you set the REGISTRY property
- go to the
Search page and create a search which retrieves this value; name it
REGISTRY_SEARCH
- go to the
Organization page and condition the components of the data sources with the REGISTRY_SEARCH property
- create a VBS file which contains this code:
Code: Select all
Dim reg
Dim str
str=Session.Property("REGISTRY_SEARCH")
reg=CInt(str)
reg=reg+1
Session.Property("REGISTRY")=Cstr(reg)
- go to the
Custom Actions page and add the VBS file as an Attached custom action under the "AppSearch" standard action
- make sure that the "Function Name" field in the "Custom Action Properties" page is empty
- condition this custom action with "(Not Installed) AND REGISTRY_SEARCH"
Basically, each time the installation runs it will perform these operations:
- it searches for the numerical registry value
- if it doesn't find it, the package creates the registry value, set it to "0" and installs the first data source (its component has the condition REGISTRY="0")
- if it finds the numerical value it sets it in the REGISTRY_SEARCH property
- in both cases the custom action runs and increments the value in the REGISTRY property (so you have "0" when no data source is installed, "1" when the first data source is installed etc.)
- the data source which will be installed by the package depends on the value of the REGISTRY property
If you need a sample project please contact me at
support at advancedinstaller dot com.
P.S. When you are planning to publish new version of advanced installer?
The next Advanced Installer version (6.3) is scheduled for release in the beginning of May.
Regards,
Cosmin
FOLLOW US
Get the latest news in Application Packaging