inno-setup , Inno Setup CreateInputQueryPage insert text between input boxes
Inno Setup CreateInputQueryPage insert text between input boxes
Question:
Tag: inno-setup
I have created the following custom Input Query Page:
PasswordPage := CreateInputQueryPage(wpSelectComponents,
'Installation Validation', 'Please enter either the password or unlock code to continue?',
'This installation type is protected for licensing reasons. Please enter either the password or unlock code, then click Next.' + #13#10 + #13#10 + 'Installation ID: ' + FindVolumeSerial('C:\'));
PasswordPage.Add('Password:', True);
PasswordPage.Add('Unlock Code:', False);
Is it possible to modify the existing page to move the Installation ID from where it is currently above the Password input box and insert it above the Unlock Code input box or does this require a completely custom designed page? If so, what would be the best way to go about creating it?
Answer:
Here is the code I decided to use in the end:
PasswordPage := CreateInputQueryPage(wpSelectComponents,
'Installation Validation', 'Please enter either the password or unlock code to continue?',
'This installation type is protected for licensing reasons. Please enter either the password or unlock code, then click Next.'
PasswordPage.Add('Password:', True);
PasswordPage.Add('Or Installation ID ' + FindVolumeSerial('C:\') + ' and' + #13#10 + #13#10 + 'Unlock Code:', False);
Related:
inno-setup,pascalscript
I would like to include a script file whose name will be read from an INI file. I've tried this: #include <subfolder\{#ReadIni(SourcePath + "File.ini", "Section", "Key", "")}.iss> but the compilation fails on this error: File not found: "subfolder\{#ReadIni(SourcePath + "File.ini", "Section", "Key", "")}.iss" How can I include a script file...
inno-setup,tcolor
If I try this: [Setup] AppName=MyApp AppVerName=MyApp DefaultDirName={pf}\MyApp DefaultGroupName=MyApp OutputDir=. [Code] function ColorToRGBstring(Color: TColor): string; var R,G,B : Integer; begin R := Color and $ff; G := (Color and $ff00) shr 8; B := (Color and $ff0000) shr 16; result := 'red:' + inttostr(r) + ' green:' + inttostr(g) +...
inno-setup,pascalscript
I would like to be able to structure my code for my InnoSetup project but I am forced to move code around because you can't call a function unless it is defined first. Is there a way to declare a prototype at the top so that I don't get the...
inno-setup
How to show application actual size in control panel Programs and Features ? I know i should use #define Myappsize but don't know proper way. Anybody please help. THANKS!...
.net,inno-setup
I have a .net dll, it can be register by RegAsm .net 3.5 and .net 4.5 I use this codes in my setup script: [Run] Filename: "{dotnet40}\RegAsm.exe"; Parameters: "my.dll"; WorkingDir: "{app}"; Flags: skipifdoesntexist; StatusMsg: "Registering Controls." Filename: "{dotnet4064}\RegAsm.exe"; Parameters: "my.dll"; WorkingDir: "{app}"; Flags: skipifdoesntexist; StatusMsg: "Registering Controls." Filename: "{dotnet20}\RegAsm.exe"; Parameters:...
inno-setup
I am not 100% sure how InnoSetup deals with the registry, but from what I can tell, it adds a few items to the registry even though I do not have any code under [Registry]. This is something we would like to eliminate if possible and we would also like...
inno-setup
I was wondering what I have to write when I want to add HEX-Data into registry?!?! I have [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\FOOBAR] "Type"=dword:00000110 "ImagePath"=hex(2):43,00,3a,00,5c,00,73,00,64,00,69,00,62,00,61,00,73,00,65,00,\ 5c,00,64,00,62,00,6e,00,74,00,35,00,73,00,76,00,2e,00,65,00,78,00,65,00,00,\ 00 and I want to add this by my Inno-Script to the registry. The first value is easy... Root: "HKLM"; Subkey: "SYSTEM\CurrentControlSet\Services\FOOBAR"; ValueType: dword; ValueName: "Type"; ValueData: "00000110"...
inno-setup,pascalscript
I want to create a new About button at the bottom left corner of all the pages like wpwelcomepage, wpselecttaskpage, wpinstallingpage etc; that will show some message if it is clicked,message should closed if user press "OK".The button should show the full word "About" not like "Abou..." I have checked...
inno-setup
After creating my setup.exe I have to pack it for various software deployment tools. Therefore I can't call the setup.exe with parameters, instead I have placed my own parameters in a setup.ini file next to the setup.exe [Code] var MyIniFile: String; function InitializeSetup(): Boolean; var LoadFromIniFile: String; begin Result :=...
inno-setup
I know this question was asked before with almost the same title. But the answere doesn't provides me with enough informations to solve the problem. Also my problem seams to be a little bit different. I am using the Inno Download Plugin My Source looks like [Components] Name: "dl"; Description:...
registry,inno-setup
Inno Setup isn't deleting the full registry key. Here is what I have done: [Registry] Root: HKLM; SubKey: SOFTWARE\EA Games\Need for Speed Most Wanted-2012; ValueType: string; ValueName: GDFBinary; ValueData: {app}\GDFBinary_en_US.dll; Flags: uninsdeletekey Root: HKLM; SubKey: SOFTWARE\EA Games\Need for Speed Most Wanted-2012; ValueType: string; ValueName: DisplayName; ValueData: Need for Speed Most...
inno-setup
We are showing restart options on finish page as restart is required after our product installation. If we show restart options on finish page we are unable to display checkbox on finish page. Is there a way to show both restart options and checkbox on finish page.
windows,inno-setup,code-signing
I always use InnoSetup for packaging and publishing. Users download the application using a link for example: https://oursite.com/codesigned/mysetup.exe Till now, it always worked but recently i have to renew my code signing certificate because its expired. After renew i have SmartScreen problem, every users download the application and gets this...
inno-setup
I have to save username and password which typed by user to text file but it create textfile and save the texts before user type it. (So empty textfile is created) I think I have to do somethings with procedure but although I search the solution, I couldn't find. My...
inno-setup
I want to show the user to wich directory the program will be installed. But I do not want to allow him to change that directory. So I thought about disabling the "browse" button and greying the field where you can type a path (disabling anyone from typing in there)....
delphi,inno-setup
I have used this code for years to close my running apps during upgrade from INNO SETUP, but now its not working well with a some versions of app. Any ideas, what is a better way to close running process (delphi app)? I need to make it work well during...
inno-setup,pascalscript
I'm trying to get the drive letter of the install path in Inno Setup without the colon and if the drive letter is C, it will return a null string. Calling the function: {code:GetDriveLetter|{drive:{src}} Function: function GetDriveLetter(DriveLetter: string): string; var len: Integer; begin len := CompareText(UpperCase(DriveLetter), 'C'); if len =...
inno-setup,pascal
I am trying to change color of text of Radio Buttons in the License Agreement page in WizardForm. I changed the background to black and want the texts white. Here is my code: WizardForm.LicenseAcceptedRadio.Font.Color := clWhite; WizardForm.LicenseNotAcceptedRadio.Font.Color := clWhite; Thanks...
path,installation,inno-setup
I'm new with Inno setup. I want the user to select during installation a different path to install e.g. the database (normaly it will be installed in ProgramData..). So I want to get the installation path dialog a second time for the database or any other files. Any idea?...
inno-setup
In Inno Setup, within the name of a component, the '-' value is not valid is there a list of other values besides " " that are invalid.
checkbox,task,inno-setup
I want to edit the task page in inno-setup and make checkbox for: Install Visual C++ I have Tried- [Tasks] Name: desktopicon; Description: {cm:CreateDesktopIcon}; GroupDescription: {cm:AdditionalIcons} Name: vcredist_x64; Description: Install Visual C++; Flags: unchecked [Code] procedure CurStepChanged(CurStep: TSetupStep); begin if CurStep = ssPostInstall then begin var ResultCode: Integer; begin if...
com,installation,inno-setup
I have a complicated program for working with documents. Client requirement: it should be conditionally integrated in Windows Explorer context menu during install, i.e. then user check the corresponding option. So, in my Inno Setup script [Tasks] i've created a separate task named IntegrateToExporer. And in the [Files] section -...
ant,javafx,inno-setup
I am new to JavaFX and only have some basic knowledge about Ant. At the moment I am learning how to use the FX Ant tasks to deploy an application. Edit: By using <fx:deploy nativeBundles="exe" ../> Ant automaticly uses Inno Setup to create a setup file with the .exe extension....
inno-setup,pascal
I am completely new to inno setup. I have an existing inno setup code which loads all the pages in the InitializeWizard(). I am trying to change the caption dynamically in the next page based on the radio button selected in the previous page. ExpandConstant('Special note for the Microsoft '...
inno-setup,clipboard
Is there any way to copy a string to the clipboard with Inno Setup? I need to implement a button to copy the contents of a field to clipboard....
inno-setup,pascalscript
I have been asked to have a setup procedure running in the following operating systems: Windows Vista (only x86) and higher (both x86 and x64) In order to restrict whole setup from running in older operating systems I added into [Setup] section the Minversion=0,6.0.6000 that corresponds to Windows Vista. I...
inno-setup
I am creating the installer for my Windows application via Inno Setup. The application itself writes some configuration data to the user home folder, into its own sub-directory. Now during uninstallation I want to allow the user to select an option to delete that folder as well (which originally has...
inno-setup
I'm creating a TInputQueryWizardPage page (by the CreateInputQueryPage function) and I would like to change the width of an input edit control of the item. How can I do that? How to resize an input edit control of the TInputQueryWizardPage page item?...
inno-setup
I'm trying to create a shortcut based on the result of a Pascal function (which returns a path), but can't how to do it. This is what I'm trying to do: [Icons] Name: '{userstartup}\Myprog'; Filename: MyFunctionThatReturnsPath() + 'Myprog.exe'; But the function is never called, instead the filename is treated as...
c#,inno-setup
I am trying to make a setup of a windows application its working fine in my computer but as I am creating setup of this application its showing me an network error along with "an attemp to attach an auto named database for file "datasource query string path that I...
installer,inno-setup
During install I want to write a long multi line/paragraph chunk of text to a registry value writing to a registry value is easy enough [Registry] Root: HKCU; Subkey: "Software\my company\My software"; ValueType: string; ValueName: "Message"; ValueData: "some text" but I would rather define a multi line text constant to...
inno-setup,pascalscript
I'm trying to create a single installer for both normal and portable installs. For the portable install I am disabling all icons and uninstaller creation. The only problem I am stuck at is how to disable program group page when running the portable install. Am I misunderstanding something here? [Setup]...
windows-7,windows-8.1,inno-setup
Its failing to compile in signing. In my innosetup packaging i have to include some third party software such as VLC, Google Chrome, Putty, etc etc. The moment those third party tools are included compile/build is failing. But when i do not use them its compiling well. (unfortunately i cant...
inno-setup,pascalscript
I have an Inno Setup Pascal script that prompts the user for 4 folders. Three of the folders should already exist. The 4th being used as a placeholder where I am going to mount a VHD disk in the future. So all I use is the string value of this...
inno-setup
Is it possible to disable the dropdown menu that appears on the Select Components page of the installer? Will this negatively affect anything or can the user be fine with just checking the components he/she wants manually?
windows-8,installation,inno-setup
I've tried to install my software built on Windows 7 on a PC having windows 8 and it failed. Unfortunately it was not an English Win8-Version so the error message told something like "Can't continue because the device is not identified". The message came right after starting the installer (exe-file)....
inno-setup
I have an Inno-setup script with a components page with checkboxs and a combobox. I want to unchecked and disable some components from the Code section, I used this answer to do it and I have now this code : [Setup] AppName=My Program AppVersion=1.5 DefaultDirName={pf}\My Program DefaultGroupName=My Program UninstallDisplayIcon={app}\MyProg.exe OutputDir=userdocs:Inno...
inno-setup,ini
I need to get a path name from an INI-file. I already know how to read a INI-file and asked a question here. This helped me a lot. Right now I am confused by dynamic paths. I run another program from within the setup, which works perfect. The path to...
inno-setup
Tasks can be set to display dependent on the component selected by simply listing Components: a b c etc and can be set to not be checked by default by specifying Flags: unchecked. However, there doesn't appear to be a way run a conditional check using Code to have a...
inno-setup
In my Inno Setup script, I need to execute a command that generates temp files that are to be copied in the [Files] section. I have tried the following: ; cd to the directory of the Inno Setup script and execute a python file #expr Exec('cmd /C "cd /d %cd%...
inno-setup
I have created a custom installer for a game. I need to update version of my installer with a new feature. The game needs to register to play online. So I need to embed register form from web page (or use HTML codes directly into Inno Setup pages after installation...
asp.net,.net,inno-setup
I am building a Web Application that will be installed many times. The application needs to be able to save certain setting itself upon request. I have an installer (InnoSetup) but I want to very careful about what permissions I give the Web Application. I can't use a database. A...
inno-setup,pascal
When trying to apply a custom installation mask with radio buttons (I used code provided here) I see I am unable to use higher fonts as a little spacing should be needed between one radio button field and another one.To give you a visual example : As default font size...
exe,inno-setup,drivers
I'm trying to create setup with Inno, I'm interested in how to add folder that will be shown as subfolder in programs directory in All Programs list. I'm planning to set some drivers in there, sho that user can start them manually from "All Programs" list, if they do not...
inno-setup
In my code I'm using the [Run] section as well as the CurStepChanged event handler doing some stuff when the ssPostInstall occurs. In pseudo script something like this: [Run] Filename: "{app}\FileToRun.exe"; Parameters: "/x" [Code] procedure CurStepChanged(CurStep: TSetupStep); begin if CurStep = ssPostInstall then begin // do some stuff end; end;...
inno-setup,advanced-installer
I have created a software suite installer using Inno Setup. What I would like to do is to create a small installer and when executed, will download and execute that software suite installer. I know Advanced Installer has that package type: Web Installer (downloadable small EXE) Creates a single EXE...
inno-setup
I'm installing an application and want to set values for an ini file. Unfortunately, our main application is still built on a platform that gets redirected to the virtual store. Is there a way to get Inno Setup to store the ini file in the virtual store directly?
inno-setup
I am using Inno Setup 5.5.5 a. When I start the Inno Setup IDE, a file list pops up. Where does Inno Setup store those file names? I want to remove one of them, because it no longer exists....
inno-setup
I want to achieve something similar to Inno setup - skip installation if other program is not installed But I do have the msiexec product code (like D3AA40C4-9BFB-4640-88CE-EDC93A3703CC). So how to detect if another program is installed based on this product code?...
inno-setup
Any time i try to compile this code, a get an error msg -> Type mismatch. Why? The first variant is called with the same "nil" and the compiler has no problem with it, but with the last? [Setup] AppName=MyApp AppVerName=MyApp DefaultDirName={pf}\MyApp DefaultGroupName=MyApp OutputDir=. [Code] function URLDownloadToCacheFile(const lpUnkcaller: variant; const...