Thanks,
I looked at Inno but got confused in that I couldn't find any examples of
MS
Access setups.
Is the script*?) something that you can share or point me to so I can give
it a try?
Alan
Yes, you have to write your own scripts. However, they are very easy. I had
mine up an running in about 1 hour.
For example, to install the ms-access runtime, you FIRST make a runtime
install with the ms-access package wizard. This will produce your runtime
install. (as mentioned, it is up to you if you include the mde, but I make
the mde a separate install with inno, and NOT ms-access wizard installer).
Remember, since we are only coping files here, then the scripts are very
simple in nature. So, to install the ms-access runtime, I am STILL actually
using the ms-access install wizard, but I do a "quiet" install. This way, I
use the Inno installer on "top". This also eliminates SEVERAL prompts from
the ms-access install (such as "custom" options that NO ONE EVER uses!). So,
I do this, since I don't want my clients to have a whole bunch of
"different" looking screens to install my software - I want the SAME look
and feel for both the runtime system, and my mde's that I deploy. In the
following example, I obviously created the runtime install with the wizard
to a directory called c:\ridesruntime
After the above ms-access wizard creates the runtime, I now package it using
inno with:
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING .ISS SCRIPT FILES!
[Setup]
SourceDir=c:\RidesRunTime
AppName=Rides Runtime System
AppVerName= Rides 1.5
DefaultDirName=c:\RidesRunTime
Compression=lzma
SolidCompression=yes
DirExistsWarning=no
DisableDirPage=yes
DisableProgramGroupPage=yes
Uninstallable=no
[Files]
Source: "*"; DestDir: "{app}"
Source: "files\*"; DestDir: "{app}\files"
Source: "files\setup\*"; DestDir: "{app}\files\setup"
[Run]
FileName: {app}\setup.exe; Parameters: "/qb"
So, the above packages the ms-access runtime install I made with the wizard.
Adding the "/qb" to the standard Microsoft installer does a quiet install,
but DOES show the progress of the install. I am sure if you played with the
ms-access wizards, you will recognize the above directories that it creates.
After the above is installed on a pc, then simply copying the mde file to
the target pc is all you need. However, you can also use inno. (take a look
at the sample scripts).
Here is sample one I use to install the mde part, and note how it checks if
ms-access is installed
(by the way, the access 2003 wizard WILL create desktop shortcuts for
you..but if the location of office is changed, then the access wizard
produces the WRONG shortcut cut. In fact, for this problem/bug is why I now
use Inno. So, note well that the ms-access wizard will create desktop
shortcuts, but not for non-standard locations of office. The other problem
was that the access wizard does NOT allow you to specify a shortcut to the
workgroup file if the path name does NOT exist on your computer (which is
going to be MOST of the time if you split your application). By the way, if
you don't have a split application, then none of my advice is of any use to
you!! (but, you can't possibly be deploying applications, and not have a
split applications - just in case this is a possibility for you, then read
the following of mine on why you split here:
http://www.members.shaw.ca/AlbertKallal/Articles/split/index.htm
Anyway, the following assumes a split database, and thus I am ONLY copying
the mde (application part) to the users target pc.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING .ISS SCRIPT FILES!
[Setup]
SourceDir=C:\Documents and Settings\All Users\Application Data\winq
AppName=Windship Quotation System
AppVerName= Quotes XP 2.0
DefaultDirName={commonappdata}\winq
DefaultGroupName=Windship Quotes
Compression=lzma
SolidCompression=yes
DirExistsWarning=no
DisableDirPage=yes
DisableProgramGroupPage=yes
Uninstallable=no
[Files]
Source: "WinqXP.mde"; DestDir: "{app}"
Source: "windi.ico" ; DestDir: "{app}"
Source: "WinqXP.bmp" ; DestDir: "{app}"
[Icons]
Name: "{commondesktop}\Windship Quotes"; FileName:
"{reg:HKLM\SOFTWARE\Microsoft\Office\11.0\Access\InstallRoot\,Path}MSACCESS.EXE";
Parameters: """{app}\winqXP.mde"" /runtime"; IconFilename:
"{app}\windi.ico"; comment: "Starts Windship Quotes System"
Code:
function InitializeSetup(): Boolean;
var
strRes: string;
begin
result := False
if RegQueryStringValue(HKEY_LOCAL_MACHINE,
'SOFTWARE\Microsoft\Office\11.0\Access\InstallRoot\', 'path', strRes) then
result := True;
if Result = False then
MsgBox('The Runtime Files MUST be installed BEFORE' #13#13 'Installing
this Program. - setup will stop', mbInformation, MB_OK);
end;
You of course can also add registry settings etc. as you need...and take a
look at the many examples included with inno.
I not going to purport any great knowledge of Inno here. We are talking
about DEAD simple scripts, and the above were simply samples from Inno that
I modifed........but a few simple scripts got me well on my way, and I could
not be more happy...