This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- How do you instansiate the ISWiProject class?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 11, 2010
04:58 PM
Accessing the Automation Interface in c#
Is there a example of working with the Automation Interface in c#?
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 11, 2010
06:20 PM
Add the COM reference, namespace alias and start off with the ISWiProject class. The rest will look alot like jscript.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 11, 2010
06:53 PM
Thanks for your reply!
Do you need to add a Reference to a IS dll?
Do you need to add a Reference to a IS dll?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 11, 2010
07:00 PM
No, when you add the reference, click on the COM tab and find the ISAuto15 ( or whetever it's called, can't remember off the top of my head ) and Visual Studio will generate an interop assembly for you. Look at it in the object browser and you'll see the namespaces and classes that it encapsulates.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 11, 2010
08:06 PM
I am running InstallShield 10
I have the following simple program that when it tries to load the project I get a exception "Could Not Create Temp File". I have closed Install Shield so it should be the only thing having the project open.
Any ideas?
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using ISWiAuto16;
using ISWIBUILDLib;
namespace PreInstall
{
class Program
{
static void Main(string[] args)
{
if (args.Length != 1)
{
Console.WriteLine("Invalid Command Line Arguments!\n");
Console.WriteLine("Usage:\n\t\tPreInstall");
return;
}
ISWiProject project = new ISWiProject();
try
{
int ret = project.OpenProject(args[0], true);
}
catch (Exception e)
{
}
}
}
}
I have the following simple program that when it tries to load the project I get a exception "Could Not Create Temp File". I have closed Install Shield so it should be the only thing having the project open.
Any ideas?
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using ISWiAuto16;
using ISWIBUILDLib;
namespace PreInstall
{
class Program
{
static void Main(string[] args)
{
if (args.Length != 1)
{
Console.WriteLine("Invalid Command Line Arguments!\n");
Console.WriteLine("Usage:\n\t\tPreInstall
return;
}
ISWiProject project = new ISWiProject();
try
{
int ret = project.OpenProject(args[0], true);
}
catch (Exception e)
{
}
}
}
}
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 11, 2010
08:12 PM
The ism file argument args[0] was not correct. I corrected it and the project loads.