Dear Francesco,
I've found how to get started with the automated setup.
The example (Delphi) script included with the IA setup, includes some basic elements.
Like: Comment, installing a file, if-else-end etc.
It also includes the way to include prerequisitist.
But at the moment I'm missing two important things:
How Can I create a new scriptfile and add it to the project?
I think I know how to call the scriptfile, prbably by calling: miaAddCommand('Include Script', 'ScriptName','C:\scripts\ScriptName.mia') ????
Also I'm missing a example for createing a FileBag.
Can I create this line using the following command: miaAddCommand('Define File Bag', 'File to include',includesubfolders,excludewildcards,variabletoreceive) ????
Eventually I'm planning to create a .NET component/object where you can select all available features. I will call this object simply InstallAware
Example: C# code
- Code: Select all
InstallAware mia = new InstallAware();
mia.SetVariable("VariableName",defaultvalue);
mia.AddComment("CommentLine here");
mia.InstallFile(miaDESTINATIONFOLDER+@"\NewFolder","c:\filestoinstall\testfile.exe");
mia.InstallFile(miaWINSYSDIR,"c:\filestoinstall\testfile.dll",True,False);
as you can see, i'm planning to make several functions for one action.
A basic function for installing a file, by just adding the destination folder, using a enumerated field containting the predefined variables of IA and the sourcefile.
But, before I can do this, I need to fugure out how the currnt miaAddCommand is working.
What I mean is how can I determan wich optians and variabables has to be passed to the different commands?
Is it "simply" miaAddCommand(FUNCTIONNAME) followed by all of the parameters displayed in the dialog when using the IA interface ?
Or is there some kind of (technical) documentation available
Hope you can help.