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 to add mutiple Install Destination path in Installshield using automation project
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
Oct 08, 2014
06:34 AM
How to add mutiple Install Destination path in Installshield using automation project
We can add the file in the Installshield Destination folder, using below mentioned code using c# .in below example all the file gets installed into “c:\\abc” location
ISWiProject oISWiProj = new ISWiProject();
oISWiProj.OpenProject(@“c:\user\installer.ism”, false);
oISWiProj.INSTALLDIR =”C:\\abc”;
oISWiProj.SaveProject();
oISWiProj.CloseProject();
I have a query how to give multiple destination location path using c# in Install shield automation project?
For example Suppose user want some file should get installed c:\abc location and some file into c:\Program File folder.
can anyone suggest how to do add multiple Installer destination location path in Installshield in 2010 version using InstallShield automation Interface in c#?
ISWiProject oISWiProj = new ISWiProject();
oISWiProj.OpenProject(@“c:\user\installer.ism”, false);
oISWiProj.INSTALLDIR =”C:\\abc”;
oISWiProj.SaveProject();
oISWiProj.CloseProject();
I have a query how to give multiple destination location path using c# in Install shield automation project?
For example Suppose user want some file should get installed c:\abc location and some file into c:\Program File folder.
can anyone suggest how to do add multiple Installer destination location path in Installshield in 2010 version using InstallShield automation Interface in c#?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Oct 17, 2014
03:54 AM
Following code can be used to add file from diffrenct destination location.
ISWiComponent component1 = oISWiProj.AddComponent(CommonDef.COMPONENT_NAME_TEST);
component1.Destination = "D:\\Ajay";
component1.AddFile("C:\\MPlusTrace_#3881.txt");
ISWiFeature oFeature = oISWiProj.AddFeature(CommonDef.FEATURE_NAME_TEST);
oFeature.AttachComponent(component1);
ISWiComponent component1 = oISWiProj.AddComponent(CommonDef.COMPONENT_NAME_TEST);
component1.Destination = "D:\\Ajay";
component1.AddFile("C:\\MPlusTrace_#3881.txt");
ISWiFeature oFeature = oISWiProj.AddFeature(CommonDef.FEATURE_NAME_TEST);
oFeature.AttachComponent(component1);