Hi all,
I am using InstallShield X automation interface, in that i can able to export a project using ExportProject method which converts the .ism file to .isv (text file format), at the same time while importing a project(.isv to .ism) i got an error
here is the code:
\\ Exporting Section :
set oISWiProject = CreateObject("ISWiAuto10.ISWiProject");
if (IsObject(oISWiProject) = FALSE) then
MessageBox("Error in Project",0);
return -1;
endif;
oISWiProject.OpenProject("C:\\My InstallShield X Projects\\MsiObj.ism");
sIsv = "C:\\My InstallShield X Projects\\SampleMsiObj.isv" ;
nResult = oISWiProject.ExportProject(sIsv);
oISWiProject.SaveProject;
oISWiProject.CloseProject;
\\ Importing Section :
set oISWiProject = CreateObject("ISWiAuto10.ISWiProject");
if (IsObject(oISWiProject) = FALSE) then
MessageBox("Error in Project",0);
return -1;
endif;
sDIsm = "C:\\My InstallShield X Projects\\MsiObjSample.ism";
sIsv = "C:\\My InstallShield X Projects\\SampleMsiObj.isv" ;
nResult = oISWiProject.ImportProject(sDIsm, sIsv);
oISWiProject.SaveProject;
oISWiProject.CloseProject;
The error is :
Error Number: 0x800A03F1
Description: An error occured while Importing the project: Invalid procedure call or argument
>ISMImportExport.CTextLayer.DoOldImport
>ISMImportExport.CTextLayer.ITextLayer_Import
Setup will now terminate.
Can anyone help me in this issue.
Thanks in advance.
Regards
Vishnu
