We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

JordanNolan
Posts: 3
Joined: Thu Mar 09, 2006 10:37 pm

Run and exe silent install with my install

I have my own install that work well. Just installing a bunch of file and shortcuts. No big deal. When I deploy this using Windows Group Policies on my Windows 2000 domain controller, all the computers update very well.

My application also depends on a SQL server client software install from Pervasive that does not have a deployable MSI file. They only offer a silent install or an INI configure install. I opted for changing the setup.ini to include all the settings that I want and if I run this on its own, it works fine. I want to include this in my install routine

I have create a custom action under "Install" by right clicking and choosing "New Custom Action" then "EXE with working Directory". For the "Working Dir" I chose the TempFolder out of the list of items, Source Type is dimmed, and "Full Path" = [#Setup.exe] which is the reference to the Setup.exe. Execution is Synchronous and ignore, and Execution is Deferred.

If I run this on its own, the install works, but the Pervasive setup fires up but the installer continues and finishes before the Pervasive Setup finishes. I would like to make it so the files get installed, Pervasive client setup starts, then finishes, the the installer finishes.

The way it is running now seems to cause problems with me deploying via Group Policies. When the application starts installing on the computers they hang at "Installing Manages software 'My App Name'" for almost an hour until it times out. After it times out, it appears the App installed fine, but naturally I don't want to wait an hour.

I have tried to change the Execution Option to Immediate Excecution, but that seemed to only cause the Pervasive Setup to be skipped.
Mihai
Posts: 38
Joined: Wed Mar 23, 2005 12:19 pm

Hi,

When you use any of the "Synchronous execution" options for the custom action then the main installation should wait for the custom action to finish and then continue with its remaining actions.

That must be the SQL's bootstraper fault because it may itself launch an other application to do the installation but does not wait for it to finish. If that does not happen (prety hard to find out) and the main installation finish before the custom action then you could send us (to support at advancedinstaller dot com) the installation log file (use "Run and Log" to generate it) so we could try to find the problem. Otherwise, the SQL installation could not support Group Policy deployment.

All the best,
Mihai
Mihai Udrea
Advenced Installer Team
JordanNolan
Posts: 3
Joined: Thu Mar 09, 2006 10:37 pm

I got the log file. Where should I send it?

In the mean time, could you tell me if this ideas is possible:

Don't include the SQL client setup in the install, but place it on a share "\\MyServer\Myshare" and include a batch file in my installer package that looks like this:

==========
@Echo Off
Start /w \\MyServer\MyShare\Setup.exe
exit
==========

I realize that if the sql client is not included, then it will not be something that can be uninstalled, but I don't mind since I would probably want to leave it on there anyway. Also, I saw that there are some prereq features that can call a program down from a website, but I am going to be distributing this type of app via Group Policies and I don't think downloading from a website (internal or not) will work.
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi,
Don't include the SQL client setup in the install, but place it on a share "\\MyServer\Myshare" and include a batch file in my installer package that looks like this:

==========
@Echo Off
Start /w \\MyServer\MyShare\Setup.exe
exit
==========
This would have the same result as when using a Custom Action, because it seems that the package in question extracts its files to a temporary location, spawns a new process, then exits. The "start" command would wait for the bootstrapper (the process which terminates before the actual install is finished).
Also, I saw that there are some prereq features that can call a program down from a website, but I am going to be distributing this type of app via Group Policies and I don't think downloading from a website (internal or not) will work.
The Prerequisite functionality requires an EXE bootstrapper for the MSI package. I am not very familiar with Group Policy, but I do not believe you can distribute an EXE package via Group Policy (you should test this though).

I would recommend one of the following approaches:
a) See if the "setup.exe" for the SQL server client software has a command-line option that will determine it to wait until the actual installation is performed.

b) If the previous option is not available, determine what files are extracted by "setup.exe" (you can use a free file monitoring tool, such as "Filemon" from Sysinternals) and include those files in your package (instead of "setup.exe"). Launch the install using an appropriate CA that will use one of those files.

Hope this helps.

Regards,
Ionut
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”