Francesco

BDE Merge Module

Hello,

I'm evaluating your package becouse I really don't like the poor and slow InstallShield support...

My major problem in this moment is to add the BDE Merge Module. This module requires the presence of a BDEMERGE.INI in the same place where is placed the .MSI file. Now, if I create an EXE including the MSI file and Installer, how I can add also this .INI file ?

Thanks

Francesco
UdreaMihai
Posts: 90
Joined: Wed Mar 23, 2005 8:13 am

Hello Francesco,

It is not possible to insert additional files (like the INI directly into the EXE).

You have many option to solve this if you leave the files outside the EXE. For example, if the MSI is not in the EXE you can just place the INI next to them and it should work

Kind regards,
Mihai
Udrea Mihai
Advanced Installer Team
http://www.advancedinstaller.com
Francesco

I would like to distribute the application as single .exe so I would like to solve this problem in other way.

I have an other idea: to create the INI file using a custom action written in vbs

How to do this step by step ? I did several attempt, but without success...

The vbs script I used is this:

Sub WriteFile (Path)
Dim FS: Set FS = CreateObject("Scripting.FileSystemObject")
Dim OutStream: Set OutStream = FS.OpenTextFile(Path & "\bdeconfig.ini", 2, True)
OutStream.Write "[Drivers]" & vbCrLf
OutStream.Write "Driver0=DB2" & vbCrLf
OutStream.Write "Driver1=INFORMIX"
' just for debug...
MsgBox Path,1,"Script"
End sub

I placed this file in "c:\test.vbs" file and then created a new custom action in the "Install" secion, using this settings:

Source path: c:\test.vbs
Source Type: Visual basic script (*.vbs)
Function Name: WriteFile "[SourceDir]"
Synchronous execution, ingore return code
Immediate executing

But nothing works...

Maybe I don't use correctly custom actions, but I haven't found a full sample about.

Any help ?

Francesco
UdreaMihai
Posts: 90
Joined: Wed Mar 23, 2005 8:13 am

Hello Francesco,

Try to schedule your custom action under "CostFinalize" with the option that you already use.

There is a problem with yoour script. You can't use that parameter (Path). Try to get the "SourceDir" property from the script using :
s = Session.Property("SourcePath").

Hope it works.

Kind regards,
Mihai
Udrea Mihai
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”