Relative Content

Tag Archive for installationinno-setup

Passing Custom command line parameter in Inno Setup to progams executable

I am preparing an InnoSetup installer and want to allow the user to pass parameters like testparam=abc along with the setup.exe. The value of testparam should be forwarded to the application exe.
Something like:
MySetup.exe /testparam=abc
I followed the instructions from Is it possible to accept custom command line parameters with Inno Setup and Custom command line parameter in Inno Setup with default value so I can pass build configuration but it still receive the error: Unrecognized [Setup] section directive at the line below in the [Setup] section.
this is a part of my iss file:
at the beginning:

Inno Setup restarts PC when /silent

There is a software distribution created by Inno Setup. It restarts computer when installation finished: /silent. I decompiled it and found In install_script.is there is line:

Decompilied setup.exe. There are checks but no [code] section?

I extracted install_script.iss using InnoUnpacker. There are checks “IsNeedRunAdminPrivilegesPackages”, “not IsClientInstallForbidden”. A assume those are custom functions? I don’t see [Code] section in iss file. How does it work? Is InnoUnpacker haven’t unpacked them?