IonicWind Software

IWBasic => General Questions => Topic started by: MikeHart on November 27, 2006, 08:56:29 AM

Title: Registry path to EBasic for InnoSetup?
Post by: MikeHart on November 27, 2006, 08:56:29 AM
Hi Paul,

to retrieve the path to EBasic automatically I would like to tell InnoSetup which one it is.
Can you let me know which Registry entry is the best to use?

Michael
Title: Re: Registry path to EBasic for InnoSetup?
Post by: Ionic Wind Support Team on November 27, 2006, 10:25:20 AM
HKCU/Software/IonicWind/Emergence BASIC/Paths/BIN

Should do it.  Work back from that path.
Title: Re: Registry path to EBasic for InnoSetup?
Post by: MikeHart on November 27, 2006, 12:15:11 PM
Thanks, I got it to work.
Title: Re: Registry path to EBasic for InnoSetup?
Post by: LarryMc on December 05, 2006, 07:31:43 PM
Paul,
Can you show me what the istool entry looks like to make a registry entry for the path to "myprogram".

Can you show me what the istool entry would look like for a supplemental install to put files in the same directory where the first install put the exe considering the user is allowed to pick where they want the exe located..

i.e.
The 1st install would install the exe and support files.

The 2nd and/or subsequent installs would be for additional data files as they became available.

Title: Re: Registry path to EBasic for InnoSetup?
Post by: Ionic Wind Support Team on December 05, 2006, 08:10:23 PM
[Registry]
Root: HKCU; Subkey: Software\Company\Product; Flags: uninsdeletekey

As for updating a file I usually just read a path I stored on the initial install with a custom program.   When updating the entire installation Inno picks the last location the program was installed to.
Title: Re: Registry path to EBasic for InnoSetup?
Post by: LarryMc on December 05, 2006, 10:09:57 PM
Quote from: Paul Turley on December 05, 2006, 08:10:23 PM
As for updating a file I usually just read a path I stored on the initial install with a custom program.ÂÃ,  ÂÃ, 
So what would that path entry look like?
Title: Re: Registry path to EBasic for InnoSetup?
Post by: Ionic Wind Support Team on December 06, 2006, 01:39:45 AM
That entry creates the main product key.  It's up to your software to write other keys there.

The IDE for Emergence writes the startup keys on the first run.  The path to the BIN directory and such.
Title: Re: Registry path to EBasic for InnoSetup?
Post by: MikeHart on December 06, 2006, 01:49:46 PM
Hey Larry,

to retrieve the EBasic path within InnoSetup, I add/change the following stuff to the script:


DefaultDirName={code:EBPath}

[c o d e]ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ, <--- remove the spaces, this forum misinterprets the correct spelling
function EBPath(Param: String): String;
var
n:string;
p:integer;
l:integer;
begin
n := ExpandConstant('{reg:HKCU\Software\IonicWind\Emergence BASIC\Paths\,BIN}');
p := Pos('\bin',n);
l := Length(n);
n := Copy(n,1,p);
ÂÃ,  ÂÃ,  Result := n;
end;
Title: Re: Registry path to EBasic for InnoSetup?
Post by: Ionic Wind Support Team on December 06, 2006, 07:25:11 PM
You should note that will only work with later versions of Inno.  Versions prior to 4, if I remember, didn't support Pascal scripting.