PDA

View Full Version : Wanted: C# example of Automation using SAAuto10



LogiMike
01-07-2005, 05:07 PM
Hi Folks,

I want to use the StandAlone Automation interface in C#. I can do everything I want with the ISWiAuto10(50) interface, but SAAuto10(50) is giving me fits. Does anyone have a simple sample like this

http://support.installshield.com/kb/view.asp?articleid=Q110820

Using SAAuto10?

Thanks ...

RobertDickau
01-10-2005, 02:14 PM
In what way does it fail? Does a VBScript example work for you (as a test)?

LogiMike
01-10-2005, 02:17 PM
I figured it out ... :eek: It is working fine. It took a while figure out ...

Thanks,

MikeW

RobertDickau
01-10-2005, 02:22 PM
Out of curiosity, what was it? In case someone else is trying the same thing...

LogiMike
01-10-2005, 02:42 PM
KEYWORDS: HOW TO USE AUTOMATION SAAUTO10 SAAUTO1050 C# .NET STANDALONE BUILD SAAUTO11 IMPORT STRING TABLE

Step 1: Add the reference to your C# project using the menus using Visual Studio
- Project | Add Reference | COM
- InstallShield DevStudio 10 Standalone Automation Interface or
- Installshield 10.5 Standalone Automation Interface
- Click 'Select' and then 'OK'

Step 2: Add to your class
- private SAAuto10.ISWiProject SAProject;

Step 3: Code
private void buttonImport_Click(object sender, System.EventArgs e)
{
string sISM = @"C:\My InstallShield X Projects\ImportExport.ism";
string sStringFile = @"C:\My InstallShield X Projects\ImportExport\Strings\ENU.TXT";

object oLogFile = @"C:\MyLog.log";
object oOverWrite = "1";

SAProject = new SAAuto10.ISWiProject();
SAProject.OpenProject( sISM, false );
SAProject.ImportStrings( sStringFile, "1033", ref oOverWrite, ref oLogFile );
SAProject.SaveProject();
SAProject.CloseProject();
}

RobertDickau
01-10-2005, 03:04 PM
Very nice---thank you!

williamwong
03-22-2005, 07:55 PM
Dear all,

Do you know how to setup launchCondition with ISWiAuto1050 Interface?

Thanks and regards,
William

williamwong
03-22-2005, 08:48 PM
Dear all,

I find that some features only available via IsmAutoLib, e.g. AppSearch, LaunchCondition, etc. Where can I find the example/reference to this interface?

Thanks and regards,
William