inno-setup

Change install location if old installation used default location (Program Files/)

匆匆过客 提交于 2020-01-15 09:49:06
问题 Old version of app was installed in /program files/xxx/ (1) or custom location when installing the new version need to check if old version installed in default location (1) if so create /program files/yyy/ (2) and copy the files from old location and continue installation with location (2) if old version installed in different location continue installation without changing location any suggestions are welcomed how can I check from Inno Script if Old location exist how can I create a copy of

Cannot set registry insert for HKLM for 32-bit

社会主义新天地 提交于 2020-01-15 01:18:38
问题 I want to create a context menu with sub menu items in Inno-setup. The problem is, is that it inserts HKLM keys in the 64-bit registry (WoW6432Node) section. The documentation states that if the 64-bit architecture is not specified, the setup is running in 32-bit mode. Modes [Registry] Root: "HKCR"; Subkey: "folder\shell\TestMenu"; ValueType: string; Flags: UninsDeleteKey Root: "HKCR"; Subkey: "folder\shell\TestMenu"; ValueType: string; ValueName: "MUIVerb"; ValueData: "test menu"; Flags:

Inno Setup - Change the MessageBox language

ぃ、小莉子 提交于 2020-01-14 13:58:07
问题 i have this problem... i did a personal messagebox... i put in a very funny way english and spanish... but i want my installer to display only one language... like... when i choose in the menu selector spanish... in that messagebox shows spanish... if a choose italian in the menu selector... let that messagebox show itallian. [code] function NextButtonClick1(PageId: Integer): Boolean; begin Result := True; if (PageId = wpSelectDir) and not FileExists(ExpandConstant('{app}\xxx.exe')) then

Inno Setup - Change the MessageBox language

孤人 提交于 2020-01-14 13:58:06
问题 i have this problem... i did a personal messagebox... i put in a very funny way english and spanish... but i want my installer to display only one language... like... when i choose in the menu selector spanish... in that messagebox shows spanish... if a choose italian in the menu selector... let that messagebox show itallian. [code] function NextButtonClick1(PageId: Integer): Boolean; begin Result := True; if (PageId = wpSelectDir) and not FileExists(ExpandConstant('{app}\xxx.exe')) then

Inno Setup event that is generated when folder is browsed on TInputDirWizardPage?

ぐ巨炮叔叔 提交于 2020-01-14 04:09:31
问题 I'm using a custom TInputDirWizardPage to input three different target folders for my installation. When the first folder is changed, I'd like to automatically change the 3rd folder's path. Is it possible to create an event that occurs when the Browse button is used for the first folder and a specific folder is selected? If so, is it also possible to change the 3rd folder's path programmatically? 回答1: You can override TInputDirWizardPage.Buttons[0].OnClick event handler: var DirPage:

Prevent button from receiving focus in Inno Setup

谁说我不能喝 提交于 2020-01-14 03:29:28
问题 In my script, when the audio button is clicked, it receives a focus ( That blue thick border ) I want it to be, even when you click the audio button, the focused button is still the "Next/Install" . 回答1: This is difficult to implement due to a lack of OnEnter event in Inno Setup API. First, you want to set TabStop property of the button to False to prevent the button from receiving focus using the Tab key. Button.TabStop := False; (In your case, it's the SoundCtrlButton ). If you are happy

Passing in version number to Inno Setup compiler

会有一股神秘感。 提交于 2020-01-14 03:29:10
问题 I want my Inno Setup script to be build using the command line, and I want to pass in the product version number as a parameter. I am trying to implement it like so: [setup] VersionInfoVersion={param:version|0.0.0.0} However the compiler informs me this is invalid for that directive. I have read this post on how to pass in custom parameters from the command line and assume I should just be able to pass in something like: compil32 /cc "c:\isetup\samples\my script.iss" /version=1.0.0.0 I have

How to reduce the line spacing between two input boxes on Inno Setup TInputQueryWizardPage (CreateInputQueryPage)

蹲街弑〆低调 提交于 2020-01-13 20:25:15
问题 I have a TInputQueryWizardPage page with 8 user inputs. The wizard page has been increased but still all the values are not visible. Is there a way to reduce the line spacing between two values so that all the values will be displayed with the current wizard size? 回答1: Use TInputQueryWizardPage.Edits and TInputQueryWizardPage.PromptLabels to access the controls and re-locate them as you need: [Code] procedure ReducePromptSpacing(Page: TInputQueryWizardPage; Count: Integer; Delta: Integer);

Adding user completed form to Inno Setup

社会主义新天地 提交于 2020-01-13 19:22:48
问题 I would like to add a small form, to be filled out by the user at time of program installation, using Inno Setup. The form then needs to be emailed back to me and a pre-defined email address. The form needs in few fields like; User Name Address Email Phone # etc. Once I have an example, I would hopefully be able to refine the fields I am looking for. Any help with this would be appreciated, other wise I am very happy with the performance of Inno Setup, and have been able to perform all other

Inno Setup (How to get dynamically path to file)?

Deadly 提交于 2020-01-13 08:59:33
问题 I'm making a setup script in Inno and I was wondering, how can I get non "hardcoded" path. Here is example: Thanks in advance! SOLUTION: You can get .iss folder by using predefined variable SourcePath Usage would be like: {#SourcePath}\???\bin\x86\Release\???.exe Thanks all who contributed! 回答1: The reference about the source directory says (emphasized by me): By default, the Setup Compiler expects to find files referenced in the script's [Files] section Source parameters, and files