inno-setup

How can I use a Sharepoint server as the Source for Inno Setup files?

99封情书 提交于 2020-01-04 06:16:36
问题 I'm using Inno Setup for an application setup. Many of the data files that will be included with this application are stored on a Microsoft Sharepoint server. When I try to use the path Sharepoint provides in the 'Source:' [Files] Source: http://teams/sm/Symbols/*; DestDir: {app}\Symbols I get the following error on compile: Unknown filename prefix: "http:" How can I properly call out a Sharepoint location as the source for my data files? I'm using Inno Setup version 5.4.2 EDIT I know what

Get TEMP folder

耗尽温柔 提交于 2020-01-04 02:52:17
问题 How do I get the path to the Temp folder from inside an InnoSetup Pascal script? Not the folder that the setup uses as it its temporary folder (which can be accessed using {tmp} ), but the actual user's Temp folder. 回答1: You can access the TEMP environment variable using the {%TEMP} constant. See here for details and a list of all constants. 来源: https://stackoverflow.com/questions/7318305/get-temp-folder

Inno Setup Windows DLL function call with pointer to structure

北战南征 提交于 2020-01-04 02:45:09
问题 I am trying to set a service's failure actions using Inno Setup's Pascal scripting language. I receive the classic "access violation at address..." error. Seems that it is impossible because the language don't have any support to pointers. Any ideas? Here is the code snippet: type TScAction = record aType1 : Longword; Delay1 : Longword; aType2 : Longword; Delay2 : Longword; aType3 : Longword; Delay3 : Longword; end; type TServiceFailureActionsA = record dwResetPeriod : DWORD; pRebootMsg :

Innosetup SendMessage after changing the environment values

与世无争的帅哥 提交于 2020-01-04 01:29:08
问题 I set environment variable in the registry using InnoSetup: [Registry] Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"; ValueType: string; ValueName: "MY_PROGRAM_HOME_DIR"; ValueData: "{app}" But system cannot see this variable until I call SendMessage . [Code] procedure DeinitializeSetup(); begin // HWND_BROADCAST = $FFFF // WM_SETTINGCHANGE = $001A SendMessage($FFFF, $001A, 0, Longint(PChar('Environment'))); end; InnoSetup says: ... Column 60: Type

Inno setup and DefaultDirName

泄露秘密 提交于 2020-01-03 21:12:18
问题 Is there some way to set the DefaultDirName by code depending on some decission a user did on installtion? Let me comment: I have some code which is build for two different systems (using different interops/ocx's and such stuff). My input files are stored in two directories input\A and input\B. I want to have only one setup-file for both systems. In the setup file i use CreateInputOptionPage with 2 options to determin which files to install (using Check on each file). This works okay. But i

Inno setup and DefaultDirName

一个人想着一个人 提交于 2020-01-03 21:12:09
问题 Is there some way to set the DefaultDirName by code depending on some decission a user did on installtion? Let me comment: I have some code which is build for two different systems (using different interops/ocx's and such stuff). My input files are stored in two directories input\A and input\B. I want to have only one setup-file for both systems. In the setup file i use CreateInputOptionPage with 2 options to determin which files to install (using Check on each file). This works okay. But i

How to restrict user input of the directory edit box? [closed]

混江龙づ霸主 提交于 2020-01-03 17:05:18
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . I need to prevent users from entering . at the end of the path entered in the directory edit box. For example, the path cannot be: C:\Program Files\InnoSetup. How can I validate the directory edit box input, or

How to change defaultdirname parameter just before Install in Inno Setup?

别等时光非礼了梦想. 提交于 2020-01-03 14:05:05
问题 I want to change defaultdirname parameter in ssInstall part. How can I do that? Is there a function for setting [Setup] parameters. 回答1: The following global objects are available : MainForm of type TMainForm, WizardForm of type TWizardForm and UninstallProgressForm of type TUninstallProgressForm and one special constant: crHand of type TControl.Cursor. If you want to set the default directory in the wizard, just access to it's componants like you would in normal delphi code. For example, set

How to change defaultdirname parameter just before Install in Inno Setup?

橙三吉。 提交于 2020-01-03 14:02:28
问题 I want to change defaultdirname parameter in ssInstall part. How can I do that? Is there a function for setting [Setup] parameters. 回答1: The following global objects are available : MainForm of type TMainForm, WizardForm of type TWizardForm and UninstallProgressForm of type TUninstallProgressForm and one special constant: crHand of type TControl.Cursor. If you want to set the default directory in the wizard, just access to it's componants like you would in normal delphi code. For example, set

Invalid prototype when using a Check function

本小妞迷上赌 提交于 2020-01-03 07:58:31
问题 I'm new to InnoSetup as I am experimenting with various installers. I created my first script using Inno Script Studio and the built in wizards. So far so good. Now I want to get it to detect if .Net 4.5 is installed and if it isn't then install it. So, I looked all over the web and on here and I came across this solution, however when I copy and paste the code into my script I get the following error when compiling. Compiling [Code] section Compiler Error! Line 54: Column 10: Invalid