inno-setup

How to separate a Inno Setup script into multiple files?

I have two setup scripts that share common code. It is possible to refactor them? One way of doing that is having a file for common code which will be referenced by each script. Is this possible? ...

InnoSetup: will the setup program have administrator rights?

If I create setup package using InnoSetup, will the setup program have administrator privileges allowing it to register DLLs etc? Also, if the setup package executes a program as part of its operations, will that program be run under administrator rights? ...

Get the path to My Documents with Inno Setup

Is it possible to retrieve the path to My Documents folder with Inno setup? I tried to retrieve the path via registry RegQueryStringValue(HKCU, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders', 'Personal', path); But it returned: %USERPROFILE%\Mina dokument. When I tried to use it as install path it didn't work...

Inno-Setup doesn't allow access to all registry keys, why ?

I use this code to know if a key exists or not : if RegKeyExists(HKEY_LOCAL_MACHINE, 'Software\Autodesk') then begin MsgBox('Key exists!!', mbInformation, MB_OK); end; for this exemple, it works, i have the message box, but with this it doesn't: if RegKeyExists(HKEY_LOCAL_MACHINE, 'Software\Autodesk\Maya') then begin ...

Is it possible to control which files to install from command line for INNO installer?

I would like to control a subset of files and only allow some of them to be installed if run with a command line switch for instance. Is this possible? For example if (some condition) install full set of files else Install other set of files Alternatively I can just run another installer but then I have to pass the file/path...

Passing constants as arguments in INNO's Exec()

I have created an installer using Inno Setup in which I am executing an exe that I created to create a small service inside Windows XP. I need to pass two arguments to the exe - "-install" and the path of the installation directory. I have no way of expanding the constant {app} to pass the actual value inside of {app}. Is there some way ...

Save Inno Setup Custom Form field values to an INI file

Hi, How do I read and store the values of two form field values to an INI file? I created two key pairs at the INI section using ISTool. Now how do I link this up? I am assuming I should write some Pascal script in here, but don't know exactly what, yet { AuthForm_NextkButtonClick } function AuthForm_NextButtonClick(Page: TWizardPa...