English 中文(简体)
在Inno Setup中,在程序上对任择(违约)参数进行具体说明?
原标题:Specifying optional (default) parameter in procedure in Inno Setup?
  • 时间:2012-01-11 11:41:06
  •  标签:
  • inno-setup

I am trying to write a procedure in Inno setup code using default values for parameters, like in Pascal, like Procedure MyFunction(string1: string; string2: string = None ); begin //Do nothing end;

When I try to compile this, I get [...] Compiling [Code] section

Compiler Error! Line 10: Column 55: Semicolon ( ; ) expected.

谁能发现我做了什么错误?

最佳回答

标识参数、超载等未在Pascal cast”上得到支持,该平台是Inno Setup使用的描述发动机。

问题回答

暂无回答




相关问题
Changing AppID and AppName based on user input

I want to install the same application multiple times on the same system, for example for two user using two different web services (each one has their own). In in my setup script I want to change ...

InnoSetup: Getting AppName in [Code] section

I m creating an installer using InnoSetup, and writing some custom handlers in a [Code] section. In one of the handlers, I would like to be able to retrieve the value of the AppName (or, potentially, ...

Building Installation Disk for My Delphi 2010 Application

Can someone please give me a step by step on how to build an installation disk for my Delphi 2010 application? I have tried both InstallAware Express Edition which comes with Delphi 2010 but keeps on ...

Inno Setup custom welcome page

How can I customize the welcome page of an Inno Setup installer? I want to create an installer similar to Skype s installer with only 3 pages: Custom Welcome Page with some options Progress Page ...

Why would an ocx control not register properly?

I am writing an app that needs to use a third party ocx control. In my Inno Setup script I include the line: Source: C:aPathaControl.ocx; DestDir: {app}; Flags: restartreplace sharedfile regserver ...

Modifying the color scheme for an Inno Setup Installer

I ve been playing around with Inno Setup 5.3.6; trying to customize the installers colors. Mainly the banner that appears at the head of the installer. But as of yet i have no luck finding a way of ...

How do you distribute an HTML/Javascript web app?

I ve built a web page using HTML and Javascript that acts like a desktop app. I d like to distribute it to users in the methods they are most familiar with. For Windows users, I think this is an ...

热门标签