cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
mprashant
Level 3

error while launching msi in installscript

Hi, I am new to installshield.
my requirement is to create a wrapper project for msi and mst file. and create single setup.exe.
For this i have created new "Basic MSI Project" in installshield and Add msi and mst file in this project as a resource file under [WindowsFolder]\Application_Files\\msi and mst files.

When user installed this wrapper msi and mst file will get copied to [WindowsFolder]\Application_Files\\msi and mst files.
After that i want to start installation for msi and mst file
I write Installscript for this

---------
function ExFn_LaunchAppAndWait(hMSI)
STRING szProgram, szCmdLine, szMsg;
BOOL bLaunchAndGo, bLaunchAndWait, bExit;
NUMBER nWait;
begin
// Run the installation in a normal Window;
Enable (BACKGROUND);
Enable (DEFWINDOWMODE);

// Disable the Back button in installation dialogs.
Disable (BACKBUTTON);

// Get an option from the user.

MessageBox("MSIEXEC = " + MSIEXEC,INFORMATION);
MessageBox("TARGETDIR = " + TARGETDIR,INFORMATION);

szProgram = WINSYSDIR ^ "\\msiexec.exe";
szCmdLine = TARGETDIR ^ "\\FirstApp\\CardDemo.msi";
//nOptions = LAAW_OPTION_WAIT;
MessageBox("szCmdLine = " + szCmdLine,INFORMATION);
if (LaunchAppAndWait (szProgram, "/i "+szCmdLine + " /qb", WAIT) < 0) then
MessageBox ("Unable to launch "+ szProgram +".",SEVERE);
endif;

end;
---------

When i start executing this msi and mst files are properly get copied but I got error msg ...
"Another program is being installed. Please wait until that installation is complete, and then try installing this software again".

I think this happens because of windows not permitting multiple installation parallel.
In my case one is form wrapper project and other is from Installscript.

Please suggest me your observation on this... is there any effective and good way to achieve this.

Thanks,
Prashant
Labels (1)
0 Kudos
(6) Replies
rrinblue22
Level 9

refer this
0 Kudos
mprashant
Level 3

In the first screen InstalScript tab is missing when i open installshield 2011.
0 Kudos
rrinblue22
Level 9

hope you have Premier/Pro installed on your system.
that should list the InstallScript tab in the create New Project windows.

if not try the "All Types" tab in New Project windows and create an InstallScript project.....

if you don't find this then repair InstallShield or try on some other system.....



BTW can you post the interesting screenshot of the New Project dialog???
0 Kudos
mprashant
Level 3

thanks for your help
please find attached screenshot
0 Kudos
rrinblue22
Level 9

seems like you have InstallShield provided with AdminStudio......

Check from the Help Menu >> About ....that will list the edition of InstallShield......

If its AdminStudio edition.... the Go to Options >> User Interface, "show installscript project types"


else you know you can download an InstallShield exe ..........
0 Kudos
mprashant
Level 3

perfect now i can see installscript project in installshield...

i try to create sample wrapper project and it is working fine now... only the thing is that i have to get the rid of ui (welcome, select component etc.. ) screen. i dont want all this screen just last screen is ok with install button.

Thanks for your help you make my day !!!


Prashant
0 Kudos