inno-setup

Inno setup page order

↘锁芯ラ 提交于 2020-04-11 05:39:43
问题 I have an Inno Setup which can perform 4 types of installation types Full install Server install Client install Custom install When installing the client App i don't want to place files on the local machine but connect the client with the server installation. The user has in this case not to chose a destination for the installation but has to chose a directory where a server installation is already installed. It would be less confusing for the user if he would first select the installation

Inno setup page order

▼魔方 西西 提交于 2020-04-11 05:39:29
问题 I have an Inno Setup which can perform 4 types of installation types Full install Server install Client install Custom install When installing the client App i don't want to place files on the local machine but connect the client with the server installation. The user has in this case not to chose a destination for the installation but has to chose a directory where a server installation is already installed. It would be less confusing for the user if he would first select the installation

Inno Setup run/execute code as another user

落花浮王杯 提交于 2020-04-10 18:53:28
问题 Much as it is possible to use ExecAsOriginalUser to run something using the starting/logged in user's credentials, is there a command or way to run a particular piece of code as a specific user? To explain further, I am writing the computer name into a log on a file share at the end of installation. This works perfectly as long as not installing using a local Administrator account which does not have a matching local Administrator account on the server. Therefore, what I need to do is have

How to skip custom page based on setup type in Inno Setup

旧巷老猫 提交于 2020-04-10 06:20:54
问题 I'm building my setup with server and client installation/setup types. I need to skip or hide a custom page if user choose server type. Server type only have a custom page to select SQL instance and a button to launch sqlcmd to install DB, while client installation only copy some files to program directory. This is my test code with custom page: [Types] Name: "Server"; Description: "Server" Name: "Client"; Description: "Client" [Components] Name: "Dictation"; Description: "Dictation"; Types:

Inno Setup: Do not overwrite settings file, when installing an update

冷暖自知 提交于 2020-04-10 05:26:12
问题 I have created an Inno Setup script for a C++ app. The script works fine and consists of the following: [Files] Source: "C:\Users\john\Desktop\My_App_setup\my_app.exe"; DestDir: "{app}"; \ Flags: ignoreversion Source: "C:\Users\john\Desktop\My_App_setup\settings\*"; DestDir: "{app}\settings"; \ Flags: ignoreversion recursesubdirs createallsubdirs The files are the C++ executable my_app.exe and a settings text file that is customized by the end user. What I'd like to do is when I have an new

Inno-Setup: use own button texts on messagebox

江枫思渺然 提交于 2020-04-10 04:32:13
问题 It is common practice in good GUI design to not use Yes-No-messageboxes but give the buttons real names, e.g. Save or Discard. How we can achieve this in messageboxes displayed with MsgBox in InnoSetup, at least for the ones we show in the code section? 回答1: The MsgBox function uses internally the MessageBox Windows API function which allows you to use only a specific set of predefined buttons or button groups. What's worse, the buttons cannot be easily localized (without a hook like this).

How do I localize VersionInfo of an Inno Setup installation file?

≯℡__Kan透↙ 提交于 2020-04-10 03:57:06
问题 I am creating an application that has a different name depending on the user language. So for example the software is called "Device Emulator" in English and "Geräteemulation" in German. I want to reflect the different names in the Version Info of the setup file (right click -> Properties -> "Details" tab). So far I have found no way in Inno Setup to specify a localized "VersionInfo" , neither in the online help nor on the net. Originally I tried to use custom messages in the setup sections

Welcome page not showing, SelectDir page is showing first instead

两盒软妹~` 提交于 2020-04-08 09:54:15
问题 I'm trying to make installer using Inno Setup. And I want to show Welcome page first, then SelectDir. This is CurPageChanged example code: procedure CurPageChanged(CurPageID: integer); begin if CurPageID = wpWelcome then begin HideComponents; WLabel.show; WizardForm.NextButton.Show; WizardForm.NextButton.Caption := 'Configure'; end; if CurPageID = wpSelectDir then begin HideComponents; BmpFile.Bitmap.LoadFromFile(ExpandConstant('{tmp}\2.bmp')); WizardForm.DirEdit.Show; WizardForm.NextButton

'Check' function is executing multiple times in Inno Setup

人盡茶涼 提交于 2020-04-08 07:22:00
问题 I am new to Inno Setup scripting and I am trying to install .NET framework 3.5 using below code as a prerequisite. The Check function is executing multiple times. Can some one please help me understand why? Note: All other sections ( Setup , Icons , etc) in this below code are having proper contents. [Files] Source: "Frameworks\dotnetfx35setup.exe"; DestDir: {tmp}; Flags: deleteafterinstall; \ BeforeInstall: Install35Framework; Check: Framework35IsNotInstalled [Code] function IsDotNetDetected

'Check' function is executing multiple times in Inno Setup

风格不统一 提交于 2020-04-08 07:21:09
问题 I am new to Inno Setup scripting and I am trying to install .NET framework 3.5 using below code as a prerequisite. The Check function is executing multiple times. Can some one please help me understand why? Note: All other sections ( Setup , Icons , etc) in this below code are having proper contents. [Files] Source: "Frameworks\dotnetfx35setup.exe"; DestDir: {tmp}; Flags: deleteafterinstall; \ BeforeInstall: Install35Framework; Check: Framework35IsNotInstalled [Code] function IsDotNetDetected