Subject Re: Dbase project failed to install the iss. Another failed attempt.
From Charlie <tm@tc.com>
Date Fri, 24 May 2024 16:49:22 -0400
Newsgroups dbase.getting-started
Attachment(s) chacha2.iss

I did some work on this today but am still getting the error message \'sorry can\\\'t install setup. stopped by user.\'  I have not cancelled the installation at all so I am not sure why I am getting this message.

bde is not created or either of the directories which were supposed to be created.

I added a [Dirs] and changed the bde to {app}\\coindata which I think should be correct.  I have attached the new script.  Sure would appreciate any help in getting this to work!


Charlie Wrote:

> Hi Ken..  Yes it is dbase 11.    And the script has not been manipulated at all.
>
> I am pretty sure it found the runtime installer as it went through all the phases.  And the bde installer folder is in runtime.   Possibly it ran to the point just before installing and failed there.  But I am confused by the \'rejected by user\' comment.
>
> I have other iss scripts I can compare it to and will fool with it, but this result seems strange and confusing!
>
> Ken Mayer Wrote:
>
> > On 5/23/2024 11:44 AM, Charlie wrote:
> > > Hi...   I have worked with project explorer and iss files before, but never have tried to install a bde automatically through an iss file.  I used project explorer\\\'s iss file with no changes and was disappointed that the computer i was installing it rejected the software after running all the way through setup.  Also the bde did not install.  (possibly because i didn\\\'t change app to  {useappdata}???
> > >
> > > Error message is sorry can\\\'t install setup.  Rejected by user.
> > >
> > > I am attaching the iss file.  Any help would be very much appreciated.
> >
> > The ISS file created by the Project explorer is very large and
> > convoluted, and hard to work through all the details.
> >
> > Are you using dBASE Plus 11? It\'s looking for that runtime installer,
> > which should also install the BDE. If not, you have an issue there.
> >
> > The tutorial does this by ignoring the step of having the PE build the
> > .iss file, and you doing it yourself. You may want to go to the build
> > and deploy part of the tutorial, and use your own folder names, and file
> > names ...
> >
> > Ken
> >
> >
> > --
> > *Ken Mayer*
> > Ken\'s dBASE Page: http://www.goldenstag.net/dbase
> > The dUFLP: http://www.goldenstag.net/dbase/index.htm#duflp
> > dBASE Books: http://www.goldenstag.net/dbase/Books/dBASEBooks.htm
> > dBASE Tutorial: http://www.goldenstag.net/dbase/Tutorial/00_Preface.htm
> > dBASE Web Tutorial: http://www.goldenstag.net/dbase/WebTutorial/00_Menu.htm
> > dBASE DOS to Windows Tutorial:
> > http://www.goldenstag.net/dbase/DtoWTutorial/00_Menu.htm
> >
>




[_TopOfScript]
; This is a Innoscript generated by dBASE PLUS Project Explorer

[_Project]
ProjectNr=1.0.0.0
ProjectName=Numismatic_Cha_Cha
ProjectExeFileName=C:\dbasewin\coins\Numismatic_Cha_Cha.exe
ProjectMainFileName=D:\issfiles\chacha1.iss
ProjectAuthor=Copyright © 2024 Charles Siegel
ProjectCreateDate=05/23/2024 14:06:11
ProjectAccessDate=05/23/2024 14:06:11
ProjectdBaseVersion=dBASE PLUS 11.3  b2550
ProjectLastdBaseRuntimeVersion=
ProjectLastdBaseRuntimeLanguage=
ProjectdBasePRJFilename=

[ISPP]
#pragma option -v+
#pragma verboselevel 9 ;Macro and functions successfull call acknowledgements
#define Debug
#define AppName "Numismatic_Cha_Cha"
#define AppVersion "1.0.0.0"
#define AppId "Numismatic_Cha_Cha_ID"
#define AppCopyright "Copyright © 2024 Charles Siegel"
#define AppUninstallDir "{app}\Uninstall Information"

[dBASERuntime]
#define SM_dBASERuntime "true"
#define dBPlus "true"
#define dBSeparat "false"
#define Resource "false"
#define dBASELang "EN"
#define dBaseRuntimeInstDir "C:\Program Files (x86)\dBASE\Plus11\Runtime\PLUS1130Runtime-b2550_ALL.exe"
#define dBaseRuntimeInstVer "2550"
#define dBaseRuntimeDir "C:\Program Files (x86)\dBASE\Plus11\Runtime"
#define dBaseBuild "2550"
#define dBaseVersion "1130"
#define BDEGroupEntries "true"
#define dBProgressbar "false"
#define dBProgressbox "false"
#define dBSilent "false"
#define dBUninstall "true"
#define dBDestRuntime ""
#define dBDestBDE ""
#define dBMainFile "Numismatic_Cha_Cha.exe"
#define DBuac "1"
#define dbVista ""
#define UninsHS "true"
#define UninsHSLanguages "DE EN IT ES FR"
#define UninsHSExeDir "C:\Program Files (x86)\dBASE\Plus11\Runtime\Include\Utilities\UnInsHs"
#include "C:\Program Files (x86)\dBASE\Plus11\Runtime\Include\dbaseRuntime.inc"
#define UninsHS "true"
#define UninsHSLanguages "DE EN IT ES FR"
#define UninsHSExeDir "C:\Program Files (x86)\dBASE\Plus11\Runtime\Include\Utilities\UnInsHs"

[LangOptions]
LanguageCodePage=0

[Setup]
SourceDir=C:\dbasewin\coins
SetupIconFile=
AppId={#AppId}
AppName={#AppName}
AppVersion={#AppVersion}
AppVerName={#AppName} Version {#AppVersion}
AppCopyright={#AppCopyright}
DefaultDirName={pf}\{#AppName}
DefaultGroupName={#AppName}
OutputBaseFilename=Numismatic_Cha_Cha_Installer
PrivilegesRequired=admin
ShowLanguageDialog=false
VersionInfoVersion={#AppVersion}
VersionInfoDescription={#AppName} Setup
VersionInfoCompany={#AppCopyright}
VersionInfoTextVersion=Version {#AppVersion}
UninstallFilesDir={#AppUninstallDir}

[Languages]
Name: en; MessagesFile: compiler:Default.isl

[Messages]
BeveledLabel=Copyright © 2024 Charles Siegel

[Icons]
#if 'false' == UninsHS
  Name: {group}\{cm:UninstallProgram,{#AppName}}; Filename: {uninstallexe}
#endif

[Dirs]
Name: "{app}\coindata"
Name: "{app}\images"

[Files]
; dBASE Runtime Installer
Source: "C:\Program Files (x86)\dBASE\Plus11\Runtime\PLUS1130Runtime-b2550_ALL.exe"; DestDir: "{tmp}"; Flags: ignoreversion deleteafterinstall
;BDE Settings
Source: C:\Program Files (x86)\dBASE\Plus11\Runtime\Include\Utilities\BDE\AddAlias.exe; DestDir: {tmp}; DestName: dBase_AddAlias.exe
Source: C:\Program Files (x86)\dBASE\Plus11\Runtime\PlusR_DE.dll; DestDir: {app}; Flags: IgnoreVersion
Source: C:\Program Files (x86)\dBASE\Plus11\Runtime\PlusR_EN.dll; DestDir: {app}; Flags: IgnoreVersion
Source: C:\Program Files (x86)\dBASE\Plus11\Runtime\PlusR_ES.dll; DestDir: {app}; Flags: IgnoreVersion
Source: C:\Program Files (x86)\dBASE\Plus11\Runtime\PlusR_FR.dll; DestDir: {app}; Flags: IgnoreVersion
Source: C:\Program Files (x86)\dBASE\Plus11\Runtime\PlusR_IT.dll; DestDir: {app}; Flags: IgnoreVersion
Source: clip.tmp; DestDir: {app}; Flags: IgnoreVersion
Source: REPORT.Co; DestDir: {app}; Flags: IgnoreVersion
Source: coindata\category.DBF; DestDir: {app}\coindata; Flags: OnlyIfDoesntExist    
Source: coindata\category.mdx; DestDir: {app}\coindata; Flags: OnlyIfDoesntExist
Source: coindata\COINS.DBF; DestDir: {app}\coindata; Flags: OnlyIfDoesntExist
Source: coindata\COINS.mdx; DestDir: {app}\coindata; Flags: OnlyIfDoesntExist
Source: coindata\COLLECTION.DBF; DestDir: {app}\coindata; Flags: OnlyIfDoesntExist
Source: coindata\COLLECTION.mdx; DestDir: {app}\coindata; Flags: OnlyIfDoesntExist
Source: coindata\country.DBF; DestDir: {app}\coindata; Flags: OnlyIfDoesntExist
Source: coindata\country.mdx; DestDir: {app}\coindata; Flags: OnlyIfDoesntExist
Source: coindata\CSVCONV.DBF; DestDir: {app}\coindata; Flags: OnlyIfDoesntExist
Source: coindata\CSVCONV.mdx; DestDir: {app}\coindata; Flags: OnlyIfDoesntExist
Source: coindata\csvtemp.DBF; DestDir: {app}\coindata; Flags: OnlyIfDoesntExist
Source: coindata\help.DBF; DestDir: {app}\coindata; Flags: OnlyIfDoesntExist
Source: coindata\help.dbt; DestDir: {app}\coindata; Flags: OnlyIfDoesntExist
Source: coindata\IMAGE.DBF; DestDir: {app}\coindata; Flags: OnlyIfDoesntExist
Source: coindata\IMAGE.mdx; DestDir: {app}\coindata; Flags: OnlyIfDoesntExist
Source: coindata\MEMO.DBF; DestDir: {app}\coindata; Flags: OnlyIfDoesntExist
Source: imagetls\info.jpg; DestDir: {app}; Flags: IgnoreVersion
Source: imagetls\ni.png; DestDir: {app}; Flags: IgnoreVersion
Source: imagetls\NO-IMAGE.JPG; DestDir: {app}; Flags: IgnoreVersion
Source: imagetls\pi.png; DestDir: {app}; Flags: IgnoreVersion

[RUN]
Filename: {tmp}\dBase_AddAlias.exe; Parameters: """-coindata"" ""{app}\coindata"" ""DBASE"""; WorkingDir: {tmp}; StatusMsg: Install BDE Alias; Flags: SkipIfDoesntExist
Filename: {tmp}\PLUS1130Runtime-b2550_ALL.exe; Parameters: "-s"


[_EndOfScript]
; © dBase Portions by Jonny Kwekkeboom © 2002-2024
; Visual dBase, dB2K, dBase SE and dBase Plus © dataBased Intelligence.Inc Homepage: http://www.databi.com/
; dQuery for Delphi,C++,dBASE PLUS © dataBased Intelligence.Inc see also Homepage: http://www.dQuery.com/

[Code]
var FinishedInstall: Boolean;

procedure InitializeWizard();
begin
  FinishedInstall:= false
end;

procedure CurPageChanged(CurPageID: Integer);
begin
  dBase_CurPageChanged(CurPageID); {INFO: Added for dBase Runtime start}
  if CurPageID = wpFinished then FinishedInstall:= True;
end;

procedure DeInitializeSetup( );
var ErrorCode: Integer;
begin
  if FinishedInstall then
    #if VER >= 0x05000100
      ShellExec('open',ExpandConstant('{group}'),'',ExpandConstant('{group}'), SW_SHOWNORMAL, ewNoWait, ERRORCODE);
    #else
      InstShellExec(ExpandConstant('{group}'), '', '', SW_SHOWNORMAL, ERRORCODE);
    #endIf
end;

function InitializeSetup(): Boolean;
var S: String;
begin
(** Create a Mutex so we can not double call this Setup.exe file **)
  S:='{#AppName}';
  Result:= true;
  if CheckForMutexes(S+'_SetupMutex')=false
  then Createmutex(S+'_SetupMutex')
  else Result:=False;
end;

#ifdef dBaseRuntimeInstDir
procedure DeinitializeUninstall();
begin
  dBase_DeinitializeUninstall();  (** INFO: Added for dBase Runtime uninstall **)
end;
#endif