help with 'semicolon expected' error when using Inno Setup 6

326 views
Skip to first unread message

Anita DePasquo

unread,
Oct 4, 2021, 2:30:50 PM10/4/21
to innosetup

Hi,  my working code from version 5 is creating an error on version 6 that says 'semicolon (;) expected'.  Can some look and help please
- my code in v5 does the following
-- creates a task called Install Visual C++.. with default unchecked
-- checks the registry key for 14.0 x64 format
-- checks the task ON if not installed

in v6 the line 'if FileExists(ExpandConstant('{app}\tls\server.cert.pem')) then' is coming back with the 'semicolon expected' 
error-semicolon-expected.txt

Jernej Simončič

unread,
Oct 4, 2021, 2:37:01 PM10/4/21
to Anita DePasquo on [innosetup]
On Monday, October 4, 2021, 20:30:49, Anita DePasquo wrote:

> in v6 the line 'if FileExists(ExpandConstant('{app}\tls\server.cert.pem'))
> then' is coming back with the 'semicolon expected'

Looks like you're missing a semicolon on "end" just above this line.

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

Spend sufficient time in confirming the need and the need will disappear.
-- Peter's Prognosis

Anita DePasquo

unread,
Oct 4, 2021, 6:08:32 PM10/4/21
to innosetup
hi.  thank you so much.  i tried that and several variations of end; and the error goes away but the installer also fails, crashes, so I looked back into the code.
- so, maybe you can point me to a sample of what I need
- I have 'begin  Result := true;  if Not RegQueryDWordValue(HKEY_LOCAL_MACHINE, 'SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\x64', 'Major', major) then..."
- I want the task installvcruntime to, by default be checked but then uncheck it if the Reg Key DWORD is detected
Reply all
Reply to author
Forward
0 new messages