Embedding a serial number for a silent install

69 views
Skip to first unread message

Paul Augustus

unread,
Oct 6, 2022, 6:58:49 AM10/6/22
to innosetup
Hi everyone, I'm trying to create a silent install for a 3rd party app that was distributed wrapped up in innosetup

I've tried using saveinf to capture the serial number but it doesn't include it in the resulting .inf file.

Another option would be to know the switch that I can use the serial number with in a command line. I've tried PIDKEY="xxx" with no effect.

serial.jpg

Grateful for any advice as this is the final hurdle between automating the install on 60 PC's remotely or going round to each with a USB stick.

Thanks in advance to anyone who can help.

Jernej Simončič

unread,
Oct 6, 2022, 11:00:29 AM10/6/22
to Paul Augustus on [innosetup]

On Thursday, October 6, 2022, 12:58:49, Paul Augustus wrote:


Grateful for any advice as this is the final hurdle between automating the install on 60 PC's remotely or going round to each with a USB stick.

You'll have to contact the software vendor to get info on how to automate the install. There is no standard functionality in Inno Setup to fill these values from command line.

 

-- 
< Jernej Simončič ><><><><>< https://eternallybored.org/ >


Any change looks terrible at first.
       -- Martin's Principle of Design Inertia

Paul Augustus

unread,
Oct 6, 2022, 1:12:25 PM10/6/22
to innosetup
Thank you very much for taking the time to reply - I tried the authors with no luck. Guess it's a manual job from here which doesn't fill me with confidence about the app, but hey ho. Thanks again.

Lee Cley da Silva Lima

unread,
Oct 6, 2022, 3:49:52 PM10/6/22
to innosetup
[Code]

var
  Serials: TStrings;
  Editions: TStrings;

function CheckSerial(Serial: String): Boolean;
begin
  Result := (Serials.IndexOf(Serial) >= 0);
end;

procedure RegisterEdition(Serial: string; Edition: string);
begin
  Serials.Add(Serial);
  Editions.Add(Edition);
end;

function GetEdition(Param: string): string;
var
  Index: Integer;
begin
  Index := Serials.IndexOf(WizardForm.UserInfoSerialEdit.Text);
  if Index >= 0 then Result := Editions[Index];
end;

function InitializeSetup(): Boolean;
begin
  Serials := TStringList.Create;
  Editions := TStringList.Create;

RegisterEdition('test1','01');
RegisterEdition('test2','02');
RegisterEdition('test3','03');

  Result := True;
end;
[/code]

Paul Augustus

unread,
Oct 6, 2022, 5:33:52 PM10/6/22
to inno...@googlegroups.com

Thank you very much, I’ll give that a try.

--
You received this message because you are subscribed to a topic in the Google Groups "innosetup" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/innosetup/K7Ax9uOYyZM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to innosetup+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/innosetup/2dd734c1-e86a-4be4-b4d2-44fc14eab09bn%40googlegroups.com.

Gavin Lambert

unread,
Oct 6, 2022, 6:16:38 PM10/6/22
to inno...@googlegroups.com
On 7/10/2022 10:33, Paul Augustus wrote:
> Thank you very much, I’ll give that a try.

That's not really of any use to you; it's something a setup author might
use (as a very basic sketch).


Jernej's answer is the best we can give; there are standard mechanisms
to help setup authors automate their installs, but it's up to the author
whether they used them or not. You will need to contact them to either
request that functionality or ask how to use it.

They may have chosen to not implement it deliberately -- if the serial
is for a single-user license, then there's no reason to implement
automation for it since it should only be used once, for example.

Paul Augustus

unread,
Oct 7, 2022, 3:11:11 AM10/7/22
to inno...@googlegroups.com
Came to the same conclusion very quickly. I replied to the poster before I'd had a chance to look through the script, grateful that they had taken the time to reply.

The most frustrating part is that there's actually no need for a serial number as it's the same for everyone and published on the software house's website.
--
You received this message because you are subscribed to a topic in the Google Groups "innosetup" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/innosetup/K7Ax9uOYyZM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to innosetup+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/innosetup/d5735da1-94fc-40c5-7622-a79814a8b897%40mirality.co.nz.
Reply all
Reply to author
Forward
0 new messages