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
- :
- error while launching msi in installscript
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
‎Jan 10, 2012
03:35 AM
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
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\
When user installed this wrapper msi and mst file will get copied to [WindowsFolder]\Application_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
(6) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 10, 2012
03:52 AM
refer this
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 10, 2012
06:30 AM
In the first screen InstalScript tab is missing when i open installshield 2011.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 10, 2012
07:12 AM
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???
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???
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 10, 2012
07:45 AM
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 ..........
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 ..........
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 11, 2012
07:25 AM
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
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